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 }