Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1032349imm; Sat, 8 Sep 2018 14:26:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbF9Eu/N9U95IpvWJyEsQxB85YPuk0hcWRfLpwzaMdYvqUkZUfkQjODBZ7qDdyDgE5wqBSv X-Received: by 2002:a62:9101:: with SMTP id l1-v6mr15686103pfe.226.1536442016560; Sat, 08 Sep 2018 14:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536442016; cv=none; d=google.com; s=arc-20160816; b=AfE0b9tO2lobnu+RYU3CAu1kRkHuBBDdQjFOb8s5QKdmoaSTmt/T8mnWwbzZa8X4Y0 HxiEo6oHEFyuGFPe3hFikp44P2bjMT/5O1rZMJi13j4NYds30cjXRUbfbZUwUe5sPx+j t6iKuQB4MrwnP0fRhGDpzS80sp/ZGg7Km7pu9V2TpRJXeOAsJBvRNPiC58ST1Ley+jjT ux8BGV/QswRMaQLihRxsdTUyY2KDilWiKTZEFGfMwemFGewGDswUTEwlTdYVo8WPXyUZ YRXa9zt+dA42d0DLnZMgQCqsas6T+sMrftiICTEpmqCxbACCsNqQPFjOIjeQbLWSDWl1 qIDQ== 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; bh=mdM1ZM+LvQmT66Azdcl1HKYOqFIc4f0Rj8Ky6vdAJJc=; b=CDUYTi7ZHQF/C+0O7gHMKNe0iBQ5DwLq0Ak0X43UrGa33Zh4SEZJD+5NcjtEIYEyNF VWUBGJCz8W/LJvdCmE/Eil7FwrTqyMf60gsHNaGwuPNGw37li6cMJCz7DOPA1F5kobKt C/M3+GbNlXamSJ4R21s1scABDrf1ng/jhMA7l9kUuGDNCZEnEfnW/hgwtWTjF45sX9kx y5mL71hA1HtH2HKFXnsy88+xuGOtb5bOfK40ZfVN6MpnBfC6KNtc+VYvhWrSk4Yq4Nuo oEKBBLgPiXhmyprMjqHL/M3WJWZr0rd8+EGdw27b7Akv6trQzT+uIoYqW1iMepI/nQyz WqKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q2vi4N7N; 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 b9-v6si11597005plr.78.2018.09.08.14.26.41; Sat, 08 Sep 2018 14:26:56 -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=Q2vi4N7N; 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 S1728079AbeIICMh (ORCPT + 99 others); Sat, 8 Sep 2018 22:12:37 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43366 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728049AbeIICMg (ORCPT ); Sat, 8 Sep 2018 22:12:36 -0400 Received: by mail-wr1-f67.google.com with SMTP id k5-v6so18100346wre.10; Sat, 08 Sep 2018 14:25:27 -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=Q2vi4N7NGsE2iyJhpdphfCwyRBH+1RA36w7192GOiIZGHwrLVn5KAqOsui/iBJSnUM ze9q7CZ7mKVjE7YZvw0M+q7hIrhcF+Dt6MF8NDYbQNBkPqeqGr2H+6HR9pN9yoLsIpKQ O4Cnmdp2aZ0bnHKoqRWUAgYC6oOoi7+xy2Sku64KqWAWSHkpLDuoOtnjQyIONDw+nRle qrECTxEMZTDGmq1u8oStpgX/9gxB3o59fy3g0zizG5EhSON7MG+QwtTRLi/xwxlrltzk HchqimG5Ff92iFvAl3jFYGFocnJr81lu0WzagvxnAshCe125Xo69OHPb4MqgLFhopwQ6 L7Tg== 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=Zzi2683e0h1OKzdNJRlS5qAPZgBDp+GfUFvHENtfDX21OgMctrNUXvr0bzB5Zn66E1 u4pfBvSpJtPT3VM1FgZFbkgMfWEum4viUxUK4HGoDiyCA6NFHW7jcNIYD2WDVO8Slju3 455Dwv8N4Ckoy5xkAFrPaLdjxdE9ca8cA2apM86GIpzXVHxUORVl2k0349Aka82rCMjj K8HADNdHzY1jOIDKXZbkHC3VWFrMd0ICq2l6qnnSUENmQHc+7A19o4nbDvd2gc8gmjFf Cc7za5KKOBpwZjCh7Wlhe62Sv8Net7CYtRpuDXCEpjT0T4CbjUBZc5drEfm0xFx0a5l6 BP4g== X-Gm-Message-State: APzg51BKgeNkoPPPKzSQd9G+4UTPxKDzGs7LH/nTBG+lgg+m8mVriffd SRUuG4fOZrt8vd97fYlgyAw= X-Received: by 2002:adf:c78e:: with SMTP id l14-v6mr10027944wrg.230.1536441926553; Sat, 08 Sep 2018 14:25:26 -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 u40-v6sm17340786wrc.43.2018.09.08.14.25.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Sep 2018 14:25:26 -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 v4 11/13] Compiler Attributes: remove uses of __attribute__ from compiler.h Date: Sat, 8 Sep 2018 23:24:57 +0200 Message-Id: <20180908212459.19736-12-miguel.ojeda.sandonis@gmail.com> In-Reply-To: <20180908212459.19736-1-miguel.ojeda.sandonis@gmail.com> References: <20180908212459.19736-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