From patchwork Mon Sep 3 20:33:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miguel Ojeda X-Patchwork-Id: 10586367 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 03694139B for ; Mon, 3 Sep 2018 20:34:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8E602931D for ; Mon, 3 Sep 2018 20:34:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC80C29323; Mon, 3 Sep 2018 20:34:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EFBD2931D for ; Mon, 3 Sep 2018 20:34:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729144AbeIDAz5 (ORCPT ); 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-Google-Smtp-Source: ANB0VdYQOusjGWqdO+RUCjkTOc3AjU3nRbCt9zeYkHAtXwre0E0u176DUy2T2S/o6sqhgkfSvH9x1Q== 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-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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; /**