From patchwork Mon Aug 12 21:50:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171119 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp75736ily; Mon, 12 Aug 2019 14:51:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzr5+Tcw84aXzll+BduN3ACi1X5FDlrBck1zM4zOYy0kMKX7TpF+e9w8gphnBDQVIwJkU2y X-Received: by 2002:a63:4461:: with SMTP id t33mr31213637pgk.124.1565646685518; Mon, 12 Aug 2019 14:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646685; cv=none; d=google.com; s=arc-20160816; b=t5a85XPduhZZmXdHwBP4H28OESd0Nx/jThhhlbL34Ccyak/ZpYAzRdojvGRnDMr1QW Cd2BZ2QLx0gLiTyT2LpFGhgd3b+9Qiv45DhdzAVNSGEDS8f7vqVZvZjD29e/2198UQDP bLb9Sbn0agZMTfuov6t2ynbqPd+ZM3dpHd1S5PiAF12gH5/ugpe1vI39Cqf96EZcGXvO EQjAppqW7dBfkL0D99o8l2tzoJFepbmdW77pLpqaNJ9jc+NZdSPK9Zaq/KXE5bHJ9XhY l6b8KI8Z2efN5+kkEFenr43dVdRX5iEgdzu/fOmrktZl3kxlcOaVl/m2NGgWRZ5UEgME cYcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=VzbGHvSiySq50YMMXV5wIRss5YK1rFgm4/UGnmN70Bc=; b=GGeyM/6JCZsdbgDaoot/ZYSUkKMH4X+VMV9INKgAHpLCd4fdWFwq17Wx1NNXHhAFny dOP8QvTT0tcCoR7mRem48oHO7nKCWoecwgFW4zS6+/qkz5Q4Ek4MFRLqfCQXvvSay0dV OENxDb/oEKR+rr8G3J234gsN7GRYExdtnchnqpaqBFT48vvJnKNs4zIxjKQFEimBuYUx Nr/wQRDWaH/jmKR3p5pDw+/ZsTgxBn4PQp+S2le9q4WhoZ/Ck/FdvrJpx+txt67BtQ6l IIniGfW4Z59X6pNwZEGsup2JzW72y2Y7yfFxsYEP1MSSko5+UctmIbc9+xvAgrGDN5xE U4VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fAfaiSlH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si30442138plf.410.2019.08.12.14.51.25; Mon, 12 Aug 2019 14:51:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fAfaiSlH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727650AbfHLVvY (ORCPT + 28 others); Mon, 12 Aug 2019 17:51:24 -0400 Received: from mail-pl1-f201.google.com ([209.85.214.201]:40684 "EHLO mail-pl1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727326AbfHLVvX (ORCPT ); Mon, 12 Aug 2019 17:51:23 -0400 Received: by mail-pl1-f201.google.com with SMTP id s13so6011087plp.7 for ; Mon, 12 Aug 2019 14:51:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=VzbGHvSiySq50YMMXV5wIRss5YK1rFgm4/UGnmN70Bc=; b=fAfaiSlH3IJrNJyZYLgYtoIVY8VZlqGfi5Z1XEd34Hclac8Tlt1XU022vSoo6lpHqW WT5ZYdOnF51c3AJ+HgQLgSxq1DFgNbpPZFxvoOpgOi8CLocNEf/zT6VX0F2CI56S+DGU emR9pGJLtKNGCGQGSx/vmN9VKkZcYZVXI6eXGk1DQEFDNeHCD/bdYD6Zet1y/2Gzi9uE yf/jN+kbTfyFtb4u9PsKcmr7JPvUHlj3Oa0vtajMh2hl9bXBiepZSxxAR7vIHlyXgTiy 3qSQ1ycRcwY27pQbPVEKnAVbB3qlQm8NnHi8Ju6BN+Yoi5wFlqrTPtF5AwdB6r/eozZn AJbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=VzbGHvSiySq50YMMXV5wIRss5YK1rFgm4/UGnmN70Bc=; b=Gbf3ux6UgSyCO2vJETA40hh6IMCtcmuA2KekA9B+8g07lrF1Y3bXRwcxn90JGYJqPQ X8dXCDjikRC2zFBcBjoj39IDiofQaFgG+GfsMKUb+8UlZqqejfemET0gzUxsjBmMpJWk i++7UQnAtkzbOpmd6ErsDTk0FFMA3kTl40cwAPRSquPIg+ua7urVi1gxpnKbkx69k1Qq lnymK/OjjGHVmWSPds/sIax+znQ05GGhR0i1J8CAJtI5yZcri9EM8ljN67hqCNq05hzh NLLFS3Vl8tEnN+Qt3OMPmyXj/NuOUQuo1KDKu9uYJAiFaHE4cLkHNCeAKeoaNND6KBmq FiWQ== X-Gm-Message-State: APjAAAWEXAJgb2NfdzSUPdYmCIBE8Z6c/7PnNQJ33Lct4GSnOMgGoPda aH2OrAEuOspYbsmIF0UOWkdMtGcFVpxeYIiCAhM= X-Received: by 2002:a63:2685:: with SMTP id m127mr31628780pgm.6.1565646682512; Mon, 12 Aug 2019 14:51:22 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:34 -0700 Message-Id: <20190812215052.71840-1-ndesaulniers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 01/16] s390/boot: fix section name escaping From: Nick Desaulniers To: akpm@linux-foundation.org Cc: sedat.dilek@gmail.com, jpoimboe@redhat.com, yhs@fb.com, miguel.ojeda.sandonis@gmail.com, clang-built-linux@googlegroups.com, Nick Desaulniers , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Martin Schwidefsky , Gerald Schaefer , Philipp Rudo , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org GCC unescapes escaped string section names while Clang does not. Because __section uses the `#` stringification operator for the section name, it doesn't need to be escaped. This antipattern was found with: $ grep -e __section\(\" -e __section__\(\" -r Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- arch/s390/boot/startup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.23.0.rc1.153.gdeed80330f-goog Acked-by: David S. Miller Tested-by: Sedat Dilek [ Linux v5.3-rc5 ] diff --git a/arch/s390/boot/startup.c b/arch/s390/boot/startup.c index 7b0d05414618..26493c4ff04b 100644 --- a/arch/s390/boot/startup.c +++ b/arch/s390/boot/startup.c @@ -46,7 +46,7 @@ struct diag_ops __bootdata_preserved(diag_dma_ops) = { .diag0c = _diag0c_dma, .diag308_reset = _diag308_reset_dma }; -static struct diag210 _diag210_tmp_dma __section(".dma.data"); +static struct diag210 _diag210_tmp_dma __section(.dma.data); struct diag210 *__bootdata_preserved(__diag210_tmp_dma) = &_diag210_tmp_dma; void _swsusp_reset_dma(void); unsigned long __bootdata_preserved(__swsusp_reset_dma) = __pa(_swsusp_reset_dma); From patchwork Mon Aug 12 21:50:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171120 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp75869ily; Mon, 12 Aug 2019 14:51:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2oLVMK/dQ+5XnBAtsSLasaHfcfy3fGZa+k0aRoRF0B2fEjREDVQ3lO03Fn/K0+JQ4o2zC X-Received: by 2002:a17:902:306:: with SMTP id 6mr24483017pld.86.1565646695197; Mon, 12 Aug 2019 14:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646695; cv=none; d=google.com; s=arc-20160816; b=XPTf4K8p0EKgJlKP5h3RP5RyFSi2hcStqosOiRPRu3ZnBkPtRriuGRsuxULnoPy/uA 6wOZ6N0Ziqj5VkSf+UVDBBH7Bjal9kacwZ/fxC9Sab6zEwt9o2fzbzt0iJFuP9zIIKlb TY2OcwL8rhHUvL2FQ3mDdUyUjUmU0NcYSYl69JUhmcMrnlkUlNDu2KzYGgY8spUg5W42 hZOQaJ3/9stTaXcc8oV6Cb5S6AgDg2Ytgt70AXUTapmwXkFLzgYvUAZdXlJRV6vdaRU5 UHCRolBnpIPeIxBM3aD80ti1ksUt9iD8h53pA73xTavvVRx8avx84NxkRlSSZ69kNGP1 g8zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=0kDIUkQq74jS4s3L5upJ2sLFeJ4SQuXmh/iJl/tNzO8=; b=pXN5vavNKpcL/+EQeqkNIpM1TnNfywCJkqLmbM/SbLp84BilgmLrQtsWzs1PKAaqXC OocTC/F0p2ikwI9bhUBMbOmtAJLt5CQwmg2QIk+NCAiOOnw6Qe+JdcPek2bRxCInNERz m2YcQZYNYMbjFXK+nB9aSYd/oXgNPdBFbQs06jhB9qKxKMfHzuRosJYpwg6SBlFQKMNb XgIezWJTxuYcon6GP/1wiW/My2P0eTQcS34664sbc4u2B5iPxsp7naT7nKUSlAEl9cGX fMgLhUpjA76KR+IJBJX953N6aRlJdcGjq7lMloI+D0IQu6BCbbft628LD33psCQ95mL9 Y9Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Vd9nPvrN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j187si62991745pge.591.2019.08.12.14.51.34; Mon, 12 Aug 2019 14:51:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Vd9nPvrN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727689AbfHLVvd (ORCPT + 28 others); Mon, 12 Aug 2019 17:51:33 -0400 Received: from mail-qk1-f202.google.com ([209.85.222.202]:55249 "EHLO mail-qk1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726200AbfHLVvc (ORCPT ); Mon, 12 Aug 2019 17:51:32 -0400 Received: by mail-qk1-f202.google.com with SMTP id x28so17908570qki.21 for ; Mon, 12 Aug 2019 14:51:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=0kDIUkQq74jS4s3L5upJ2sLFeJ4SQuXmh/iJl/tNzO8=; b=Vd9nPvrNsnO4tVGqvUzBIbfckrBlSRoUQ71ZP+FzvSNKEEhOuE681rboi5PXi4jYKq OY9v/yyXkJSEFM/SFETSH27C/UkgCU3JxUKwGMAyYh9yeqjjz6rNOCU2ceXdMw1LXfKW g4w1vs3y/w7FDQN3p1HEMS9FL8JXrsYqipn6zsbCxWPVF3CVt2wNKj/vkLmdJN+lktgz Us3tD4wd8wXVBIiHWmvQvmYWMeiU0jbuHcm0RVbTzPkoi7lBNBkyEiPNtaHoNNV0G/tW XFNS1krIhOH1G3jmt6d25VJw3BxZh00zqfGqlcb2OKw6p8kV57c1U99uFLWS4v8K9ikH DoSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=0kDIUkQq74jS4s3L5upJ2sLFeJ4SQuXmh/iJl/tNzO8=; b=m2fbZjTrY7TpHHtvN1ro0d+C4d36Iw6ZVtED4T0O9RtZDQXpjOxa8ZxPclAN11adyj /KMrsV9Gw7fOU5Co+0d+T0e7uyCOCQ01gL3tnGp+G4Vi85y37cjkvL2Bu86aeCG958fn A0/AAkomNqgT1LQ1fCH1scV9wiKpyeTRiwCuSSjVEqPW4Ww4SbYf6447+wVaZNn8MQiN UYPlUmzitVo42Sake72BFHBHwPqmK6xQkmCB6Kehekcsk02aPG7ku8rhikWvte9M5M14 Hd+A2cEkHWZr3GVwns/3sDIp2qsYvWwa9XnMysD8VWd/CNDdYWb/U6knRfSbjrcBA3gh hs4A== X-Gm-Message-State: APjAAAWrSkPnbQ4TqHhH7akwc6nCYEONh7DZ28r7kbb0LIiiqTmuU6xw VIxdzs4hFWBsT9kR5k2lWcQNwmthDUA3VjA+vN8= X-Received: by 2002:a0c:af33:: with SMTP id i48mr31608806qvc.185.1565646691285; Mon, 12 Aug 2019 14:51:31 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:35 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-2-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190812215052.71840-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 02/16] arc: prefer __section from compiler_attributes.h From: Nick Desaulniers To: akpm@linux-foundation.org Cc: sedat.dilek@gmail.com, jpoimboe@redhat.com, yhs@fb.com, miguel.ojeda.sandonis@gmail.com, clang-built-linux@googlegroups.com, Nick Desaulniers , Vineet Gupta , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Enrico Weigelt , Kate Stewart , Thomas Gleixner , Greg Kroah-Hartman , Allison Randal , linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- arch/arc/include/asm/linkage.h | 8 ++++---- arch/arc/include/asm/mach_desc.h | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) -- 2.23.0.rc1.153.gdeed80330f-goog diff --git a/arch/arc/include/asm/linkage.h b/arch/arc/include/asm/linkage.h index a0eeb9f8f0a9..d9ee43c6b7db 100644 --- a/arch/arc/include/asm/linkage.h +++ b/arch/arc/include/asm/linkage.h @@ -62,15 +62,15 @@ #else /* !__ASSEMBLY__ */ #ifdef CONFIG_ARC_HAS_ICCM -#define __arcfp_code __attribute__((__section__(".text.arcfp"))) +#define __arcfp_code __section(.text.arcfp) #else -#define __arcfp_code __attribute__((__section__(".text"))) +#define __arcfp_code __section(.text) #endif #ifdef CONFIG_ARC_HAS_DCCM -#define __arcfp_data __attribute__((__section__(".data.arcfp"))) +#define __arcfp_data __section(.data.arcfp) #else -#define __arcfp_data __attribute__((__section__(".data"))) +#define __arcfp_data __section(.data) #endif #endif /* __ASSEMBLY__ */ diff --git a/arch/arc/include/asm/mach_desc.h b/arch/arc/include/asm/mach_desc.h index 8ac0e2ac3e70..73746ed5b834 100644 --- a/arch/arc/include/asm/mach_desc.h +++ b/arch/arc/include/asm/mach_desc.h @@ -53,8 +53,7 @@ extern const struct machine_desc __arch_info_begin[], __arch_info_end[]; */ #define MACHINE_START(_type, _name) \ static const struct machine_desc __mach_desc_##_type \ -__used \ -__attribute__((__section__(".arch.info.init"))) = { \ +__used __section(.arch.info.init) = { \ .name = _name, #define MACHINE_END \ From patchwork Mon Aug 12 21:50:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171121 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp75964ily; Mon, 12 Aug 2019 14:51:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9xDWxyOTppU0bsGQQB5kxO3eBdIjx58YGQ9xI+XwFCGN1Mxm9zdQ1PT2eLS5DfenxUcJR X-Received: by 2002:a17:902:d894:: with SMTP id b20mr29293340plz.134.1565646700556; Mon, 12 Aug 2019 14:51:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646700; cv=none; d=google.com; s=arc-20160816; b=JJeivIp1cZXhjZf8nCramHcgQQSP/4+e1KEB/rPYFldPKKrepLPSlaxVIPlEdX3adG 2EGRcQQxk3Pxh7o6FTjCnNTlp6+PssHRbjGo+JbJZhBBBm6sSh1plxsTPs3rCiJycHml Q4mFWXbMmCo5+ayPknNNJTYJGFmRHn7DYq/xW9axxMEEWUO0dZVhSubdTwMKRv8ypA0D Kmy46TrgyRnS43xFHm2wGZhi0mSUQE1qTi6JDLpXTWnePxNcmPqKyqvlyvlqIl2EvoUV 2voee8raZdSudKGTcUNY1XZyoBhct1tjjN2LEECsmkUu8vPokAyuRGeh/aOXa6NHoJRH Dd4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=Ci0/dDTEQ/TKTYA4PTTz/x+w1WNnSFlT+0iZElVTbkg=; b=mv7OtwxzFiI64LLhgSg6+9Tyexftv4Li2+cHoavD145qJVoHiBJ426nd3PU3uxLe80 EWRt8Q3ANBz5rFiFOBnU5zQ+n1+5iBYW6oDU2QkIyBL4iQm+XkUrVN5Bs8kUXTh6UgOZ VnknLOtWmfo2vkpZ2fTumQk6tPtcvfR0HYO0zdsfcjOTCLR/xfyEtZa52nrWgCNVsrLT x+Ia9ySt/lSM56XYEPFZ5AyQPifrql5TIjEEx2M8xsNtDdYYE4ixZ4cjJzl4ZOvJZUgM dNc14ibsABKnMPc0UHGeUcH9GR/PizkSBNICqKFZQPd+lftKGeoTDzOoVK/HD9nshCcW GQjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Qz1M7PvU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j187si62991745pge.591.2019.08.12.14.51.40; Mon, 12 Aug 2019 14:51:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Qz1M7PvU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727722AbfHLVvj (ORCPT + 28 others); Mon, 12 Aug 2019 17:51:39 -0400 Received: from mail-qk1-f201.google.com ([209.85.222.201]:47140 "EHLO mail-qk1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726200AbfHLVvi (ORCPT ); Mon, 12 Aug 2019 17:51:38 -0400 Received: by mail-qk1-f201.google.com with SMTP id y67so2488325qkc.14 for ; Mon, 12 Aug 2019 14:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=Ci0/dDTEQ/TKTYA4PTTz/x+w1WNnSFlT+0iZElVTbkg=; b=Qz1M7PvURpf39A2GyB2ThYI6sZWekP4kv2/wK2aFuwloN8lbCxPc3rjZudsxak4kpn ajMlDmgK9Lu/NgFxIw4npr3+GQxp/RQRN77R18W7n5T1GJzD68w0MkzsXaIMJTN2I3Le IHTkYpbbFG1xRAubUMnsy18g9+4aGGoJv5yhML4ehVYces0T86ip2lzBf4TV3/1dBFmz rkizrYzDKRP1z/p0c9ysugw9oGhpmhEmP4orYaxGYbj9wc0ZPxEtrXqTMSL0umYO8f9P ZwBLT+KUw35Au9CQtI70zlZPeMbTJ6ylaDdbqr04CdqMW5iZjo+waL464CSdJCPaWl3S Z3Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=Ci0/dDTEQ/TKTYA4PTTz/x+w1WNnSFlT+0iZElVTbkg=; b=O96RQoFA3Rrtzp49Bwr1iF35pvgOXeweqkkN6UZOgZGpWPkaAbJwIzWmnNnUhoWDOI McvfbXYLdMFk5apETtDYbn3JgOfEDrRg6/BwflzWOkDAOwP9TW7PHAVq649G8/N6IjjV OEl/4UBPLS/x1QSOXWMQaRWyX4q8iLfDCSN79U2fIsxkUAUP+hPdk481yX2GiIejcMna 2laBLjwFz6HbKaSU6I5oGTTfBvm+cAAK7aRg5Wk2En7q9oE+ktXJ8e+0KKfMjGFZJZjJ wflXnQwwRMnVbibLA8U7yu4FwVDno/IsT/iKr9aj0ZHodVeN9t2j3UGta4xW0h7xGoLZ RimQ== X-Gm-Message-State: APjAAAUlfukEcpi/dKqDpwPmw9UMYQFwA8CEyGZVUJoM5L9KsKRZ918X nmIQ1aXQBduj/beFljOnOEUGOvTPvgOevxCilaM= X-Received: by 2002:a0c:98e9:: with SMTP id g38mr31135758qvd.187.1565646697667; Mon, 12 Aug 2019 14:51:37 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:36 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-3-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190812215052.71840-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 03/16] parisc: prefer __section from compiler_attributes.h From: Nick Desaulniers To: akpm@linux-foundation.org Cc: sedat.dilek@gmail.com, jpoimboe@redhat.com, yhs@fb.com, miguel.ojeda.sandonis@gmail.com, clang-built-linux@googlegroups.com, Nick Desaulniers , "James E.J. Bottomley" , Helge Deller , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , John David Anglin , linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- arch/parisc/include/asm/cache.h | 2 +- arch/parisc/include/asm/ldcw.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.23.0.rc1.153.gdeed80330f-goog diff --git a/arch/parisc/include/asm/cache.h b/arch/parisc/include/asm/cache.h index 73ca89a47f49..e5de3f897633 100644 --- a/arch/parisc/include/asm/cache.h +++ b/arch/parisc/include/asm/cache.h @@ -22,7 +22,7 @@ #define ARCH_DMA_MINALIGN L1_CACHE_BYTES -#define __read_mostly __attribute__((__section__(".data..read_mostly"))) +#define __read_mostly __section(.data..read_mostly) void parisc_cache_init(void); /* initializes cache-flushing */ void disable_sr_hashing_asm(int); /* low level support for above */ diff --git a/arch/parisc/include/asm/ldcw.h b/arch/parisc/include/asm/ldcw.h index 3eb4bfc1fb36..e080143e79a3 100644 --- a/arch/parisc/include/asm/ldcw.h +++ b/arch/parisc/include/asm/ldcw.h @@ -52,7 +52,7 @@ }) #ifdef CONFIG_SMP -# define __lock_aligned __attribute__((__section__(".data..lock_aligned"))) +# define __lock_aligned __section(.data..lock_aligned) #endif #endif /* __PARISC_LDCW_H */ From patchwork Mon Aug 12 21:50:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171122 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp76074ily; Mon, 12 Aug 2019 14:51:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6XZVMNTdWQZ8chsjeKmMS/vDo0Dww/RSXBxvz07vTwE8kmsv+fT742DzuebYaXA4ZWxoo X-Received: by 2002:a17:902:bd09:: with SMTP id p9mr10143316pls.96.1565646708080; Mon, 12 Aug 2019 14:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646708; cv=none; d=google.com; s=arc-20160816; b=rcRaW71VIjs8fyZ4QVWZTNEiGz7hFIKh0xpDcM6A6on//ht5sdn7Izrj0TFObBfp64 cUZpQ235QWZD6P8vp1WPoYvlBVN8tKcaEa/QXRaP7PLsbVnwrlffhMeuPte2QuM2Y0KW B1IP1A9Dat/E6gu4O29WRP72Pu34v9fKwqhrtp9r/aChuWqxLSn/eObDZIFsLH9IHJ2h 6Xetr4sdtIMP+uhfIovQRMxJXaqEnTJhnRKtrBO3xDDULGjQeEqE21z5bnlYMa66gjBE 1n33hVbETt7WZ7+nlRb3jQzSgQmWtBw8+AaDOi7RO1jDDoqf+qcnhiybs12tMmSrnamF iulA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=+V6H61t/WhJBtoDgPI8KA/pTwpjh8ARqkJflJLJFNkA=; b=D4AERoVYOsEJlY072LjwtVLtabXUkVz3hKRYy2EQ+aVKjyJMo/dzyNkotaQobr7rIM v0S1FEopIu69O+VMy5kpxiVatfUH0UEeE5e6kJgi55l4BUWaG8m1O/tdru4EVN01M38i TzmxE96lf0nvGGzvxTkrZCYXxaXSvU23ETeCf6X0WDiBK71B2An12UtrV6745Q/FzlmL 4C3c0Nlol/RL+oUf1tDGnnppRFZdGKJrQbg4U57nDnyVRx4xUCRCfy2p1sCX8gEB8N3b 4ONQ4WgH/CpEVcanH6q90MKfb/YLb2dg8JQy3lypF5TREGEpvrzhMJLXc43Rd1P8nNld 3Uqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="B1M/tQcz"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j23si63859955pgh.535.2019.08.12.14.51.47; Mon, 12 Aug 2019 14:51:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="B1M/tQcz"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727762AbfHLVvq (ORCPT + 28 others); Mon, 12 Aug 2019 17:51:46 -0400 Received: from mail-pg1-f201.google.com ([209.85.215.201]:42983 "EHLO mail-pg1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727726AbfHLVvp (ORCPT ); Mon, 12 Aug 2019 17:51:45 -0400 Received: by mail-pg1-f201.google.com with SMTP id l12so18687503pgt.9 for ; Mon, 12 Aug 2019 14:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=+V6H61t/WhJBtoDgPI8KA/pTwpjh8ARqkJflJLJFNkA=; b=B1M/tQczf/XakLDt4Inap3j9ElF/nZDax8kM67P0+4rSAEH7C64FdFFYSLrRzqKkYX 0BjVEzzXsoy4prlbQ9UO0XjUaVioPsJepUdinCXmNmWblyLhMttRjyNxD395r0K07Uzq +/vSotQ5Btm7RMFUZCamhb3TLsBzJCaWms2wf2rRuXQexO/KFVHurKufzwuszAO9xl8y /c8iAdvW+4Z8pgK6ZZu2qf3nKfh7SLjj/Z2XrgIF3XmS8VDTsFKsRyWO7EKfHlCChLLB Ynh+8+O0K3H3ODFi/7qj3ZBp5fP0ts2nLOsZEEbcDm3suCCsaDUMEh0gh9cDLV1vqruy dkgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=+V6H61t/WhJBtoDgPI8KA/pTwpjh8ARqkJflJLJFNkA=; b=Xh33YHnxVFSiy9OY/xDHM3ypGSbv6JYtmgBaW4dSMqiMVCuOjEYsLADCLUDiCYK41o 76uqxmU880bjqKrDOi4e8HEv1L+S4AU7p8hNxo/Q6xRj7XbnwYPUgqNrIhQROAp5TmOy 360r7uBm8cUejL3/Si7mn537ZrDN61wpiPAHibqT7YqTiQWByXIYtyF6w7UCrubeZZo4 e4MKbs+YG39gFa2cF/0Z8sbVEJrmp7yQ5E777hybFGNrpzctpSGnXuKdRuTigWYyToBN 52HLmYEgPSNyaWahZ8w4BsEQpJZJi6PG+T6f8zNERv71u2m6MxkfsilCQSz1F+CfgAk0 NHwA== X-Gm-Message-State: APjAAAVrGclZzPt7aliqLySz+o6CiaJcjUoNI3rMbupKKhZycAVsuUEd UMmqVcSugqby/JdKKpTZD1RA6cHh22XvaklSObg= X-Received: by 2002:a65:68d9:: with SMTP id k25mr32098928pgt.337.1565646704006; Mon, 12 Aug 2019 14:51:44 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:37 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-4-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190812215052.71840-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 04/16] um: prefer __section from compiler_attributes.h From: Nick Desaulniers To: akpm@linux-foundation.org Cc: sedat.dilek@gmail.com, jpoimboe@redhat.com, yhs@fb.com, miguel.ojeda.sandonis@gmail.com, clang-built-linux@googlegroups.com, Nick Desaulniers , Jeff Dike , Richard Weinberger , Anton Ivanov , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- arch/um/kernel/um_arch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.23.0.rc1.153.gdeed80330f-goog diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c index a818ccef30ca..18e0287dd97e 100644 --- a/arch/um/kernel/um_arch.c +++ b/arch/um/kernel/um_arch.c @@ -52,9 +52,9 @@ struct cpuinfo_um boot_cpu_data = { .ipi_pipe = { -1, -1 } }; -union thread_union cpu0_irqstack - __attribute__((__section__(".data..init_irqstack"))) = - { .thread_info = INIT_THREAD_INFO(init_task) }; +union thread_union cpu0_irqstack __section(.data..init_irqstack) = { + .thread_info = INIT_THREAD_INFO(init_task) +}; /* Changed in setup_arch, which is called in early boot */ static char host_info[(__NEW_UTS_LEN + 1) * 5]; From patchwork Mon Aug 12 21:50:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171123 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp76170ily; Mon, 12 Aug 2019 14:51:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdCCZa3EbCm3/4qX3kJu03i9Cj+kQuT9vFGcW1No7KJMAk/jJogrVxDDkpI5x//w6HduiT X-Received: by 2002:a17:90b:f12:: with SMTP id br18mr1150719pjb.127.1565646714159; Mon, 12 Aug 2019 14:51:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646714; cv=none; d=google.com; s=arc-20160816; b=cxVbr6k7FvaQcDNN8/aHuJiCDdZiB66WnA4s8NSs3Y2nnISL8AusNpWN1wDTUX+1Pf a5aspf5Jk4zEHeCuxSFGTmIdURLz2nPlJiQ80f1q7x2vKnYRuDUO0ARTBwGeBBD/gPSf xD35dtXF77lPw8O4OeT2aXkvSFT5SmQRhteT1EMAGS9Qsyv10chVUfvVz+qWqew2hiJ4 A3zLOrHRIsrsx5shfG1J/RXrCbmtKref+/8dor0VP6wKVUVKyyy+DxncSnIyfUtO7me4 /e4vqZ5GuLAjfsuE/DWKQLS/pH0YIeb9nOjMNYtSaeOVAyEq6AeQF0MbPELWVU3XVqef jpcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=dkl7/UCGpL+NlP2/x1g4PAFoM8egHhu+Vinm7RBGZqk=; b=J0N3nl0n3lP37QemNsRqC4bE7Gk4hnQiENeMLOEapmAnDbrdq77AtZtlbCJFzNXTaW u9Ywq7QNLiQj7qvyMfn5pynbnQrtQ9lDTFpC0GcnlLpRzIK5r8sdogsxuf1XmWdjvKZt QwM3mQy7iDMg+rlZ9z2xoA73KYAj0i+gj6OGTTyQx0o2ztkEccP9NqJyjkn8+M3VgQxD Xn0fgKzANqMIsScoxvRIZgoD1jcNaG9nvBhQ8ywcxRTmh0hiR5zOaBR7E/b7egSZbrJP ZcM3gx7/zoWrXG36IKbAKZH9RCImHAAIXgVkIDZBQTWMakS6Zuv1FEflqooyCss1d6W4 g4Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=J+mGdp7X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j23si63859955pgh.535.2019.08.12.14.51.53; Mon, 12 Aug 2019 14:51:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=J+mGdp7X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727784AbfHLVvx (ORCPT + 28 others); Mon, 12 Aug 2019 17:51:53 -0400 Received: from mail-qt1-f201.google.com ([209.85.160.201]:35435 "EHLO mail-qt1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727726AbfHLVvu (ORCPT ); Mon, 12 Aug 2019 17:51:50 -0400 Received: by mail-qt1-f201.google.com with SMTP id f28so98059804qtg.2 for ; Mon, 12 Aug 2019 14:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=dkl7/UCGpL+NlP2/x1g4PAFoM8egHhu+Vinm7RBGZqk=; b=J+mGdp7Xm+87VwfjayUFTm4z6KIjoLKr3G5/6jbsKjKiWWIavprKB+X7dmk0l9Bx8F onSRT1QJl9t/AsSUb7lT5itZEaf1B4LthCvRbfAWbm/I4HV9vsfjoxoUO6mofTuRYqBk QTMiE2dznF57pZEAp4uQD5dk+pVLIclEK1thrPGBYjJh5Sxq9A2Qq/K1ErbvAnsf/NbL H0siglRdh1L/K6vWMFosRpOdO6OhF8/2McAILUeNkj8aeoy+x9pm/NMyc5ueAlhUBX7q 7F81YB86R3OsMbHXv+SUQCqqSSDQh7B55g3uz+4czgFjrQGi1eUJ/VLLgzCmLQxj34Bi PjzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=dkl7/UCGpL+NlP2/x1g4PAFoM8egHhu+Vinm7RBGZqk=; b=MC8gfPItULe3jQCvIxTf3sxZkdKffc40e+yF46I/slo5Hxdeh5VgpGA0wJgIlbveij O6MSDyNgQkta/jtCcAGcZcKE1caMb7iRjcpy6qEE8vV2xKiySo7m+flTig3XBrLro8kj huoLNevyQSe0/HQ3igSNPR8K6TnkvPXrXw9vzbxzk2gJZsp8bTOPCZU2SoCEZwhgaljN EeSXtmm8RKKmDOde926JKaQWqLtCiB3LjhsoFV4JJrLO+pfumEIiNsUs42ItHCOLvDED A8uQRoDp+A3IwfCYyPZUKARE2k4oo7XZZaFsBzkJz/38uYBWv/wQMvbPrNUUIUXStCel qeaw== X-Gm-Message-State: APjAAAV6UaPlHSw76Aa7C2bOFBf9z6vYMEfbVipzYGQlZAgSRmJMcc24 XZvz/LCMuzXxyw/wNT+lFxDG6wLi4+P/MGWi+4s= X-Received: by 2002:a05:6214:1086:: with SMTP id o6mr17437802qvr.107.1565646709559; Mon, 12 Aug 2019 14:51:49 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:38 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-5-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190812215052.71840-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 05/16] sh: prefer __section from compiler_attributes.h From: Nick Desaulniers To: akpm@linux-foundation.org Cc: sedat.dilek@gmail.com, jpoimboe@redhat.com, yhs@fb.com, miguel.ojeda.sandonis@gmail.com, clang-built-linux@googlegroups.com, Nick Desaulniers , Yoshinori Sato , Rich Felker , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- arch/sh/include/asm/cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.23.0.rc1.153.gdeed80330f-goog diff --git a/arch/sh/include/asm/cache.h b/arch/sh/include/asm/cache.h index 2408ac4873aa..07ddf31124a3 100644 --- a/arch/sh/include/asm/cache.h +++ b/arch/sh/include/asm/cache.h @@ -15,7 +15,7 @@ #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) -#define __read_mostly __attribute__((__section__(".data..read_mostly"))) +#define __read_mostly __section(.data..read_mostly) #ifndef __ASSEMBLY__ struct cache_info { From patchwork Mon Aug 12 21:50:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171124 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp76229ily; Mon, 12 Aug 2019 14:51:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSJnireEygoBJtiUwT5eFChBEm4/cZUe2LM7GgWmAUWpX6kabC7FRAVmvBTHyky4SJA5V9 X-Received: by 2002:a17:90a:8a15:: with SMTP id w21mr1259219pjn.134.1565646719250; Mon, 12 Aug 2019 14:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646719; cv=none; d=google.com; s=arc-20160816; b=uvUUJIIL4Es/20+HRvfAQDyWISJ4nf+X3JRSWbpM1SGlmxNPihPIuDVE2H/u+Q9jkK QODsP/lfbAwVLh6Qu8p8JqPSl2TM9bdi3hOTGfRAamTrq96HBtP4sQHtq+tJXwSR+m7P 6Ezjovaj7ztGvOL+l053CJMEG35+oCqfcI1R7RB6O263HmcfwRcLCJJ3WxkL6mAi37PY Z/MCTPTRK7QNbWRLlFSzZgZ8IaQQt3ikUkp4sNxEQ4kdPp6cSvKuELnhRIoqCLMj9l90 mdv1sZSMVhld41Eh0KC4JnRibNh8nlVKWZiNdhXhTeRXyX2aTmE+2MIjdn5UAiXRVjNO 0kwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=v7DM326MSicLDe79qqcY0HKXo2oHl/5N5zZnyQIiza4=; b=pzPNp9efoH4pP1bNvMa6/J2tUrnBqf2s7G3Ye7Atq+urBz99w5sB4uedmTKNzeCZ5U 7sXE/GLew6XJo23pQ2YTM8mcotgPq23Gh/CP+Fq6NHazSAfyXxKtXbnFdWmbTfOR792H 7/HhT8MWN784amrohxCDtwX8cF0travdp4/HsCJTIO4jFo9HTz96eBXluKbHBCrjglgi wIb3GyiSkMlehY8thCLeoTg3iYjTIUI0CZgb/rfub4BJ5JEOAB8Us7v4ek4UBVA68ELk GkGARQE8UobGepCVynIJsY5Yj/GLTrrTOx4uO112RIw/j40ro38WBpGCcd1PpXWYl0kG vqxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=o4VxFo+E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m6si53338145pgp.423.2019.08.12.14.51.58; Mon, 12 Aug 2019 14:51:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=o4VxFo+E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727810AbfHLVv6 (ORCPT + 28 others); Mon, 12 Aug 2019 17:51:58 -0400 Received: from mail-pf1-f202.google.com ([209.85.210.202]:50074 "EHLO mail-pf1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727726AbfHLVv4 (ORCPT ); Mon, 12 Aug 2019 17:51:56 -0400 Received: by mail-pf1-f202.google.com with SMTP id s10so1386513pfd.16 for ; Mon, 12 Aug 2019 14:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=v7DM326MSicLDe79qqcY0HKXo2oHl/5N5zZnyQIiza4=; b=o4VxFo+EtLXK2riOOPk4QRRjTs2RgXJTMYwZoru577r0BLbARIiNZUgZ1dVtHsUb/a TVe1r+i45usYLeR7al5mCa876/aAIdlLKo4tyo5zY6nY7Gxy9BGcPe+5HJFkY1afmf6w gzjH/RE3sXYqcfP5GkGNN2v99q5tcUCWgzjqF9EMOQNauKeK4JQfFt35ANcCtnTttTS9 LM+2F7THTVlJTjxayr8/pOfPcWhg4vwFHqzRSkcOFV4zl8G1Q/VwB+vUnryDWrDXS1qE WjpH200i04VXzIaeuJV3zfjCq6aEltlO0BArJHGJRSr8/Gyus7z2O0GaJJV4vBlLX5FY c4NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=v7DM326MSicLDe79qqcY0HKXo2oHl/5N5zZnyQIiza4=; b=rvbxNRDpEz1GWzSlhVARNX+4mQ0wBo7EbklGmAw2kSNC65vBl3qDzbtK/SaUOnoyH8 eZI3nApAD19CKy37yfi46js8Q4fxDk1shEvLe2Be8lqV5Ys5l32xX265lU75Eg8JSlw/ 9c3EVVlenbqBjzktMCTg8ybV3ppCxL03x9rD8nTip2+ToDjrpXWRBajazRtXEv40BGG+ mYi7NNlg0rm1eHWyQ0/Hk7x4vapVLUX9wvgNrHe5tsj8mavBphh2SjrYtPtg9VnAxlkm TDnl3c54xbcBtpori2scT4fz1tyhnNJc4NLIHpls23ws5g8vIsoSvZXeMdLGaaOSGdeD 1HAg== X-Gm-Message-State: APjAAAVmDhscmasFAR50l8T+5bhYPZY6jb6efwM4c4osW8xWUdrzd8/7 3Lqc9I0e7FyalZPLKbdh1YZ5UVYj2gvCIMWPLkE= X-Received: by 2002:a63:7a01:: with SMTP id v1mr32581110pgc.310.1565646715119; Mon, 12 Aug 2019 14:51:55 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:39 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-6-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190812215052.71840-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 06/16] ia64: prefer __section from compiler_attributes.h From: Nick Desaulniers To: akpm@linux-foundation.org Cc: sedat.dilek@gmail.com, jpoimboe@redhat.com, yhs@fb.com, miguel.ojeda.sandonis@gmail.com, clang-built-linux@googlegroups.com, Nick Desaulniers , Tony Luck , Fenghua Yu , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- arch/ia64/include/asm/cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.23.0.rc1.153.gdeed80330f-goog diff --git a/arch/ia64/include/asm/cache.h b/arch/ia64/include/asm/cache.h index 4eb6f742d14f..7decf91ca11a 100644 --- a/arch/ia64/include/asm/cache.h +++ b/arch/ia64/include/asm/cache.h @@ -25,6 +25,6 @@ # define SMP_CACHE_BYTES (1 << 3) #endif -#define __read_mostly __attribute__((__section__(".data..read_mostly"))) +#define __read_mostly __section(.data..read_mostly) #endif /* _ASM_IA64_CACHE_H */ From patchwork Mon Aug 12 21:50:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171125 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp76368ily; Mon, 12 Aug 2019 14:52:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKwTaPZ53z8eZuCTIYpPaxB8goww/sAqDAJ8Oei+SjJ6VeNnwlooGtEctJIlWe+CCkjChL X-Received: by 2002:a63:c055:: with SMTP id z21mr31327769pgi.380.1565646728097; Mon, 12 Aug 2019 14:52:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646728; cv=none; d=google.com; s=arc-20160816; b=mybDAenoo7pec4pc/OHAxaTA9GGjUr1t49bposNuvY+naMQav7cfARdvm/Xz5dqHU6 y7t6/oUUPw8tW7gEpUt3MSIABebZxO20JjoegWp2Lw07vZiqvDyndil4wJkjytWGLRHd OpDpsit2t/whOz5GxJ3j7RqntKW2DJCOB4lVp2e1MmSsjAYYqx1HAhb7wb2Sj6kdbQH8 VXwHvl0JhPQsJ+DHQ+oFJvltgF5MzEYISjaixjcm53bshJX8VrnU7zbuWPNJFOlZeJD2 Gmlz5jXuOhKwDIzudPO6yGBNBrgkevhQOi1L0TeuDxg+IpZfSNYhCxnDmvlRKQKYAdjj F//A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=4H9PWcGFWTnQRRpR6qzftNQ0lP7jmcpJc1z5bvKXC0c=; b=uW6qeMgkzvibkPOl82rAEqwqAshqvdnXAmR5Ezup9XaXXBs2eOmpEPTthAMQXsFdtf yv2kWlT0ODdkZBBntfo+hgToh27lHAVYDPQgjV/TlYQ90E4+WKQOW/CqRZBwbJfiBALP QS88l8I5WAOYdYSr9sPrwFaNma8dpWCKCgFgXH0Bo8lRRdXAdTi4X4xSxVJHbN56JVfe E1zXtJlTitCXoP+19b0hYWOuaKn9+lcic2qIioHT992xnr2VyChHTpgQ654MvkNzNovk warD95QOZFeV/zBFNy1zA95+n2EZi8TVRMXKTIsz4XopUOApX2m8K6y0Bs9l+UB68Jz4 Fmjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=GOYts8y6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bb7si5666782plb.303.2019.08.12.14.52.07; Mon, 12 Aug 2019 14:52:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=GOYts8y6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727828AbfHLVwG (ORCPT + 28 others); Mon, 12 Aug 2019 17:52:06 -0400 Received: from mail-qk1-f202.google.com ([209.85.222.202]:39431 "EHLO mail-qk1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727811AbfHLVwF (ORCPT ); Mon, 12 Aug 2019 17:52:05 -0400 Received: by mail-qk1-f202.google.com with SMTP id x1so94451773qkn.6 for ; Mon, 12 Aug 2019 14:52:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=4H9PWcGFWTnQRRpR6qzftNQ0lP7jmcpJc1z5bvKXC0c=; b=GOYts8y62z5hDG5UBvKTyRA53eo64IPfTWzoj20oJPWRcHrTKxwsvLxh3a4n5gbZEv PEmhfuyQJErUyzHsQgmc+BxiQ+0zaHqdQPYkHNoGmXn1M/p3nNSyCS4YS+QnjsSu15e/ 4p9ECmVJbtW52/m719Gd9XDThtFlJaVi8EAw8eYS5rrF7pNdIpC8S3YQAtKU4R/HoM1y BQi3xcPQqrL81dRaMBvh/8Aty6jeE0XDlyzQopxkixPirRMhNQ2BW7dcG4t34N56iTRJ t5GaJvbA2lpJTkd80ffPOg6j49O1q9MIvTWyeV3HEdK0REH1ZKW2JM3VYuddT4rKkiLa 91eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=4H9PWcGFWTnQRRpR6qzftNQ0lP7jmcpJc1z5bvKXC0c=; b=Gt2tb52HX8QJDrOUgBvXsIAc8taX6VcaIoRptD0IwD7SDl4VT0CxxGxLwC7ntMIbJ9 g6UVg/+7XMGniA8k15LXozxPm9HpWSRGNAEVb4AhJdFykUn0roa9B17YAeSQMOAKM1s6 HOWi2v+mQG3swVQbrc6XvVUIGJ6cjHnxGe2WHTjnfpgx85plHlVT2NuYVPfi2CPTmZy5 fpCto84KCDZ7VSPMPLHW/rkjAzfENJeHO7rcAUjIVrORsdvYL7ngn7fiW7gC3fe6fxzd B34AQA85VtUtUTZFCN2yyMq6x6XiaguKUDrgL8cMIqsv/nRHVQaNX++apvLdEoSvbrXb DNSA== X-Gm-Message-State: APjAAAXTlJfTl8JO/d93FaH8WDoF98/Rj7CsRwvXNf47hhsVmTA9BVFs A8UccrCugPnOZDf0TZ/bKJoRFgEwl37cYItfyXw= X-Received: by 2002:ac8:45d2:: with SMTP id e18mr6288417qto.241.1565646724122; Mon, 12 Aug 2019 14:52:04 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:40 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-7-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190812215052.71840-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 07/16] arm: prefer __section from compiler_attributes.h From: Nick Desaulniers To: akpm@linux-foundation.org Cc: sedat.dilek@gmail.com, jpoimboe@redhat.com, yhs@fb.com, miguel.ojeda.sandonis@gmail.com, clang-built-linux@googlegroups.com, Nick Desaulniers , Russell King , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Thomas Gleixner , Allison Randal , Kate Stewart , Enrico Weigelt , Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- arch/arm/include/asm/cache.h | 2 +- arch/arm/include/asm/mach/arch.h | 4 ++-- arch/arm/include/asm/setup.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) -- 2.23.0.rc1.153.gdeed80330f-goog diff --git a/arch/arm/include/asm/cache.h b/arch/arm/include/asm/cache.h index 1d65ed3a2755..cc06079600e0 100644 --- a/arch/arm/include/asm/cache.h +++ b/arch/arm/include/asm/cache.h @@ -24,6 +24,6 @@ #define ARCH_SLAB_MINALIGN 8 #endif -#define __read_mostly __attribute__((__section__(".data..read_mostly"))) +#define __read_mostly __section(.data..read_mostly) #endif diff --git a/arch/arm/include/asm/mach/arch.h b/arch/arm/include/asm/mach/arch.h index e7df5a822cab..2986f6b4862d 100644 --- a/arch/arm/include/asm/mach/arch.h +++ b/arch/arm/include/asm/mach/arch.h @@ -81,7 +81,7 @@ extern const struct machine_desc __arch_info_begin[], __arch_info_end[]; #define MACHINE_START(_type,_name) \ static const struct machine_desc __mach_desc_##_type \ __used \ - __attribute__((__section__(".arch.info.init"))) = { \ + __section(.arch.info.init) = { \ .nr = MACH_TYPE_##_type, \ .name = _name, @@ -91,7 +91,7 @@ static const struct machine_desc __mach_desc_##_type \ #define DT_MACHINE_START(_name, _namestr) \ static const struct machine_desc __mach_desc_##_name \ __used \ - __attribute__((__section__(".arch.info.init"))) = { \ + __section(.arch.info.init) = { \ .nr = ~0, \ .name = _namestr, diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/setup.h index 67d20712cb48..00190f1f0574 100644 --- a/arch/arm/include/asm/setup.h +++ b/arch/arm/include/asm/setup.h @@ -14,7 +14,7 @@ #include -#define __tag __used __attribute__((__section__(".taglist.init"))) +#define __tag __used __section(.taglist.init) #define __tagtable(tag, fn) \ static const struct tagtable __tagtable_##fn __tag = { tag, fn } From patchwork Mon Aug 12 21:50:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171128 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp76694ily; Mon, 12 Aug 2019 14:52:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAhtWwZhxNS/ZLGLqaGi6cVRVzpyWTOsbTiLpOZSoSqHH6rwgLTPTWPzys1jw/WczMJa+d X-Received: by 2002:a62:ab0a:: with SMTP id p10mr6537971pff.144.1565646750470; Mon, 12 Aug 2019 14:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646750; cv=none; d=google.com; s=arc-20160816; b=rvC214zgvvPBeaLwjhhch8+Ke+qxUqNOGbXBX7ZFfXRcs1AqbFgJ6xaSfrKoZH5Knf 4uzJYc73OuwPFS/86RSinTZG+oaPvXQ4stPAI0GhP9B7ajc5w9KVSbnSOcLQEZZ0T/i+ 0Vt8F7XutVXQ0VdJBV+s11Lqe6r0MCYZEv3+x1W2MA7HeokWTMlp8ovkEAVnp394uQwT IhFs4rE/tn3gojYQDZISAFsODLuocpzF9BTt8PR4MWa5GLsr0Tdrui7rpkHdZoUvvKVA f7XOPHkMnA9DeszJf8uYiLRGW2axwkxU4LhAYj2g9TFpyeMKEkYoMJRyEV0WTBvsBORR F1AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=2AgXEJvicJBSy/SRKWnK2/gvt/mXyTWKNhSQOzYorzg=; b=N7qjuJD8RHwx3JpQT6xWyMKXgcNHNZFd1UkMTt+v8XpIBKP9/0C0Mce7OQ1+UG4c11 5yyp1/r8gZzsY/X8IOdQxBW94qO3Gqpa9xmK9pKKn1R6CgCqVi91SatE+/8fJ93Nn+iT 3S55zKZNhw8QptmlVpYsiRxR3w5j/PWsZ4q92X8dWsGojNlocXmawOXTVSI89StxfMac cUrelaR6px0bKcX47WG9RfvHsimwh2EVv1/pcjR4DIMsKhFjJbfeShOfRnOIy5pAjNaF OCemhRB6U8ERSOrf6om4GWODDjVuGu3vaak3U0/2arJ6Z7xW1kRqE/22vGpSe/JokPfs QZ1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QD2Q9TVx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7si17308356pga.260.2019.08.12.14.52.30; Mon, 12 Aug 2019 14:52:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QD2Q9TVx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727911AbfHLVw2 (ORCPT + 28 others); Mon, 12 Aug 2019 17:52:28 -0400 Received: from mail-vs1-f74.google.com ([209.85.217.74]:34879 "EHLO mail-vs1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727029AbfHLVw0 (ORCPT ); Mon, 12 Aug 2019 17:52:26 -0400 Received: by mail-vs1-f74.google.com with SMTP id 66so23006763vsp.2 for ; Mon, 12 Aug 2019 14:52:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=2AgXEJvicJBSy/SRKWnK2/gvt/mXyTWKNhSQOzYorzg=; b=QD2Q9TVxotj25Bb1ouljTvMCvR83QJDYk2233b6aDf5UyAOc4+c3u0nYzqK2HiP9Jd mWjfm3fF7X8BxISaaea7HPxbpoGJAkgRdVmpjYKrjmNuH3MarsX7MS4wsNBe6G8n6f36 n47LxqcnSGzw6RtyrzlLPb+EQoVzrvthsOmuGkhCqDIEAEO62T+Ih/9XGutE8xHgaxex niw/b9YZcCQAxTuG+nGc6XTtMhuRJ36Q9JkIWVX4S93KEdLzIXq0UIzJZCfKPIBEyf5h yv65GUdyh/ZiBeRFUstxqphaAC9yA1yaTYOoX+hpm1aZ4CwSO39oD+vxLn1QJTqzYfuB H22A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=2AgXEJvicJBSy/SRKWnK2/gvt/mXyTWKNhSQOzYorzg=; b=U2C1hf+gvl61eTe4/PAL9EHTRkenbWCpbGwft3IqhTDuoFyfPOmRH4CX5mgQmn74Ph dvI1GceEzUlLYD+JKAkOxvdvGxOl/3asSFgRMj6sxJ/hrdJZwSZsANzmpg6UQbXEdF0k 9CyDy3aWFqWDJgk842fpJqArFB6R4W6B7LH7TCNFFF2yUu/fpW/nwmDlOBWyEZGAlG/W OmKoY8QDJeCFmmfyfWe8Ys2y07x+LgS9WMB2E7903QHrlSvAqRot9vaxceqLm3ug4eDI bgGidDB6FayKdqjDIQSaOju103vR9/ieHNDgsd0zghg6fnu+EBEOOuQsc9qMAyP1vecs uZiA== X-Gm-Message-State: APjAAAX8l3wenCde6bshgS03IdIlMuEeF2XBlQeOx3zXcVR30Z4MpO4n IwaGuGdm2zQC/V0iU+NOBxBz3pzYwGBE4irm5N4= X-Received: by 2002:a67:e447:: with SMTP id n7mr10737492vsm.115.1565646745461; Mon, 12 Aug 2019 14:52:25 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:43 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-10-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190812215052.71840-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 10/16] powerpc: prefer __section and __printf from compiler_attributes.h From: Nick Desaulniers To: akpm@linux-foundation.org Cc: sedat.dilek@gmail.com, jpoimboe@redhat.com, yhs@fb.com, miguel.ojeda.sandonis@gmail.com, clang-built-linux@googlegroups.com, Nick Desaulniers , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Geoff Levand , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Allison Randal , Thomas Gleixner , Greg Kroah-Hartman , Christophe Leroy , Rob Herring , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- arch/powerpc/boot/main.c | 3 +-- arch/powerpc/boot/ps3.c | 6 ++---- arch/powerpc/include/asm/cache.h | 2 +- arch/powerpc/kernel/btext.c | 2 +- 4 files changed, 5 insertions(+), 8 deletions(-) -- 2.23.0.rc1.153.gdeed80330f-goog diff --git a/arch/powerpc/boot/main.c b/arch/powerpc/boot/main.c index 102cc546444d..3ccc84e06fc4 100644 --- a/arch/powerpc/boot/main.c +++ b/arch/powerpc/boot/main.c @@ -150,8 +150,7 @@ static struct addr_range prep_initrd(struct addr_range vmlinux, void *chosen, * edit the command line passed to vmlinux (by setting /chosen/bootargs). * The buffer is put in it's own section so that tools may locate it easier. */ -static char cmdline[BOOT_COMMAND_LINE_SIZE] - __attribute__((__section__("__builtin_cmdline"))); +static char cmdline[BOOT_COMMAND_LINE_SIZE] __section(__builtin_cmdline); static void prep_cmdline(void *chosen) { diff --git a/arch/powerpc/boot/ps3.c b/arch/powerpc/boot/ps3.c index c52552a681c5..70b2ed82d2de 100644 --- a/arch/powerpc/boot/ps3.c +++ b/arch/powerpc/boot/ps3.c @@ -24,8 +24,7 @@ extern int lv1_get_repository_node_value(u64 in_1, u64 in_2, u64 in_3, #ifdef DEBUG #define DBG(fmt...) printf(fmt) #else -static inline int __attribute__ ((format (printf, 1, 2))) DBG( - const char *fmt, ...) {return 0;} +static inline int __printf(1, 2) DBG(const char *fmt, ...) { return 0; } #endif BSS_STACK(4096); @@ -35,8 +34,7 @@ BSS_STACK(4096); * The buffer is put in it's own section so that tools may locate it easier. */ -static char cmdline[BOOT_COMMAND_LINE_SIZE] - __attribute__((__section__("__builtin_cmdline"))); +static char cmdline[BOOT_COMMAND_LINE_SIZE] __section(__builtin_cmdline); static void prep_cmdline(void *chosen) { diff --git a/arch/powerpc/include/asm/cache.h b/arch/powerpc/include/asm/cache.h index 45e3137ccd71..9114495855eb 100644 --- a/arch/powerpc/include/asm/cache.h +++ b/arch/powerpc/include/asm/cache.h @@ -91,7 +91,7 @@ static inline u32 l1_cache_bytes(void) isync #else -#define __read_mostly __attribute__((__section__(".data..read_mostly"))) +#define __read_mostly __section(.data..read_mostly) #ifdef CONFIG_PPC_BOOK3S_32 extern long _get_L2CR(void); diff --git a/arch/powerpc/kernel/btext.c b/arch/powerpc/kernel/btext.c index 6dfceaa820e4..f57712a55815 100644 --- a/arch/powerpc/kernel/btext.c +++ b/arch/powerpc/kernel/btext.c @@ -26,7 +26,7 @@ static void scrollscreen(void); #endif -#define __force_data __attribute__((__section__(".data"))) +#define __force_data __section(.data) static int g_loc_X __force_data; static int g_loc_Y __force_data; From patchwork Mon Aug 12 21:50:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171130 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp76965ily; Mon, 12 Aug 2019 14:52:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsLijGFu12IohknKfK7m7sActx/N7+JMKO0kezNClE3TfEFy2cd13FFhH1qeqo/YwxFZFZ X-Received: by 2002:a63:30c6:: with SMTP id w189mr30777324pgw.398.1565646770525; Mon, 12 Aug 2019 14:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646770; cv=none; d=google.com; s=arc-20160816; b=Uz2XKIk0Vzwonxpf5RF51+0xOZDWezBtOMDwyrAbVUKZLnBmZ5yO9QnvSHfzMCirnW 4QWrpZRE4TJbp9r4nwdSaDV2EcGfS+aCaoEh+sbZvoFtSr0DtmSAwBrFZKsyTuigxPhX iBmcAG/s9neiebVQ+uhKvU1zd2p5/37Ggh8vsZ4PY+Mg+42S+7oC56wRxbv8caBK34hn HCvm3gc1BTDJoq1bm1tkE/ZN0fsEgzmXx0XUVu1Bh4vd+bTYUqBNgt2cX8cxI9m2NYYn ai5qEOgOXzMSmCTYyoWvU6FYQIpQT7bB3i8ERKdoMEoVS5s82Y0cq7vsUpQFNrnF4ci7 CLiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=G35OOE0sSfMuupCpgKQ0U4p9HFNylMt7P/lVbiGjqC0=; b=jpeu5gcWiE4+unWBbBuleVP5DGVTE7Gpd9pLxGiNbkVck1cFSd2S12KUFqDd40Jcyw izHAkcdc8Oc5vodlIjT12wzfs8sToGDuTsfwNS+9muVfm5VNT3TZsgAx0xyLYY9/2FII dyYAIh+8qKEgOehMhyqAkeUExclyUJpP6aeEmuR3VU7L5k3C2HUqDbb2b2kK253eyIfO U35ozHV2hyXGrmb8QEhpeHhGgtxAgl2772ceb0jFq7FTGQC7PcqlCo4v5txCrQtbg1lI 254o1xFt7T5WktROSrQS0Y1geDSFE7Cn5L8M8n7HfFKtp2/vmCNkFMfRCRyXgKezLMD+ LkHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qCcbdR00; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l70si11660515pgd.363.2019.08.12.14.52.50; Mon, 12 Aug 2019 14:52:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qCcbdR00; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727964AbfHLVws (ORCPT + 28 others); Mon, 12 Aug 2019 17:52:48 -0400 Received: from mail-pg1-f202.google.com ([209.85.215.202]:44555 "EHLO mail-pg1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727517AbfHLVwp (ORCPT ); Mon, 12 Aug 2019 17:52:45 -0400 Received: by mail-pg1-f202.google.com with SMTP id i134so28150615pgd.11 for ; Mon, 12 Aug 2019 14:52:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=G35OOE0sSfMuupCpgKQ0U4p9HFNylMt7P/lVbiGjqC0=; b=qCcbdR00iqgqZ/gG+jyOtF9Vncm844UkTWidc/xDIrreYwf0T8fY8OG5dIQRuiIxUe FzmJOT/4MTg94OWbw0D9mWByCs1880fYzbD8pk0R6AkDeFsG731eVhxBT+J45lFhFbwf mlOlBZtSLGRqW7vKpUirVuKzaLN7Rjm4AfAx434gpgHK8OnXp1izWDswYuMTZaX7/v+k E5rmfQINbPC0sfjRL04ILiNYMQYE/0nCRU4hiRjda6N7E6/6+GyHD0Ng7d2h3RK1UWj6 dgszycG/x5ZESFf+qAorMsQgsHnfLzNx5F9k2KWcorwNp2pin4MzhBg34i9DY6K23R8/ UIAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=G35OOE0sSfMuupCpgKQ0U4p9HFNylMt7P/lVbiGjqC0=; b=ZM2MNputIBFTu1usw4X2aT27ICmPIAzh9/U+KwWtkQ9H//4ECESaBYHWnVWuY2ShXk eMIprFI4aZEJTEvWujTYBw0RSYdj8bNMqev0NZiUR8dTTVM00u+qnuAagtNITWVN6S2a /kUxI7YCehWGfrWNJQAp1+a6YVFz7CHfhVIk7N/20xWnLUmRxeLrVlOxRYoD7sKZ/7eN blZvKclKa7P6lfFYPfJywAAcb4b6KIDD112bKVsj9nrdqAVlPSdluQdKA7AFfEQ+Du6m TPgfEx3l/jmQj2Cx4XrXSRuvpASbDGIrRsH18OyDpaMY3RpqxwbnGwA19l13j9EL6MYm 85/A== X-Gm-Message-State: APjAAAVBfKPrkpPjhrT0eXWSfcLiXF7gTX+H/1onl0XFQTJuI3vWY26h 5SG/T2ToyVtI7h1yB4CG7Y8Dv8Swy98R00Xkjl4= X-Received: by 2002:a65:6114:: with SMTP id z20mr32341554pgu.141.1565646764247; Mon, 12 Aug 2019 14:52:44 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:45 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-12-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190812215052.71840-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 12/16] arm64: prefer __section from compiler_attributes.h From: Nick Desaulniers To: akpm@linux-foundation.org Cc: sedat.dilek@gmail.com, jpoimboe@redhat.com, yhs@fb.com, miguel.ojeda.sandonis@gmail.com, clang-built-linux@googlegroups.com, Nick Desaulniers , Catalin Marinas , Will Deacon , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Andrey Konovalov , Greg Kroah-Hartman , Enrico Weigelt , Suzuki K Poulose , Thomas Gleixner , Masayoshi Mizuma , Shaokun Zhang , Alexios Zavras , Allison Randal , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org GCC unescapes escaped string section names while Clang does not. Because __section uses the `#` stringification operator for the section name, it doesn't need to be escaped. This antipattern was found with: $ grep -e __section\(\" -e __section__\(\" -r Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- arch/arm64/include/asm/cache.h | 2 +- arch/arm64/kernel/smp_spin_table.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.23.0.rc1.153.gdeed80330f-goog diff --git a/arch/arm64/include/asm/cache.h b/arch/arm64/include/asm/cache.h index 64eeaa41e7ca..43da6dd29592 100644 --- a/arch/arm64/include/asm/cache.h +++ b/arch/arm64/include/asm/cache.h @@ -78,7 +78,7 @@ static inline u32 cache_type_cwg(void) return (read_cpuid_cachetype() >> CTR_CWG_SHIFT) & CTR_CWG_MASK; } -#define __read_mostly __attribute__((__section__(".data..read_mostly"))) +#define __read_mostly __section(.data..read_mostly) static inline int cache_line_size_of_cpu(void) { diff --git a/arch/arm64/kernel/smp_spin_table.c b/arch/arm64/kernel/smp_spin_table.c index 76c2739ba8a4..c8a3fee00c11 100644 --- a/arch/arm64/kernel/smp_spin_table.c +++ b/arch/arm64/kernel/smp_spin_table.c @@ -19,7 +19,7 @@ #include extern void secondary_holding_pen(void); -volatile unsigned long __section(".mmuoff.data.read") +volatile unsigned long __section(.mmuoff.data.read) secondary_holding_pen_release = INVALID_HWID; static phys_addr_t cpu_release_addr[NR_CPUS]; From patchwork Mon Aug 12 21:50:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171131 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp77020ily; Mon, 12 Aug 2019 14:52:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyD4JLVYbDt5GQal0DEvgKzqRGBW5AtrZVByh5x4jKK/ndFj4yq3fhkjp0Xjp/i8fT6OJIF X-Received: by 2002:a17:902:4324:: with SMTP id i33mr34402077pld.108.1565646773961; Mon, 12 Aug 2019 14:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646773; cv=none; d=google.com; s=arc-20160816; b=uGKIsBX3pTUdQjmbKErkC7JHuEVyZ/OMfDodVSLDekuLp500X6FbFV8q+QAV/rrHfp ebYSskW8jw3cdx+4jXfVgMEnLuUHSgTGs5wvs+QWC8mc4IbWjWDC+eH9oF8s7o+UHs0J 9+wkZoY13kcuCXy33V3PGmdJMlt0ze9YJzzfgAzdyIrwn8YMIg+mXzPT7JQev64ZjQLR /z86wGfpmG4nrOPU4rSEYxl7YQmvIN43FWd/Y7YzVNnfp2Js8HZv/Y+wcFoxA6Jj8dYT gJ/TyC9M5rie/9wUoIRoNpCiRWU2bXmRuJ7YGa2VDT4FRJ6/p0Dik5TwggGoJQzKKaQl 3+uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=Yon+tib6K4agCcJ7udMNHZNwzVmJ2uncNyVHsVPdrbk=; b=XKuMQRzAeP7asvNzvuA4coio6YV6ZFZHBSXiTDO/tvxd3sLE3hwSy1Z36JuFMRiO85 yvjkxVIwCfSbXghhKbMW+2IyLH9bsLzYfqqes4HqwvEWCCtfBvPPiiSyU9iPB3pO+K8R CU9hsW5wEq1S8GRBlLk9pcVQ/anotJAZY8UMkhyppmkpeM0LiSo/IR4fm9BfvdbHnLDY BDS/0KEBrhU6VNiRjV660vCYrNgJaQuTpmLRU9cIcxSiJEfYO1cbapDPQ3u6Aw0wgWw1 EJZ9p2Nn9cRGfhEGuukJeY36TSCiuYgwgPznrI28VipNJ59gVJsggRqyfNecHF/SJabo 4wXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=AwtjYLPB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l70si11660515pgd.363.2019.08.12.14.52.53; Mon, 12 Aug 2019 14:52:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=AwtjYLPB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727984AbfHLVww (ORCPT + 28 others); Mon, 12 Aug 2019 17:52:52 -0400 Received: from mail-pf1-f201.google.com ([209.85.210.201]:33531 "EHLO mail-pf1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727517AbfHLVwt (ORCPT ); Mon, 12 Aug 2019 17:52:49 -0400 Received: by mail-pf1-f201.google.com with SMTP id d190so67019295pfa.0 for ; Mon, 12 Aug 2019 14:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=Yon+tib6K4agCcJ7udMNHZNwzVmJ2uncNyVHsVPdrbk=; b=AwtjYLPB1NH0++/16ytBu/qI2LJprggt3H70hAQSh1ZzM8gc9ZiVcgqdHhYHXjchQt px5nT4Pi96B1pKyG9a5L3txn6JOs4iAqr09VPH4Rc6QBU0eIn18RE2GlNcfxtWkO95vq Ly5ZNh4d0hDjxSSOfFs68hEEiC7GflyQcqAFn1iTWgvWYYb2TAk7xqAS59yUSWRrr9F3 WtuDrsR+Q2muciUZZXeLwu0n7pCa1Q/LADXXO5mjKy9NHLwVSB9CVMCXlCnpigDonN01 P+EORjsojsvbjUmK6aVl6sSTi/qOtZasZVk8CgCwV1MtPLNISfyl0xMhy6EYCrfo3xhU UoaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=Yon+tib6K4agCcJ7udMNHZNwzVmJ2uncNyVHsVPdrbk=; b=HjXr1WlW7cssxmzExzwguMXzNhvTBcQmLN9Ec9P325+oDW+0DqW0r4mRPwchIPYSe0 bRlkckAIvRW6vMlq/oM7dVU2SWENjeMjuO8XIZC0JmREqs+BShHw0pmDUzjvvNvv8/Xv 5p5P7KIeQJy43zaAj48h6oB128fX539UKvPXz7NfdJyRV06C8ONiSn/E03rx8/hJg67z n4mP4XkXVZ2O9wBXniRUq6AfJ9bElgSGpYxOQK2tMjfEiYALxLa2hoiUb9tiehMGCNnf WiX5CWkyVv3wrCEDBpzhFGaH9DLPnzrWzQG6vZlWbe6zmEG6O8BFEQgWesPZoiZCGdQe UTSA== X-Gm-Message-State: APjAAAUYOgmAsUhpVxaE+L9rj6PcQlf7I3bkZeweFTFcNIaVBcDWOM9C MM4MgOL95I22ZI3YAVhm+/metvq9n00H6yekByA= X-Received: by 2002:a63:5550:: with SMTP id f16mr33164653pgm.426.1565646768288; Mon, 12 Aug 2019 14:52:48 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:46 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-13-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190812215052.71840-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 13/16] include/asm-generic: prefer __section from compiler_attributes.h From: Nick Desaulniers To: akpm@linux-foundation.org Cc: sedat.dilek@gmail.com, jpoimboe@redhat.com, yhs@fb.com, miguel.ojeda.sandonis@gmail.com, clang-built-linux@googlegroups.com, Nick Desaulniers , Arnd Bergmann , "Naveen N. Rao" , Anil S Keshavamurthy , "David S. Miller" , Masami Hiramatsu , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- include/asm-generic/error-injection.h | 2 +- include/asm-generic/kprobes.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) -- 2.23.0.rc1.153.gdeed80330f-goog Acked-by: Naveen N. Rao Tested-by: Sedat Dilek [ Linux v5.3-rc5 ] diff --git a/include/asm-generic/error-injection.h b/include/asm-generic/error-injection.h index 95a159a4137f..a593a50b33e3 100644 --- a/include/asm-generic/error-injection.h +++ b/include/asm-generic/error-injection.h @@ -23,7 +23,7 @@ struct error_injection_entry { */ #define ALLOW_ERROR_INJECTION(fname, _etype) \ static struct error_injection_entry __used \ - __attribute__((__section__("_error_injection_whitelist"))) \ + __section(_error_injection_whitelist) \ _eil_addr_##fname = { \ .addr = (unsigned long)fname, \ .etype = EI_ETYPE_##_etype, \ diff --git a/include/asm-generic/kprobes.h b/include/asm-generic/kprobes.h index 4a982089c95c..20d69719270f 100644 --- a/include/asm-generic/kprobes.h +++ b/include/asm-generic/kprobes.h @@ -9,12 +9,11 @@ * by using this macro. */ # define __NOKPROBE_SYMBOL(fname) \ -static unsigned long __used \ - __attribute__((__section__("_kprobe_blacklist"))) \ +static unsigned long __used __section(_kprobe_blacklist) \ _kbl_addr_##fname = (unsigned long)fname; # define NOKPROBE_SYMBOL(fname) __NOKPROBE_SYMBOL(fname) /* Use this to forbid a kprobes attach on very low level functions */ -# define __kprobes __attribute__((__section__(".kprobes.text"))) +# define __kprobes __section(.kprobes.text) # define nokprobe_inline __always_inline #else # define NOKPROBE_SYMBOL(fname) From patchwork Mon Aug 12 21:50:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171132 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp77186ily; Mon, 12 Aug 2019 14:53:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBnrUhTrBtcYnimpPp7xpaXinT09Oyi4P+tEL8aQJybn2+Cmk/URW63Zsz8F4FCl4Pb+Pb X-Received: by 2002:aa7:8a99:: with SMTP id a25mr37889226pfc.127.1565646786530; Mon, 12 Aug 2019 14:53:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646786; cv=none; d=google.com; s=arc-20160816; b=HQGm7TYW0x3linoamf6DN6r4Z/5rZxJlZ5IPYzEQvjhGShYeNL1tWMcXBLTCum+5eG 6cHtysMqHCBJ79zi6Jwyw9d70HXHIKdvyZZrdXn/tpzx4qGxhDlL0DTYDlWYaYP2CQtf 2lHhc0oBi/pIPRBM6srwrNzDQPgNkq6hxpcHb8hMgfOFNQ30a/rD1MwI8qW2LFcJELC1 2SNjkWFDGGWtIqiF6L/tjnwX0QxjWphSBo0fcQ//JuSfbH/3ayCs70T5Rd/q2BJdofQo D2budEt3HyGFZfJPbGUOOiFYSWMiMWFvv5nezOcnMPrpPeEfsLD5zaVofMm0RJIGIeA5 4prg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=BvdjllFJec+jnIcbVyaNPdSiqXqeyTxUF0Oq2y0JBBs=; b=sVxF9dvE55VRVsAwM0wLUJmxueXEsEOhnvHM3kdKkSNbT5f4POdUL+J7qMhcVurJE4 e9Eh45Z6GV++l1L41/BCv8NDTHBTd01IFuKwEv4X+YOFA1ByyzQtbl+5dwrXoyZgAm+p 0lmv0UttS+ATjNojRAVMNEpCf9ql42SnU0a/Vk8GhrQysVH1ZHyLudtn+LOXe0sXo+XS NFZvKU9j0YDCQEBV9QOxBXXmm6ueo6iwbVqnpGYLqN5cav3x3/NLXis/9LU/37/Rd7V/ lzq4oP2KuBrQqak22URCOL3mgByTSZ6Xvi95s4XmyaOc/fUWWxzsYHNnEJTppSCSOIEb 6T6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=trJf4uh3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u128si59345081pgu.389.2019.08.12.14.53.06; Mon, 12 Aug 2019 14:53:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=trJf4uh3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728000AbfHLVxF (ORCPT + 28 others); Mon, 12 Aug 2019 17:53:05 -0400 Received: from mail-yb1-f202.google.com ([209.85.219.202]:52624 "EHLO mail-yb1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727724AbfHLVxE (ORCPT ); Mon, 12 Aug 2019 17:53:04 -0400 Received: by mail-yb1-f202.google.com with SMTP id e66so72439164ybe.19 for ; Mon, 12 Aug 2019 14:53:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=BvdjllFJec+jnIcbVyaNPdSiqXqeyTxUF0Oq2y0JBBs=; b=trJf4uh35Q+jM8xrFmCBx5akz0qigqRqbkG0gq6EWNOOLO/cOfUvRg1zYN5Krgv3CZ Tp1oZIRrBLfLcNZzy6SSSUo71Csv7Y3cFXPmmR7rvXmaWdO9mbsawI7DguqmCmrmbVpj OelkWG7IFbyN9AnUs4BQf674u45J6BxNK95owQBiAxsnXJTFtmC3i4b2KMu/kGOCGuWe ZqNuQbhRnOMtQHz25dSaqwt4Ubu+FdRkdDanK3J5max+fpx6beFdYmlXC9cOmr4gj4af p2l+5noMg0PDkQDUNn0/RkENSN49fNvUA25zUQaYBr0wEjs6uYeq7Va+qoI/9WmON+TA 96Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=BvdjllFJec+jnIcbVyaNPdSiqXqeyTxUF0Oq2y0JBBs=; b=Y8tIR1GgaZXobs6MeYSEbFVgQDjU0QUToOQq/JSH4npM2dsqsWkMFOic77kuGPktFf /625vcEz/Y+wS21V4idIdnR7HWYWS6mkgdC8oul7kJTpqIYOCwfXO+TI3aNTUjKBBgWl 9ArwJpG4iuQg3IaAlGgN1YJLErLKVSoebBjIUjo7p+gAU8WATDH/sUx2xbyDTJR697Y8 8JsXFYa4lUzzhFBcerHEhrN5yvryg50atlOY2UqlbjPl31AVbH2kc36Mojs2Xr1Ytd1j 1TPVMQtKu/Hg00UXklC17wem6bzEFzVC0O22B3NIeBOAoR8DdCxa1544kiDb7bca9x2m EOAA== X-Gm-Message-State: APjAAAWa/NHSBDl4f+Bg4KhitdzVPY3UKcV2qC8Bm6uK5soSTmxV7kj4 SNjN5+uN3cPL/RTFKiZy2wV4LlwLthXFKLbl5oI= X-Received: by 2002:a81:4858:: with SMTP id v85mr13462571ywa.370.1565646782523; Mon, 12 Aug 2019 14:53:02 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:47 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-14-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190812215052.71840-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 14/16] include/linux: prefer __section from compiler_attributes.h From: Nick Desaulniers To: akpm@linux-foundation.org Cc: sedat.dilek@gmail.com, jpoimboe@redhat.com, yhs@fb.com, miguel.ojeda.sandonis@gmail.com, clang-built-linux@googlegroups.com, Nick Desaulniers , Luc Van Oostenryck , Lai Jiangshan , "Paul E. McKenney" , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Thomas Gleixner , Ingo Molnar , "Peter Zijlstra (Intel)" , Nicholas Piggin , Jiri Kosina , Will Deacon , Ard Biesheuvel , Michael Ellerman , Masahiro Yamada , Hans Liljestrand , Elena Reshetova , David Windsor , Marc Zyngier , Ming Lei , Dou Liyang , Julien Thierry , Mauro Carvalho Chehab , Jens Axboe , linux-kernel@vger.kernel.org, linux-sparse@vger.kernel.org, rcu@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Link: https://github.com/ClangBuiltLinux/linux/issues/619 Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- include/linux/cache.h | 6 +++--- include/linux/compiler.h | 8 ++++---- include/linux/cpu.h | 2 +- include/linux/export.h | 2 +- include/linux/init_task.h | 4 ++-- include/linux/interrupt.h | 5 ++--- include/linux/sched/debug.h | 2 +- include/linux/srcutree.h | 2 +- 8 files changed, 15 insertions(+), 16 deletions(-) -- 2.23.0.rc1.153.gdeed80330f-goog Tested-by: Sedat Dilek [ Linux v5.3-rc5 ] diff --git a/include/linux/cache.h b/include/linux/cache.h index 750621e41d1c..3f4df9eef1e1 100644 --- a/include/linux/cache.h +++ b/include/linux/cache.h @@ -28,7 +28,7 @@ * but may get written to during init, so can't live in .rodata (via "const"). */ #ifndef __ro_after_init -#define __ro_after_init __attribute__((__section__(".data..ro_after_init"))) +#define __ro_after_init __section(.data..ro_after_init) #endif #ifndef ____cacheline_aligned @@ -45,8 +45,8 @@ #ifndef __cacheline_aligned #define __cacheline_aligned \ - __attribute__((__aligned__(SMP_CACHE_BYTES), \ - __section__(".data..cacheline_aligned"))) + __aligned(SMP_CACHE_BYTES) \ + __section(.data..cacheline_aligned) #endif /* __cacheline_aligned */ #ifndef __cacheline_aligned_in_smp diff --git a/include/linux/compiler.h b/include/linux/compiler.h index f0fd5636fddb..5e88e7e33abe 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -24,7 +24,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, long ______r; \ static struct ftrace_likely_data \ __aligned(4) \ - __section("_ftrace_annotated_branch") \ + __section(_ftrace_annotated_branch) \ ______f = { \ .data.func = __func__, \ .data.file = __FILE__, \ @@ -60,7 +60,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, #define __trace_if_value(cond) ({ \ static struct ftrace_branch_data \ __aligned(4) \ - __section("_ftrace_branch") \ + __section(_ftrace_branch) \ __if_trace = { \ .func = __func__, \ .file = __FILE__, \ @@ -118,7 +118,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, ".popsection\n\t" /* Annotate a C jump table to allow objtool to follow the code flow */ -#define __annotate_jump_table __section(".rodata..c_jump_table") +#define __annotate_jump_table __section(.rodata..c_jump_table) #else #define annotate_reachable() @@ -298,7 +298,7 @@ unsigned long read_word_at_a_time(const void *addr) * visible to the compiler. */ #define __ADDRESSABLE(sym) \ - static void * __section(".discard.addressable") __used \ + static void * __section(.discard.addressable) __used \ __PASTE(__addressable_##sym, __LINE__) = (void *)&sym; /** diff --git a/include/linux/cpu.h b/include/linux/cpu.h index fcb1386bb0d4..186bbd79d6ce 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h @@ -166,7 +166,7 @@ void cpu_startup_entry(enum cpuhp_state state); void cpu_idle_poll_ctrl(bool enable); /* Attach to any functions which should be considered cpuidle. */ -#define __cpuidle __attribute__((__section__(".cpuidle.text"))) +#define __cpuidle __section(.cpuidle.text) bool cpu_in_idle(unsigned long pc); diff --git a/include/linux/export.h b/include/linux/export.h index fd8711ed9ac4..808c1a0c2ef9 100644 --- a/include/linux/export.h +++ b/include/linux/export.h @@ -104,7 +104,7 @@ struct kernel_symbol { * discarded in the final link stage. */ #define __ksym_marker(sym) \ - static int __ksym_marker_##sym[0] __section(".discard.ksym") __used + static int __ksym_marker_##sym[0] __section(.discard.ksym) __used #define __EXPORT_SYMBOL(sym, sec) \ __ksym_marker(sym); \ diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 6049baa5b8bc..50139505da34 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h @@ -51,12 +51,12 @@ extern struct cred init_cred; /* Attach to the init_task data structure for proper alignment */ #ifdef CONFIG_ARCH_TASK_STRUCT_ON_STACK -#define __init_task_data __attribute__((__section__(".data..init_task"))) +#define __init_task_data __section(.data..init_task) #else #define __init_task_data /**/ #endif /* Attach to the thread_info data structure for proper alignment */ -#define __init_thread_info __attribute__((__section__(".data..init_thread_info"))) +#define __init_thread_info __section(.data..init_thread_info) #endif diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 5b8328a99b2a..29debfe4dd0f 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -741,8 +741,7 @@ extern int arch_early_irq_init(void); /* * We want to know which function is an entrypoint of a hardirq or a softirq. */ -#define __irq_entry __attribute__((__section__(".irqentry.text"))) -#define __softirq_entry \ - __attribute__((__section__(".softirqentry.text"))) +#define __irq_entry __section(.irqentry.text) +#define __softirq_entry __section(.softirqentry.text) #endif diff --git a/include/linux/sched/debug.h b/include/linux/sched/debug.h index 95fb9e025247..e17b66221fdd 100644 --- a/include/linux/sched/debug.h +++ b/include/linux/sched/debug.h @@ -42,7 +42,7 @@ extern void proc_sched_set_task(struct task_struct *p); #endif /* Attach to any functions which should be ignored in wchan output. */ -#define __sched __attribute__((__section__(".sched.text"))) +#define __sched __section(.sched.text) /* Linker adds these: start and end of __sched functions */ extern char __sched_text_start[], __sched_text_end[]; diff --git a/include/linux/srcutree.h b/include/linux/srcutree.h index 9cfcc8a756ae..9de652f4e1bd 100644 --- a/include/linux/srcutree.h +++ b/include/linux/srcutree.h @@ -124,7 +124,7 @@ struct srcu_struct { # define __DEFINE_SRCU(name, is_static) \ is_static struct srcu_struct name; \ struct srcu_struct * const __srcu_struct_##name \ - __section("___srcu_struct_ptrs") = &name + __section(___srcu_struct_ptrs) = &name #else # define __DEFINE_SRCU(name, is_static) \ static DEFINE_PER_CPU(struct srcu_data, name##_srcu_data); \ From patchwork Mon Aug 12 21:50:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171133 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp77226ily; Mon, 12 Aug 2019 14:53:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8PV14EixTJlPrdYjjR1idgCYP0oeDMRD9llGZFc6W6aNvWdWo8fd6Zn0aEtuON169Uo35 X-Received: by 2002:a17:902:1105:: with SMTP id d5mr31837338pla.197.1565646789948; Mon, 12 Aug 2019 14:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646789; cv=none; d=google.com; s=arc-20160816; b=kXL2012MjS3nSdCMiYYnVtUbNof80uZjWffD4JBQHuhVlvX0TwAEVSyDrgqPCijG6Y oA6JF3tSg4SMuitzN+u844nBzctmcaiM3zo66hWFp5lasoL2mTyloWXJImVhiI0+WT3n pHMFgYTvGBrdheDaSIY6PNtNIE0tR3gikpzBfB8bQC2BCugrt04CdSQ9OOAmLmHtyzAs 7eSGkDtYTgUI2RWrl9L0JdtD8wy1tR19uo6nMdJ6k/ARANCWtBcNmCJc5gCijhdwgiUC 0AZnGRPbacocO9HF5/lhLQyXh2l63nMfHt41ZMQZQKVEtSvO0ZsqIVi1fxMPDNKGP0tJ e4RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=mebfbjlkEdZmmfTa81qyikO5W5onC7JtmBJnlT+apBs=; b=NWnSMEueDL/Kj2N4VPQDgH+jUrG1bZRsg0NoVA2ygCxyAs5If3JD6TOqiytU5y2Jnj iBXbRW2UpPFcvHby51RCRX6V1Csiba4VEklq9MmZ5V3ahogs6NYScJKCEWMbIkf9IGIV OptD7GqfQAz+3XT4xb5jg9SgSIUzXNyKspeR3Fb3fiOG2EqOGgYV+NJQGBPnFBGv4suO kR9bZ+b8dgF0aKmWJU5PzqmFQNiNfpGixd7dLF5MqCjuf8HXr3DvkPlqjBeWsy4Xmb0i wwSXrfvcMD9acJZawA1iLGjtnNi2NiGXo66E5wRbiq0VIvpMtaPVfx11YRbXnJ0eDwWv WmJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=F7+jqw49; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u128si59345081pgu.389.2019.08.12.14.53.09; Mon, 12 Aug 2019 14:53:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=F7+jqw49; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728018AbfHLVxJ (ORCPT + 28 others); Mon, 12 Aug 2019 17:53:09 -0400 Received: from mail-pl1-f201.google.com ([209.85.214.201]:55613 "EHLO mail-pl1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727724AbfHLVxH (ORCPT ); Mon, 12 Aug 2019 17:53:07 -0400 Received: by mail-pl1-f201.google.com with SMTP id h3so1973883plr.22 for ; Mon, 12 Aug 2019 14:53:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=mebfbjlkEdZmmfTa81qyikO5W5onC7JtmBJnlT+apBs=; b=F7+jqw49SQZDkzeeWOAGmc6Lc1h+SEKaJh0xlc/LAxLKe2v+de+46qMQvwT+4BkWvs f8AKwNOC2CnnRVjmawfvPbXbdhxoRH91LyrcooNmXAxHmZ/SSIiRp7NP7qehBJkD9Olp Ggic8vteYilEaiqd7MDETwi5wJ0mukkru6pKC350sgRkfmYpmA1Uf6c4JGCBq+4KCoFj Zcd1QsAZD6fs0YID/HD9qvUSEmxUnQVeQOHFtt9VRuQrg3TjVMVYz9ZZaP6BYPbc4TbJ UrL5f27WPHBtcOEV1KHCFIthMyxdDU2shC6ubPAwjtByDHIVqz1vzmt1fTLro53yIjGq fxXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=mebfbjlkEdZmmfTa81qyikO5W5onC7JtmBJnlT+apBs=; b=S+ZC9t6u3GrB9dHiZn59j5cvLRGupkZL3mCsczF+G0ya9DjkoVO3uk6mFcrX2Nt/S0 /4dCcf/H2jX8oPL5t63kj0xD/G2dFxdui5HcWMQdKNEyv9jwwoUoDmOSL1/cQNK2SWEc 6jBPefd7a/KuhP1MmmbLB4N2CaNKo6q+wj+Oipvsl/CvDRyXTKkcNYmzbprL/Fovkpg8 Qld/wPaMYqaWBbvKrQ9ZTUMmuO97F9+RmcWOFinu+ekuieCs/I6SwuAE9BXsowlD2cpF yWMRjVebrIn88ebqbzZemBoyryjdpr4A8UFhud4GZAVBt8IBNd/naJNBfuPY5ZwcMow5 5VqA== X-Gm-Message-State: APjAAAXJCoYMd6QxQ4gB0aLcaCurmcLdX+Lk2OWWJ38zWpsrZx1aVE1a vTHuuZVN1rc1BaNwItFbiN3PXXkWjs2lFJFXH8g= X-Received: by 2002:a63:4461:: with SMTP id t33mr31217445pgk.124.1565646786608; Mon, 12 Aug 2019 14:53:06 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:48 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-15-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190812215052.71840-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 15/16] include/linux/compiler.h: remove unused KENTRY macro From: Nick Desaulniers To: akpm@linux-foundation.org Cc: sedat.dilek@gmail.com, jpoimboe@redhat.com, yhs@fb.com, miguel.ojeda.sandonis@gmail.com, clang-built-linux@googlegroups.com, Nick Desaulniers , Luc Van Oostenryck , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , linux-sparse@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This macro is not used throughout the kernel. Delete it rather than update the __section to be a fully spelled out __attribute__((__section__())) to avoid https://bugs.llvm.org/show_bug.cgi?id=42950. Signed-off-by: Nick Desaulniers --- include/linux/compiler.h | 23 ----------------------- 1 file changed, 23 deletions(-) -- 2.23.0.rc1.153.gdeed80330f-goog diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 5e88e7e33abe..f01c1e527f85 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -136,29 +136,6 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, } while (0) #endif -/* - * KENTRY - kernel entry point - * This can be used to annotate symbols (functions or data) that are used - * without their linker symbol being referenced explicitly. For example, - * interrupt vector handlers, or functions in the kernel image that are found - * programatically. - * - * Not required for symbols exported with EXPORT_SYMBOL, or initcalls. Those - * are handled in their own way (with KEEP() in linker scripts). - * - * KENTRY can be avoided if the symbols in question are marked as KEEP() in the - * linker script. For example an architecture could KEEP() its entire - * boot/exception vector code rather than annotate each function and data. - */ -#ifndef KENTRY -# define KENTRY(sym) \ - extern typeof(sym) sym; \ - static const unsigned long __kentry_##sym \ - __used \ - __section("___kentry" "+" #sym ) \ - = (unsigned long)&sym; -#endif - #ifndef RELOC_HIDE # define RELOC_HIDE(ptr, off) \ ({ unsigned long __ptr; \ From patchwork Mon Aug 12 21:50:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171134 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp77324ily; Mon, 12 Aug 2019 14:53:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxa9HHZW3hHTmuPtBtHDf95IPmzQbi+Q2f/jgK6FBjlMOw4uIBqyiUK8FDgpp9o1ZTWQ48n X-Received: by 2002:a63:4404:: with SMTP id r4mr31365091pga.245.1565646797098; Mon, 12 Aug 2019 14:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646797; cv=none; d=google.com; s=arc-20160816; b=jfEEMpEFe9aNBZ8toMfRYMn+6FCZQSf3me0PLr360rQ2zxTEHmg1Okq0poe9ig9kZY zE4SYWDhRn4i+kZcEkrHUEAMaGUfsnrT4JFR/Q/KO7TB2QpsiAwOxrVSqw8RV1gI+ChK 9VerIUID+YfbtcNNXpv+PX7YOOcrZojT7QeX/3HwXuX1GPVZP8Sqjn9dcmKfn8PF4Evt caaux02tE6Cf15bStSfL1Pblqz75jzlkd9MWA6OOWfNCUQdnnNazK0DLkGq2pUmB5JJg BYs4jhLR9kDpR9bjG4gTOg6T0eLS5GUfNK4XOS8QT5TVTT22oruiJTJ5obHHziz3PKl8 G6iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=bLIn7GLHipF5J2aM8u4yisb20ADo6gvdLQjWA3nqqto=; b=C6nZ1aUFth7Ga/gOgPq9Z0YvteiwEXwXxvTzvZrA8axvvdVSjcafhQB6irWde5lRp0 3FSeFLr2vm83Uof8nY2gymkHwgM73+pkGa7OwixfLe9tdi6PBrpIbpDGxJ4BYamCriv6 fu2P7BWzzPkC7hvb/fn+8RlBedEz9Fq6ZCKJKpJwszm5y6LwDNi/MF7ZsIxGmNFl8WUe GgF+xXKkDPTe27U2Pl1tFKUzUUvnO6eZMokszHUYuC7Lu/FF5ObsTYDiYGnO70XMz8q6 S6m4qamN6y6Pb8acGqk3TOJcqvGfxmvwjg3LdqZVI22wvoOgxpvLIUDH5e3NxISrQZYK /bXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=oZgJljpX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 70si14490057ple.282.2019.08.12.14.53.16; Mon, 12 Aug 2019 14:53:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=oZgJljpX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728044AbfHLVxO (ORCPT + 28 others); Mon, 12 Aug 2019 17:53:14 -0400 Received: from mail-pf1-f201.google.com ([209.85.210.201]:33533 "EHLO mail-pf1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728019AbfHLVxL (ORCPT ); Mon, 12 Aug 2019 17:53:11 -0400 Received: by mail-pf1-f201.google.com with SMTP id d190so67019699pfa.0 for ; Mon, 12 Aug 2019 14:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=bLIn7GLHipF5J2aM8u4yisb20ADo6gvdLQjWA3nqqto=; b=oZgJljpXQ94rk2zW18vXcsZCcgjkqaEK0PFChQqFNUt9eJvRqpG4FjIx2VGo1ax+1W 9LkZEFvnvQf02vEHwbNRr57CpoAZW18go0riE7ej7s/xKszlrapE+MB3qeBOdD41evqx DU/YJ3BMfUdNEQOHFc1G7SKXOnpMfO94pUpF3H4pDLqDZ0XeWgLwLDyFySqSY/dQVASg J0uwn4XLMvLP/6jEpQwjOMjhtDAFTa8TRYsI2q22JG9aSl4NCpQnF6uaDWBntIPKGNnk s7TFZyujRoUAZr7YPCUNvKLYOIrCxj6HqiLrCocg+2h8u1GCXmYVb8HRMIDn3qr+bKHb 9SHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=bLIn7GLHipF5J2aM8u4yisb20ADo6gvdLQjWA3nqqto=; b=CiOt4ZXNnPtznXjEDdBygb4Lbf8spnLiIk2EelMXDpWagK+nuSK3olmBT+njF+nbLj F0hc0C9BxAGA7Ev4S/ti3Do8WlnKPCn1kihgDP1IghEFphETlVrV960M9qLgRheObumB B+lLD5t58ayZ0M+dZwK77rvnNzF3jvP4ntufjKPs5AoQvIDSzC3Tg7ILavoRIblBZVm1 w3l0i1M35CW5/ox2WCck3aoIxU/cA7AouUz4fX39S/4DWVhdnhzzahfuu+9BWhY7mOSx vbI4aiLwXtPa8PZNIy5Fh/HH0nfEUoaZGagNFOwFZ9SdlcmmZxWP5UZrUB8rPVelWX07 BDBQ== X-Gm-Message-State: APjAAAVZLYrLZ0bM6OZfRxFK17vcQic42e5EkxeTIRkupNIdu+6bzWYo sMi08WpTd34T9PzxR66qr21AjlzSZInnlvzZ/vQ= X-Received: by 2002:a65:6093:: with SMTP id t19mr981443pgu.79.1565646790802; Mon, 12 Aug 2019 14:53:10 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:49 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-16-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190812215052.71840-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 16/16] compiler_attributes.h: add note about __section From: Nick Desaulniers To: akpm@linux-foundation.org Cc: sedat.dilek@gmail.com, jpoimboe@redhat.com, yhs@fb.com, miguel.ojeda.sandonis@gmail.com, clang-built-linux@googlegroups.com, Nick Desaulniers , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The antipattern described can be found with: $ grep -e __section\(\" -r -e __section__\(\" Link: https://bugs.llvm.org/show_bug.cgi?id=42950 Signed-off-by: Nick Desaulniers --- include/linux/compiler_attributes.h | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.23.0.rc1.153.gdeed80330f-goog Tested-by: Sedat Dilek [ Linux v5.3-rc5 ] diff --git a/include/linux/compiler_attributes.h b/include/linux/compiler_attributes.h index 6b318efd8a74..f8c008d7f616 100644 --- a/include/linux/compiler_attributes.h +++ b/include/linux/compiler_attributes.h @@ -225,6 +225,16 @@ #define __pure __attribute__((__pure__)) /* + * Note: Since this macro makes use of the "stringification operator" `#`, a + * quoted string literal should not be passed to it. eg. + * prefer: + * __section(.foo) + * to: + * __section(".foo") + * unless the section name is dynamically built up, in which case the + * verbose __attribute__((__section__(".foo" x))) should be preferred. + * See also: https://bugs.llvm.org/show_bug.cgi?id=42950 + * * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-section-function-attribute * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#index-section-variable-attribute * clang: https://clang.llvm.org/docs/AttributeReference.html#section-declspec-allocate