From patchwork Mon Aug 12 21:50:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171126 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp76435ily; Mon, 12 Aug 2019 14:52:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyG44R/8Cu2nsrUYTM73McSh8je1wuQhUR2KkMLPBhylB9ef90+0iGG8A1RdEYYQTisMqVL X-Received: by 2002:a63:b74e:: with SMTP id w14mr32383605pgt.264.1565646733024; Mon, 12 Aug 2019 14:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646733; cv=none; d=google.com; s=arc-20160816; b=r1ZjOoBqUAUihqCnpUjIqDhdsLQrDLDgvDrRD8wzsUqYFLeP1gm3Q/ayBK55Q9nE6c WIBsm45zYy67CNMfRAbxs9Yc/VHS4DZIwkZzoXEobxTHc1LyAYDyGoNi4OzYAKvKkknS a24fDekKs81d+t2vVCTP2/nffL5EL33Lpoeu/015mAnk1PNsDzi0ToGkG9bCag3ECXTS +u1aaMGYMTpzmAXUe4O+jsYQCBNUJ8T6SuPxHTMJzDwoKNbS/NGXF4U7qO95ke+zWvqz mWj1R2t+BzSo7mlE7hUyC7L1rCco8g6MA7jl6EizzAnU88PGoA1hgl3mx3JOwUP+tExy oy/w== 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=q0pM2ZOzYJiqEFARYUko9qZH/ZZGqfD1MaH3ngq3us8=; b=SMuByFmIV5IBfVSNCCRg4vyYaVZ+NG3m/id7NCuinAlrAJiZyOoxy0PLVsj8ePXGF6 vM7ImSWcnwEy7L6sceDLZHzCmwIs+28QEPzxl7Ej4oFqJrflGEYoVN5CcetO1kg3Qzw3 mMxK7ZDC/4iByCGEa6d13WdQ5S41I5KgPoSMCNktBBs0kHIDOZwbpz0ERWMI+n+BwuVF Xx2sxKH05WMGqkhc/2gykmRnaJffgk5/8HUQ18BA8iJndx/wfZ6QkAUVcfWrT2r310IN LO2MTG1FfKzcKEX6IBTPH6Rk7w7ox7f8HKGXcVssIDLy65nhts1wATj/hAYsaUVUhCiO qkug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=I5dGVSJw; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 b5si466272pjo.26.2019.08.12.14.52.12; Mon, 12 Aug 2019 14:52:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-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=I5dGVSJw; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 S1727845AbfHLVwM (ORCPT + 8 others); Mon, 12 Aug 2019 17:52:12 -0400 Received: from mail-yw1-f73.google.com ([209.85.161.73]:43643 "EHLO mail-yw1-f73.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727811AbfHLVwK (ORCPT ); Mon, 12 Aug 2019 17:52:10 -0400 Received: by mail-yw1-f73.google.com with SMTP id b188so77903287ywb.10 for ; Mon, 12 Aug 2019 14:52:10 -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=q0pM2ZOzYJiqEFARYUko9qZH/ZZGqfD1MaH3ngq3us8=; b=I5dGVSJwg+v5RyOEC5gi6oytJS0yW4Mmt+c5xThJQxWY5OwURmEGt6K8eSF+EP+4xu GWwPrzEgPlmom5u3yG+mZn+HMrBWpuoLnyRNOlMaBcSAQVMFjL1WwGTWu+h7UCq/edOu IPYgNr5h5jsFfbpOYcOPgU3hxgjjymdwaD1Os4IRGlzRO5zwXEbOr/J2EEIZ56I/YU9r 66AwX7+wwFlPujGUTM80/eieOR0jQG+KnscBiHOUapeinqDEidNrRFDbQmV1qSYPXlBt x2wzJDK4lftnnSeYI2g4mn2UraIxEOp9NQ2HP3bcmiyvE5m6RB2vrwSKVpQ9zn9XKLzZ 2IQQ== 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=q0pM2ZOzYJiqEFARYUko9qZH/ZZGqfD1MaH3ngq3us8=; b=SyXFJW0Hd8fKiNCLfCObceWHbvUPOVw5zvUaHEY/Mgq++SRBt6shLb5hgNG4y/s0Ts 6nklijcd2yh1eEo06j5cwbtEKuFtjGQA9Phq/eCe6RaNCC98QLk6JjMkDvvjKl/q67hv dMIsZS0Ts8WTQoaCsZGTOZt6kRYm4A+On/XUvw1Kdj7Fg4yVGWeM1sukMUh312v1+mMa JOnLau4F2IMz/Y0WkxqGQMXUVI/O3qdwIWd7qa5I20vqIdcnGIf3XZVNhenRWTY4R4bg LzZDISd5q0xt/k495GO5b+C+tl5R6Y/wio+OVXNEqsDiFIHn+oXTvtqqQQM829QYBm1S woPQ== X-Gm-Message-State: APjAAAU9HHfiTdaxCmvJO7/z/zlvKgi67OHx7Ld1qbScftfccWqicpAu MnU+9c8EQcMdjaTeamD2+NuC7Xn7u6LE1UGJTDs= X-Received: by 2002:a0d:d807:: with SMTP id a7mr4425576ywe.112.1565646729583; Mon, 12 Aug 2019 14:52:09 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:41 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-8-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 08/16] mips: 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 , Ralf Baechle , Paul Burton , James Hogan , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- arch/mips/include/asm/cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.23.0.rc1.153.gdeed80330f-goog diff --git a/arch/mips/include/asm/cache.h b/arch/mips/include/asm/cache.h index 8b14c2706aa5..af2d943580ee 100644 --- a/arch/mips/include/asm/cache.h +++ b/arch/mips/include/asm/cache.h @@ -14,6 +14,6 @@ #define L1_CACHE_SHIFT CONFIG_MIPS_L1_CACHE_SHIFT #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) -#define __read_mostly __attribute__((__section__(".data..read_mostly"))) +#define __read_mostly __section(.data..read_mostly) #endif /* _ASM_CACHE_H */ From patchwork Mon Aug 12 21:50:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171127 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp76553ily; Mon, 12 Aug 2019 14:52:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7o3Y5eDS++w21Mcy2NaSdmDVMMjRkpuE4Avo6lJllOU/X2hzh/AGlw8+vZFeEEdn4QteM X-Received: by 2002:a17:90a:1c1:: with SMTP id 1mr1274240pjd.72.1565646740538; Mon, 12 Aug 2019 14:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646740; cv=none; d=google.com; s=arc-20160816; b=elqHNMbA9EftraJUbvPP4ws+dLLtgH1XoJk439LHvTrSLRv5JBfDM0kFjyvp1791Dh wNwZOUt92JPpBTZPSL5MgtxqV1Iy6cjHcNRmLbXzwwAxb7oWc9GrGuRWYE2KuCUy4zEq 2EXw/dHMzcakSRnHH+D0uJKdvudaAbkvTF6u09qDjanVgW4MrYAYy1RR+w7l7bYYq+Zb CcS3BE0X2CJUx5ZcqurERg/lXoauk2pTbgL1+0YacR9dQSdP4dn1wG1mkzzeDvnV2ANW jQkFuBZGr6Erv3EVsVMCGXA/vF3oZei4aJkP1GZKrz6tsyo7tLu6t5pRaFO5NaFPqjpI Nx4g== 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=CMqgCUm+GxLehEdw4ZyFc9UqjqXT2SeM4A16UJsbPIg=; b=rYrFjj2t0BaEFhmpFBweIrj5NBvqPjOxDIOnxfiCiTJBxp9nRPRZI1ChCOsyRaxEf/ j/zt6A+z/t7FJajRSMFfN4XB4fH19+nxmAJ1rBRnIOvudbC2bCAaXPFQhD4oeppg6fSQ 3iw+9JIb0kFr3k4bfTu07XVN5FZ6tu+ymNGJDYQ2ICFrVj/h+3rqmTnEB1/ziNZzSYQv NQLrIWqsrxGXgzJ5iiCf4zeFUn7YVEjwTbr/FuOYYwoojFq4UklocvTYYj/G5yFwHTQb Y5qPaMTktDGR/bpeE7uTsglOIyBU2+OiVcC70s7rBCSg6G8YZzbvsXUjJA+3JiWR2k3s YbJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cEJcf9Y0; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 g13si31874723pgj.498.2019.08.12.14.52.20; Mon, 12 Aug 2019 14:52:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-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=cEJcf9Y0; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 S1727480AbfHLVwT (ORCPT + 8 others); Mon, 12 Aug 2019 17:52:19 -0400 Received: from mail-qk1-f201.google.com ([209.85.222.201]:39441 "EHLO mail-qk1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727590AbfHLVwS (ORCPT ); Mon, 12 Aug 2019 17:52:18 -0400 Received: by mail-qk1-f201.google.com with SMTP id x1so94452227qkn.6 for ; Mon, 12 Aug 2019 14:52:17 -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=CMqgCUm+GxLehEdw4ZyFc9UqjqXT2SeM4A16UJsbPIg=; b=cEJcf9Y0TRBDvUfh7MDfEoOyZM+EmdiGeHKpU+4TT2H8QHtoDwx47a0Bdkd4grgnck AgKdxC7cLoC0YgryFCmAsQacbbELc3GMXpyG5foU2D3IorLvYpb3u4LbP+EWBLb+ONZn xu7IiQg3HetB6nQuaBGNlxs7Sr7tIqxEFdlxTcoFSx9y/5H5DOJeHMZBNvraJK4HPofL RJsn+4usFleoPDE+Pi/F8rWyKd8I+I1beDSXDkW8gGxrBPE7i61Bujv42XuPx6GAgaek 494TPvcDlGC6P/e5+FY8HYPsHRt/m6cIUbWe9gHGpZyW8mZYgRY00Km4Z+SYLP5VskTG 2U7A== 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=CMqgCUm+GxLehEdw4ZyFc9UqjqXT2SeM4A16UJsbPIg=; b=Pa21tIMSaSI5e/SYiwOJiJsWe0Gb6iFwV0K4YCXwqq3Wwk0Y98uSzckuH7AxNHyx4n AgdB+kT7KSQGDWDuhxLNCH3Jhy0zxIJPPYG/xsohG9M2Bhn1v9BFsJ3UOBZVawXkVpil trON4vloaKQ9OEwXkH2zggsYps9eV/NEyP4ysKSF8gb4Yf0moTqaYVE4bOqZ4xoBU7nZ uVvo60G5F9VFWs7Gj2jLWGmo1yLErhdpjThZNR7K7NxD5ETR571QvN2pW1QwqPV3ggUF 1y4Gj3Z2DWEk53VK5OiODfLieBXn9iFOzZ6sRfjYJTWN3hJI9yR9Q+J729EFBA+L9W9I Dhiw== X-Gm-Message-State: APjAAAUG3Fuq0yrtbRxF2y9oXH91yPM471sVskdK1Sa2MLh20eOliJSM TJFwP1Z6zQVFhmlFMh9Oi3EiwSn+QeMHZWYu7J4= X-Received: by 2002:ad4:54a1:: with SMTP id r1mr7354704qvy.213.1565646737123; Mon, 12 Aug 2019 14:52:17 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:42 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-9-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 09/16] sparc: 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 , "David S. Miller" , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- arch/sparc/include/asm/cache.h | 2 +- arch/sparc/kernel/btext.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.23.0.rc1.153.gdeed80330f-goog diff --git a/arch/sparc/include/asm/cache.h b/arch/sparc/include/asm/cache.h index dcfd58118c11..9a9effdd01e2 100644 --- a/arch/sparc/include/asm/cache.h +++ b/arch/sparc/include/asm/cache.h @@ -21,6 +21,6 @@ #define SMP_CACHE_BYTES (1 << SMP_CACHE_BYTES_SHIFT) -#define __read_mostly __attribute__((__section__(".data..read_mostly"))) +#define __read_mostly __section(.data..read_mostly) #endif /* !(_SPARC_CACHE_H) */ diff --git a/arch/sparc/kernel/btext.c b/arch/sparc/kernel/btext.c index 5869773f3dc4..b2eff8f8f27b 100644 --- a/arch/sparc/kernel/btext.c +++ b/arch/sparc/kernel/btext.c @@ -24,7 +24,7 @@ static void draw_byte_32(unsigned char *bits, unsigned int *base, int rb); static void draw_byte_16(unsigned char *bits, unsigned int *base, int rb); static void draw_byte_8(unsigned char *bits, unsigned int *base, int rb); -#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:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171129 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp76838ily; Mon, 12 Aug 2019 14:52:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqy23qYn74mz6zuA9jTKNfZiPbseRTNSQ0r1Q1qcwG6I7cp3c6mMRDjcQPJqu1uGmoqvxoHZ X-Received: by 2002:aa7:8d88:: with SMTP id i8mr38258097pfr.28.1565646761525; Mon, 12 Aug 2019 14:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646761; cv=none; d=google.com; s=arc-20160816; b=dNYCa8A/RnRiY2TdwiymVCQ2mJVjKi1DDsqMiy2zzns+JS1p14+c0IKSGT+AOE2FvE cIwaaqYU5CZlCAFQUGdAcV205dRoCDpDobe4o9KfMQ0/KKDzfNAZea2LIdb+4Gq6XEOj B47aYMJe/QDTNBb0yBxcR0dV2gnxSCNkO2axYK3+Ou8VsmVJfETKzlURYlwS4SRH6zbj jou4+xsbcDtmQGlxfDgH5ziL/EcD/tlqg2i+b/Kd0Us27pcgwXwh9T4jzr/7Dj2xaQNZ abG+F19sq50N1AVTt2IW4k5uU6gwhaOp2Fu6OP7l6zStBJqUNhLKKlrltUpsr7iZTeBv 7ffA== 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=nhdP3qLGadfkBXXgzu2XRajPFFK4fSn/Au7TvOHqv+g=; b=m4ddeqTw4usMPIXOPAcUPkYkUgoqsF2dwWl2Q1LfON5Nvty5oE3G3pLzPuiDpl3wMS qwtZ6LnfXZromGnQU89LMV12Ko2eIQ1QkWqYCH7r8BodxoFeQs1Jib5shLCuMAqU715f fH5WQMeQjc5sqm8ObJBYOiN7R2n6EqAdrEM5hj6rPsKLGA/va5cFefZGwc7WlVlP88Fu Rfl7K3+3qNJFI/gIfTL1YErcvseKLp6TAPYO4lBG+Ml6R15RkDpNWiRDUbGPzFHDyz4P iWn5R87gbvWMK4bjjcxxLTLqq8VjPWubNpCJMeeJVH/li9YOzCpGLz6om0fhBoUAVOzW UjSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=l0vrvwIH; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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.41; Mon, 12 Aug 2019 14:52:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-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=l0vrvwIH; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 S1727937AbfHLVwk (ORCPT + 8 others); Mon, 12 Aug 2019 17:52:40 -0400 Received: from mail-pg1-f202.google.com ([209.85.215.202]:52431 "EHLO mail-pg1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727577AbfHLVwi (ORCPT ); Mon, 12 Aug 2019 17:52:38 -0400 Received: by mail-pg1-f202.google.com with SMTP id h3so65405393pgc.19 for ; Mon, 12 Aug 2019 14:52: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=nhdP3qLGadfkBXXgzu2XRajPFFK4fSn/Au7TvOHqv+g=; b=l0vrvwIHmSzOktb7Rq3EdrK6pdsP3Ma3RCqx5BQ6NP0yweIZWAU2Q/lHhoKvWSxp6n hb/8hiCQkymuV+MMOHey9h69MdrERLD0hZ/gfrxdEVFUhiSHtWnAoQhOg6NXS1/OG/rA 9o28P2Qois3wr22QlsgANra7Ffshp6GNOzF/SQl3ww6PwmpI9RZSp1Zd+eSsUyOy8Xh9 8/gU6pTbRK5x5aBYeVeLkGgRxNa6mKkBFuZUTSejia6ABf36q3l92lLkASTPqArWoGUx FVz/lju2Dg6bsdjVY2St8Tc9hDr5mfAQ/LOxOKiurkoCnULUdwHJkriMSFsS0OH/LIWd 78Vg== 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=nhdP3qLGadfkBXXgzu2XRajPFFK4fSn/Au7TvOHqv+g=; b=thw2V53ZUDkrfRvwIcwO9UjDt3ziLSuwutlzgbe1tc0WbOoEgSK2yHsSN0ZYgp8SSU yBwt++isDeblV2d1wx8+V3edm/NJwF9jvn8bAOtcvRw4qfrcaoTwKaX1vnVbuf2Vfm16 s/ORaVoMYSC4WjiKtIRS/Bk6yWQOtRSjM9qPqiUmOrnN6et+hQWTq7uVWdjYSXtXVldp jASL9cjJhByRhfnp4u5GGxI3t0kiTi21nLkjtkubc51/gvi/zE5nYo1DpN+vN+jIgtmr OHyVk1oAJH+B3WIT9WTFEUjG7jMhjbhQvQGb4hGA7Oj5Th3fTOv28363jQTPm/lxuemf ZjCg== X-Gm-Message-State: APjAAAXB1x3YQcn4/w9M3+Iq5uX4eK5NB2DVVz2Xp7wwjV612etEvUta r6uTDiXelT5EIs4cj66npimVkqP1CY1J27Zf+xM= X-Received: by 2002:a65:6406:: with SMTP id a6mr26645041pgv.393.1565646757703; Mon, 12 Aug 2019 14:52:37 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:44 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-11-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 11/16] x86: 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 , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Armijn Hemel , Greg Kroah-Hartman , Allison Randal , Juergen Gross , Frederic Weisbecker , Brijesh Singh , Enrico Weigelt , Kate Stewart , Hannes Reinecke , Sean Christopherson , "Rafael J. Wysocki" , Pu Wen , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- arch/x86/include/asm/cache.h | 2 +- arch/x86/include/asm/intel-mid.h | 2 +- arch/x86/include/asm/iommu_table.h | 5 ++--- arch/x86/include/asm/irqflags.h | 2 +- arch/x86/include/asm/mem_encrypt.h | 2 +- arch/x86/kernel/cpu/cpu.h | 3 +-- 6 files changed, 7 insertions(+), 9 deletions(-) -- 2.23.0.rc1.153.gdeed80330f-goog diff --git a/arch/x86/include/asm/cache.h b/arch/x86/include/asm/cache.h index abe08690a887..bb9f4bf4ec02 100644 --- a/arch/x86/include/asm/cache.h +++ b/arch/x86/include/asm/cache.h @@ -8,7 +8,7 @@ #define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT) #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) -#define __read_mostly __attribute__((__section__(".data..read_mostly"))) +#define __read_mostly __section(.data..read_mostly) #define INTERNODE_CACHE_SHIFT CONFIG_X86_INTERNODE_CACHE_SHIFT #define INTERNODE_CACHE_BYTES (1 << INTERNODE_CACHE_SHIFT) diff --git a/arch/x86/include/asm/intel-mid.h b/arch/x86/include/asm/intel-mid.h index 8e5af119dc2d..f51f04aefe1b 100644 --- a/arch/x86/include/asm/intel-mid.h +++ b/arch/x86/include/asm/intel-mid.h @@ -43,7 +43,7 @@ struct devs_id { #define sfi_device(i) \ static const struct devs_id *const __intel_mid_sfi_##i##_dev __used \ - __attribute__((__section__(".x86_intel_mid_dev.init"))) = &i + __section(.x86_intel_mid_dev.init) = &i /** * struct mid_sd_board_info - template for SD device creation diff --git a/arch/x86/include/asm/iommu_table.h b/arch/x86/include/asm/iommu_table.h index 1fb3fd1a83c2..7d190710eb92 100644 --- a/arch/x86/include/asm/iommu_table.h +++ b/arch/x86/include/asm/iommu_table.h @@ -50,9 +50,8 @@ struct iommu_table_entry { #define __IOMMU_INIT(_detect, _depend, _early_init, _late_init, _finish)\ static const struct iommu_table_entry \ - __iommu_entry_##_detect __used \ - __attribute__ ((unused, __section__(".iommu_table"), \ - aligned((sizeof(void *))))) \ + __iommu_entry_##_detect __used __section(.iommu_table) \ + __aligned((sizeof(void *))) \ = {_detect, _depend, _early_init, _late_init, \ _finish ? IOMMU_FINISH_IF_DETECTED : 0} /* diff --git a/arch/x86/include/asm/irqflags.h b/arch/x86/include/asm/irqflags.h index 8a0e56e1dcc9..68db90bca813 100644 --- a/arch/x86/include/asm/irqflags.h +++ b/arch/x86/include/asm/irqflags.h @@ -9,7 +9,7 @@ #include /* Provide __cpuidle; we can't safely include */ -#define __cpuidle __attribute__((__section__(".cpuidle.text"))) +#define __cpuidle __section(.cpuidle.text) /* * Interrupt control: diff --git a/arch/x86/include/asm/mem_encrypt.h b/arch/x86/include/asm/mem_encrypt.h index 0c196c47d621..db2cd3709148 100644 --- a/arch/x86/include/asm/mem_encrypt.h +++ b/arch/x86/include/asm/mem_encrypt.h @@ -50,7 +50,7 @@ void __init mem_encrypt_free_decrypted_mem(void); bool sme_active(void); bool sev_active(void); -#define __bss_decrypted __attribute__((__section__(".bss..decrypted"))) +#define __bss_decrypted __section(.bss..decrypted) #else /* !CONFIG_AMD_MEM_ENCRYPT */ diff --git a/arch/x86/kernel/cpu/cpu.h b/arch/x86/kernel/cpu/cpu.h index c0e2407abdd6..7ff9dc41a603 100644 --- a/arch/x86/kernel/cpu/cpu.h +++ b/arch/x86/kernel/cpu/cpu.h @@ -38,8 +38,7 @@ struct _tlb_table { #define cpu_dev_register(cpu_devX) \ static const struct cpu_dev *const __cpu_dev_##cpu_devX __used \ - __attribute__((__section__(".x86_cpu_dev.init"))) = \ - &cpu_devX; + __section(.x86_cpu_dev.init) = &cpu_devX; extern const struct cpu_dev *const __x86_cpu_dev_start[], *const __x86_cpu_dev_end[];