From patchwork Mon Sep 3 20:33:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miguel Ojeda X-Patchwork-Id: 10586385 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 2708B16B1 for ; Mon, 3 Sep 2018 20:34:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17EC329324 for ; Mon, 3 Sep 2018 20:34:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C35929328; Mon, 3 Sep 2018 20:34:55 +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 903A829324 for ; Mon, 3 Sep 2018 20:34:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728665AbeIDAzl (ORCPT ); Mon, 3 Sep 2018 20:55:41 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:50759 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727552AbeIDAzl (ORCPT ); Mon, 3 Sep 2018 20:55:41 -0400 Received: by mail-wm0-f65.google.com with SMTP id s12-v6so2269535wmc.0; Mon, 03 Sep 2018 13:33:49 -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=ZhryjHGsWzeSzxD0NW3OWSaZ8RANYxnQY/DMq4IP8+M=; b=KevZ8PILOJ52LFCPLGi6B7+4pQstK7gmLMNbSBzIkDwJzNW0MelnEvLkzfJsKtNTse 2Wgo1/Plo0uWL9xQ7KjW0HhsOnPR0d5H8jRl/5cPxJrv72bYm2eC8wGhqclf0CKSugc5 1SkrfX0rIt72u3eIKpArRrOR9OvT8Dhpc96U/U50ycGtvTS/xTOZK1CivenSl5MW5mUX lSAev42Wt1gVVCNWquD4FPhhzf8tH3MA4WLCx8EqPGlp2oQ4ArdmfbdLNMBy6O8jUKSC DMyPNQtgL4Txw6gif4G7XSITir8fBeqCnPFxEWTvI3ud7mr0VZAO6Hk4AnbDcCgOZyOi fuVQ== 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=ZhryjHGsWzeSzxD0NW3OWSaZ8RANYxnQY/DMq4IP8+M=; b=Oz1egg4gko+g67NIEyp0hV06b1h+sXqvXF3MDnT9ci4XRayXhtofVor7dMOWfGNZxh 7nezSpeIzSye8A6fjO39LH20bjSL63F/E13QspXqSDyNF9YngF092wrDEDQRspYVoRJM 6nn//dP4nVGVNCUsW7duXsYbnlZj0V8jtX65/WEgwD4L6/F+zziz8we8AX1SkzLXIMHS 4Ee8vTCD4BX3sI9KQzLktGGow7AvUg6651WGOZvnJu4eL1r7621aALtq8JqWC7DTgKZ9 /GkNG8EOwZqnokSmZQRcdsM09n9z+uoZcrn6/qPUp/ZdCtKjKjz5NyB0jKQ4eXiUiLjl 06pQ== X-Gm-Message-State: APzg51CID8tbFfarh2NNFdKX3RupGTWGpeVLad8rEKHMbO50ndPayf2O +f1xXssayuEhs75nBytj96E= X-Google-Smtp-Source: ANB0VdYbX5Oa31laIZImtJpmZTii5ksCZCkd6tq0A71C7EaK6DpActd73FsXCpmzoGW/IY1HgP78vg== X-Received: by 2002:a1c:d946:: with SMTP id q67-v6mr5934162wmg.156.1536006828434; Mon, 03 Sep 2018 13:33:48 -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.33.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 13:33:47 -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 01/12] Compiler Attributes: remove unused attributes Date: Mon, 3 Sep 2018 22:33:05 +0200 Message-Id: <20180903203316.16183-2-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 __optimize and __deprecate_for_modules are unused in the whole kernel tree. Simply drop them. 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 Reviewed-by: Nick Desaulniers Signed-off-by: Miguel Ojeda --- include/linux/compiler-gcc.h | 2 -- include/linux/compiler.h | 4 ---- include/linux/compiler_types.h | 1 - 3 files changed, 7 deletions(-) diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index 763bbad1e258..0a2d06677d83 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -95,8 +95,6 @@ #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) -#define __optimize(level) __attribute__((__optimize__(level))) - #define __compiletime_object_size(obj) __builtin_object_size(obj, 0) #ifndef __CHECKER__ diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 681d866efb1e..7c0157d50964 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -301,10 +301,6 @@ static inline void *offset_to_ptr(const int *off) #endif /* __ASSEMBLY__ */ -#ifndef __optimize -# define __optimize(level) -#endif - /* Compile time object size, -1 for unknown */ #ifndef __compiletime_object_size # define __compiletime_object_size(obj) -1 diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index 3525c179698c..b6534292ea33 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h @@ -108,7 +108,6 @@ struct ftrace_likely_data { /* Don't. Just don't. */ #define __deprecated -#define __deprecated_for_modules #endif /* __KERNEL__ */