From patchwork Tue Jun 6 14:12:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 689747 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp2659829wru; Tue, 6 Jun 2023 07:14:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7iqtMoJXUTBpY1e4aWuMgyR7DA3SA984sMHLPcVPH35COVNpzvnmHIq/vIidjBQ3uTg3Iw X-Received: by 2002:ac8:5c84:0:b0:3f4:f9fc:bf3a with SMTP id r4-20020ac85c84000000b003f4f9fcbf3amr2176629qta.65.1686060866671; Tue, 06 Jun 2023 07:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686060866; cv=none; d=google.com; s=arc-20160816; b=IxaQUIjXDqloL2kFt0gCfMaEDAwEAnLqu8nfYUgBneu0W5+oEnXbQo1qHBV7/yUbL5 1L79KR7aKZubzGapWiKjwEI0/GM66a9yLKpvZHrPdTg11HNg/fWc+pHgRzYIvuaHl9mH 0jdnZ25hJEoGuCKt3CZlBV1ejnY6cMqCSUOdhSb7S+l47yDzV+h4wEnvte9ysh1mXj2+ jhB0lSXQWJV2jp5P0GhbE5YO8hJTem3ZRNpQqEAXdkCpjoeGWmc1tF0+ngcUyG+3YLrO CipHMBdq448loEvU0Y3FyNxKEomlQ348YKLViN5ymMeYAGWpDL/BHhb+eGbZ8gZmfWTG W8JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=W04OLH0QJKfn19fH/wO2Mz30bJLZK/wIkX0NhoZFTMw=; b=UGUA5Jl7AKFIeTC377g+T7tRNWetHTFRXKMiKQdlrcS33WjaIdMEvNeatJXNPQDVJD euLliFA/ufYGZWu8W+39cql7JZ+OE+MmYviOtwGtegau7GtGdfkdQ1AVFx9ObRG8yDHN Q8Ux5bukhwdfF0q/TkYoTJxyu/XkEXWJ0aPIo7QU4xGgq8b+eu31FqOj2DZPdwYwmdgN ucJ7IaAynkZDezzrMUbwK6YqYtXHGjfJfPvvr2TmJo9CvS5QFkzoEftbyFvPB9OR0HKf A5HQDlsALrC/P2Hkbb2eCMfilwfpER/v09oa9ji7lhASL4cTHmdJQRl4qdkwK4gOGDnP 526w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z8pQQtX9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k10-20020a05622a03ca00b003f6b115179bsi6188369qtx.622.2023.06.06.07.14.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Jun 2023 07:14:26 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z8pQQtX9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6XQp-0003p9-Ce; Tue, 06 Jun 2023 10:13:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6XQn-0003nS-ET for qemu-devel@nongnu.org; Tue, 06 Jun 2023 10:13:05 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q6XQi-0005UW-4P for qemu-devel@nongnu.org; Tue, 06 Jun 2023 10:13:04 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3f6d3f83d0cso62704915e9.2 for ; Tue, 06 Jun 2023 07:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686060775; x=1688652775; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=W04OLH0QJKfn19fH/wO2Mz30bJLZK/wIkX0NhoZFTMw=; b=z8pQQtX9UJxTFD2NiC4+90Qfcn2Y4lL6cwQhwWCOn1N0D4WdBv869uhpPbCbsDzZh4 SsIbB+T/1kBEHpkBdyHgoRGR0SgDVbNmB6TpsyUb4K8pYFMPbMn/QXo+/voJGuSQagtb 8D/NQQ1GoU6Q2HS7bRujqQw9PuTIwyagM2DOcq3sbdJG26wzPF/7GHGID5Kf+to+AJ9w rJ1Q1fQGzsAXRr0bcqgXDXD0ivzj127pna/Z6Ku4Fw+evsKX6hmX0fqx4yhGDmRtGpHR 58qA0uZtvpebOV4u2koPPBxa4XpZcFsntcbPm5OtTb7mdDb0ACPnySR/trB3gRfluqm+ ZxNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686060775; x=1688652775; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=W04OLH0QJKfn19fH/wO2Mz30bJLZK/wIkX0NhoZFTMw=; b=P7vuAEgwDLgj0szHNmaBmKAQRGytYvcAthgQDYju34Ddq2HhdK9xeT1t9naMTK1lwR TIDJAFGOhMWY/F0w7h4KCuuLqM08T7eAn5mzPJ6Pok+2q4PYEaLy61IF8FWvlr8uCb66 A+ndm6zAuOUP0r+40/h9MECd2YsfxdVUohPjVLn3fecghq+qwMYYOCqw7BPbyGRTtAU7 os+JChmESDiiLaLVP7f3/GwPSuY4kRp7aX/u30x6KCrzXX5iOlnpvQAXaulSsh9aDkeI QXmk1pPty+KYYTXjys8BkHyNRNhEhA4i2ejoor/UjewheWDu6yXsLtYvq4HoU4RSe0uf Nc0A== X-Gm-Message-State: AC+VfDwOunPdN94cb7dNI7z09Hi1WG5c6pL2zsQ65J0ggxS2I9yK5Scg E4JYqXGThjX15EyDX77PySdaq/UdGzF0mWipOP0= X-Received: by 2002:a5d:428f:0:b0:30e:4b9b:7fcc with SMTP id k15-20020a5d428f000000b0030e4b9b7fccmr2104988wrq.32.1686060775487; Tue, 06 Jun 2023 07:12:55 -0700 (PDT) Received: from localhost.localdomain (vbo91-h01-176-184-50-104.dsl.sta.abo.bbox.fr. [176.184.50.104]) by smtp.gmail.com with ESMTPSA id b9-20020a05600010c900b0030ae87bd3e3sm12755764wrx.18.2023.06.06.07.12.53 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 06 Jun 2023 07:12:55 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 0/5] misc: Enforce .[ch].inc extension for re-included .c/.h files Date: Tue, 6 Jun 2023 16:12:47 +0200 Message-Id: <20230606141252.95032-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, SUSPICIOUS_RECIPS=2.51, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Follow the convention to use the .inc extension for .c/.h files re-included, as docummented in Coding Style since commit 6a0057aa22: If you do use template header files they should be named with the ``.c.inc`` or ``.h.inc`` suffix to make it clear they are being included for expansion. Most of the codebase already uses this extension: $ git ls-files | fgrep .inc | wc -l 155 Rename some files left over. Philippe Mathieu-Daudé (5): bsd-user: Rename elfcore.c -> elfcore.c.inc target/arm: Rename helper template headers as '.h.inc' target/i386: Rename helper template headers as '.h.inc' target: Rename per-target 'helper.h' -> 'helper.h.inc' tests/tcg/aarch64: Rename bti-crt.inc.c -> bti-crt.c.inc docs/devel/tcg-ops.rst | 2 +- include/exec/helper-gen.h | 2 +- include/exec/helper-proto.h | 2 +- target/alpha/{helper.h => helper.h.inc} | 0 target/arm/{helper.h => helper.h.inc} | 8 ++++---- target/arm/tcg/{helper-a64.h => helper-a64.h.inc} | 0 target/arm/tcg/{helper-mve.h => helper-mve.h.inc} | 0 target/arm/tcg/{helper-sme.h => helper-sme.h.inc} | 0 target/arm/tcg/{helper-sve.h => helper-sve.h.inc} | 0 target/avr/{helper.h => helper.h.inc} | 0 target/cris/{helper.h => helper.h.inc} | 0 target/hexagon/{helper.h => helper.h.inc} | 0 target/hppa/{helper.h => helper.h.inc} | 0 target/i386/{helper.h => helper.h.inc} | 6 +++--- target/i386/{ops_sse_header.h => ops_sse_header.h.inc} | 0 ...hift_helper_template.h => shift_helper_template.h.inc} | 0 .../{cc_helper_template.h => cc_helper_template.h.inc} | 0 target/loongarch/{helper.h => helper.h.inc} | 0 target/m68k/{helper.h => helper.h.inc} | 0 target/microblaze/{helper.h => helper.h.inc} | 0 target/mips/{helper.h => helper.h.inc} | 0 target/nios2/{helper.h => helper.h.inc} | 0 target/openrisc/{helper.h => helper.h.inc} | 0 target/ppc/{helper.h => helper.h.inc} | 0 target/riscv/{helper.h => helper.h.inc} | 0 target/rx/{helper.h => helper.h.inc} | 0 target/s390x/{helper.h => helper.h.inc} | 0 target/sh4/{helper.h => helper.h.inc} | 0 target/sparc/{helper.h => helper.h.inc} | 0 target/tricore/{helper.h => helper.h.inc} | 0 target/xtensa/{helper.h => helper.h.inc} | 0 bsd-user/elfload.c | 2 +- target/alpha/translate.c | 2 +- target/arm/machine.c | 2 +- target/arm/tcg/translate.c | 2 +- target/avr/translate.c | 2 +- target/cris/translate.c | 2 +- target/hexagon/translate.c | 2 +- target/hppa/translate.c | 2 +- target/i386/tcg/cc_helper.c | 8 ++++---- target/i386/tcg/int_helper.c | 8 ++++---- target/i386/tcg/translate.c | 2 +- target/loongarch/translate.c | 2 +- target/m68k/translate.c | 2 +- target/microblaze/translate.c | 2 +- target/mips/tcg/translate.c | 2 +- target/nios2/translate.c | 2 +- target/openrisc/translate.c | 2 +- target/ppc/translate.c | 2 +- target/riscv/translate.c | 2 +- target/rx/translate.c | 2 +- target/s390x/tcg/translate.c | 2 +- target/sh4/translate.c | 2 +- target/sparc/translate.c | 2 +- target/tricore/translate.c | 2 +- target/xtensa/translate.c | 2 +- tests/tcg/aarch64/bti-1.c | 2 +- tests/tcg/aarch64/bti-3.c | 2 +- bsd-user/{elfcore.c => elfcore.c.inc} | 0 tests/tcg/aarch64/{bti-crt.inc.c => bti-crt.c.inc} | 0 60 files changed, 43 insertions(+), 43 deletions(-) rename target/alpha/{helper.h => helper.h.inc} (100%) rename target/arm/{helper.h => helper.h.inc} (99%) rename target/arm/tcg/{helper-a64.h => helper-a64.h.inc} (100%) rename target/arm/tcg/{helper-mve.h => helper-mve.h.inc} (100%) rename target/arm/tcg/{helper-sme.h => helper-sme.h.inc} (100%) rename target/arm/tcg/{helper-sve.h => helper-sve.h.inc} (100%) rename target/avr/{helper.h => helper.h.inc} (100%) rename target/cris/{helper.h => helper.h.inc} (100%) rename target/hexagon/{helper.h => helper.h.inc} (100%) rename target/hppa/{helper.h => helper.h.inc} (100%) rename target/i386/{helper.h => helper.h.inc} (98%) rename target/i386/{ops_sse_header.h => ops_sse_header.h.inc} (100%) rename target/i386/{shift_helper_template.h => shift_helper_template.h.inc} (100%) rename target/i386/tcg/{cc_helper_template.h => cc_helper_template.h.inc} (100%) rename target/loongarch/{helper.h => helper.h.inc} (100%) rename target/m68k/{helper.h => helper.h.inc} (100%) rename target/microblaze/{helper.h => helper.h.inc} (100%) rename target/mips/{helper.h => helper.h.inc} (100%) rename target/nios2/{helper.h => helper.h.inc} (100%) rename target/openrisc/{helper.h => helper.h.inc} (100%) rename target/ppc/{helper.h => helper.h.inc} (100%) rename target/riscv/{helper.h => helper.h.inc} (100%) rename target/rx/{helper.h => helper.h.inc} (100%) rename target/s390x/{helper.h => helper.h.inc} (100%) rename target/sh4/{helper.h => helper.h.inc} (100%) rename target/sparc/{helper.h => helper.h.inc} (100%) rename target/tricore/{helper.h => helper.h.inc} (100%) rename target/xtensa/{helper.h => helper.h.inc} (100%) rename bsd-user/{elfcore.c => elfcore.c.inc} (100%) rename tests/tcg/aarch64/{bti-crt.inc.c => bti-crt.c.inc} (100%)