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 \