Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp260633ybl; Mon, 12 Aug 2019 15:55:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTbPUmlbvq3HMuxfve/8dQE8cW4oRkyguOHsTL5Aj+y0dgZZ+hD+pGfVNawVLLaM4w3DRt X-Received: by 2002:aa7:8e17:: with SMTP id c23mr37981691pfr.227.1565650554782; Mon, 12 Aug 2019 15:55:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565650554; cv=none; d=google.com; s=arc-20160816; b=PqpClMoFv/tn7xiavp74xKAgaujnSgrEGiRkG5xNvYFknHUc6hxLh8cSK/aHl7ZE5f D1lW+y/qXj+YDT1bRnoWdxGuEQAWUqBV66swWYOnhY9yWUUP5Lrj6YQUbhMiUJo6cjWz 2rdCk0JBtjJmSVb3Ypr8jJlsMagvKiIjlUBGyGpolLs1Vk4d5xpq/JEiRBIGwkLrynwz 94pPh92l1mlicjeNgPvo2PuSqx/DvpBuIsX0PEP/T/2cZmL0nvdJch9iPmM9M4/dC/0h EEPSbvMD66ym0+dViFYr+fYuzAHU62FQ8pk3kj2gNsddNgEf+Z/GGbzmqqhKm/fK72BD I+1w== 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 o93si524407pje.38.2019.08.12.15.55.39; Mon, 12 Aug 2019 15:55: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=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 S1727681AbfHLVvd (ORCPT + 99 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 Content-Type: text/plain; charset="UTF-8" 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(-) 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 \ -- 2.23.0.rc1.153.gdeed80330f-goog