Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1938077imm; Mon, 3 Sep 2018 13:35:39 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY2wGlwEPOIwJpywnIUfypBcWFZ828VBoqALFmjxFFWXPVa4alm1/GkbSSjKvEZJo/wPEyp X-Received: by 2002:a63:a053:: with SMTP id u19-v6mr27931602pgn.394.1536006939445; Mon, 03 Sep 2018 13:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536006939; cv=none; d=google.com; s=arc-20160816; b=wNDAlRs6UWmliIlaQojN6xGEVjLT8UMc/rL6iTaCH4OFPuMGgkD3Ctybbk26qf1mld XXPnYw2r2uuyaFT+HPtHYJuTySRywZWkgORpYay4+Fw/u8g1xLabz+0pOOTLX7Sji9E+ HXMoMOgPYhaUdrqKxrWlyQVIaV3A1+XyRnWtmaOiEz9EINjy0pjx4HqBuw/kvZS1QXh6 1pZRnljz4eFA2atig9rDv8O3cM2ihbUXxgs8rDzsc5nA2jfWWCvFHM1Oj1HNEeow7VJS oVAa3IBTqRSNtJyXgULVSecUVmGD4DsaCIDzwTM2UkdnEl4b8nG2SGEz8b71yIQ/IYHm gVPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=mdM1ZM+LvQmT66Azdcl1HKYOqFIc4f0Rj8Ky6vdAJJc=; b=t4D/zmD8HoBEFd2KyccDSuVAGlvD7n630ZE1BzAB+78IfA8ytmxHle9eJOoPXrDhDM X2K2mAnLPhZR8ApsZFOe33NIsBqrxaNXaUjup4S6EScGJ3RYGiTK4TamkPq8YxRVVH3g Nlb7bsbZm7SqWrQlfthq2jV27qWzYnHeG1gNIC7fW7GE0JUVHcgeGFNTfU37J6AGf6lO daveFzzsz+VCVMphHYdlqagB19+497rqb7xjIPltb3ghx/Vhcu+dfQn+Swfm55dtF8N1 KRNBhvR2OjF7Ws23+Bs3/usegj+kfOiyId3lX3BiweaOlNot8hGkbL+MWIrNOfAF3pq6 PHcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a5k8Sg3N; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10-v6si18581398plr.155.2018.09.03.13.35.24; Mon, 03 Sep 2018 13:35:39 -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=@gmail.com header.s=20161025 header.b=a5k8Sg3N; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729165AbeIDAz5 (ORCPT + 99 others); Mon, 3 Sep 2018 20:55:57 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:54361 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727729AbeIDAzz (ORCPT ); Mon, 3 Sep 2018 20:55:55 -0400 Received: by mail-wm0-f68.google.com with SMTP id c14-v6so2243310wmb.4; Mon, 03 Sep 2018 13:34:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mdM1ZM+LvQmT66Azdcl1HKYOqFIc4f0Rj8Ky6vdAJJc=; b=a5k8Sg3NL9gVL6qR9DyR/MNPb5wKijroR6gXCu52IIlrcvufuK7A7j8+IlvJW6O4wC hkGUanZgx9mHR1a9yB00mM0eYxtlepY3JldlC5N4WRWR23VEPeGnO3+G5OCT7AnP+wDj D+8n7CxUMkRIKojhwyDtSChMhy2ZVQ4IgdmS2WLNihNIsY8HIpCD/aiElZY9VQGjA5FT Y1eTWQ0hYrSlw60n9qQ1VnpqJ8Af7mhvqm7ie8xoB8XEXxBXmaH5o/5C3G79E3qG9qLg ve0+SRIWZMqjwhNyfp6VYCEdWvc5qXKj6eFhwkP2T9hhXdgTnUs2tVn3sRe4+rhdgU5N 1t4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mdM1ZM+LvQmT66Azdcl1HKYOqFIc4f0Rj8Ky6vdAJJc=; b=Lyvjn7vv9lNL7rQWdDlpRAUIB76CZ4PoMEb4cUeqsoEgELZv6pI/MwlMGv1b88fZq/ NIXFj6hueWHN2LzYtJrWmJbd9gtjZbuyg5tQAlJ4b4/ysRal+MQOVF8f4Ri2P71ftAwR JerVSZiLJeOdCAs+4Y8rI4Ou2wTFotk+ShVqD3FR7iczWtgK3XpAngDapnwC6R3UfT2F 3IWYLhD6Xmydkl6Crxl9UbqJXXbcEBgwyCfza51Po5g16I3DbHHxRAy7o4DkCTQRKgcl XhaGvbk8FkdZniWop1Bje82ZkAOWKCcdSiVs1Mf9YBPB/0N+nnl+T2dUQWeBfx3UqsVQ 4mRQ== X-Gm-Message-State: APzg51C/gM2E+E9OJjPMjzgjrWS3/BRuRGZa5Yf1ibkTeQ9iXG8KP2kD hrVYwCRkE23sgqu7r8Bajso= X-Received: by 2002:a1c:4887:: with SMTP id v129-v6mr5839130wma.129.1536006842732; Mon, 03 Sep 2018 13:34:02 -0700 (PDT) Received: from localhost.localdomain (62.83.35.8.dyn.user.ono.com. [62.83.35.8]) by smtp.gmail.com with ESMTPSA id 132-v6sm12354870wmd.13.2018.09.03.13.34.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 13:34:02 -0700 (PDT) From: Miguel Ojeda To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Miguel Ojeda , Rasmus Villemoes , Luc Van Oostenryck , Eli Friedman , Christopher Li , Kees Cook , Ingo Molnar , Geert Uytterhoeven , Arnd Bergmann , Greg Kroah-Hartman , Masahiro Yamada , Joe Perches , Dominique Martinet , linux-sparse@vger.kernel.org Subject: [PATCH 11/12] Compiler Attributes: remove uses of __attribute__ from compiler.h Date: Mon, 3 Sep 2018 22:33:15 +0200 Message-Id: <20180903203316.16183-12-miguel.ojeda.sandonis@gmail.com> In-Reply-To: <20180903203316.16183-1-miguel.ojeda.sandonis@gmail.com> References: <20180903203316.16183-1-miguel.ojeda.sandonis@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Cc: Rasmus Villemoes Cc: Luc Van Oostenryck Cc: Eli Friedman Cc: Christopher Li Cc: Kees Cook Cc: Ingo Molnar Cc: Geert Uytterhoeven Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: Masahiro Yamada Cc: Joe Perches Cc: Dominique Martinet Cc: Linus Torvalds Cc: linux-sparse@vger.kernel.org Suggested-by: Nick Desaulniers Reviewed-by: Nick Desaulniers Signed-off-by: Miguel Ojeda --- include/linux/compiler.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 17ee9165ca51..b5fb034fa6fa 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -23,8 +23,8 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, #define __branch_check__(x, expect, is_constant) ({ \ long ______r; \ static struct ftrace_likely_data \ - __attribute__((__aligned__(4))) \ - __attribute__((__section__("_ftrace_annotated_branch"))) \ + __aligned(4) \ + __section("_ftrace_annotated_branch") \ ______f = { \ .data.func = __func__, \ .data.file = __FILE__, \ @@ -59,8 +59,8 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, ({ \ int ______r; \ static struct ftrace_branch_data \ - __attribute__((__aligned__(4))) \ - __attribute__((__section__("_ftrace_branch"))) \ + __aligned(4) \ + __section("_ftrace_branch") \ ______f = { \ .func = __func__, \ .file = __FILE__, \ @@ -146,7 +146,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, extern typeof(sym) sym; \ static const unsigned long __kentry_##sym \ __used \ - __attribute__((__section__("___kentry" "+" #sym ))) \ + __section("___kentry" "+" #sym ) \ = (unsigned long)&sym; #endif @@ -287,7 +287,7 @@ unsigned long read_word_at_a_time(const void *addr) * visible to the compiler. */ #define __ADDRESSABLE(sym) \ - static void * __attribute__((__section__(".discard.addressable"), used)) \ + static void * __section(".discard.addressable") __used \ __PASTE(__addressable_##sym, __LINE__) = (void *)&sym; /** -- 2.17.1