From patchwork Thu Sep 20 17:22:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miguel Ojeda X-Patchwork-Id: 10608253 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 521736CB for ; Thu, 20 Sep 2018 17:23:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38E5A2E283 for ; Thu, 20 Sep 2018 17:23:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B43E2E29A; Thu, 20 Sep 2018 17:23:31 +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 BEEA62E283 for ; Thu, 20 Sep 2018 17:23:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387908AbeITXH7 (ORCPT ); Thu, 20 Sep 2018 19:07:59 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33650 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727556AbeITXH6 (ORCPT ); Thu, 20 Sep 2018 19:07:58 -0400 Received: by mail-wm1-f66.google.com with SMTP id r1-v6so2108473wmh.0; Thu, 20 Sep 2018 10:23:26 -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=E8ChE32l4QMnvkDCzYi/BjHhTEniuUicL3Qb16ak874=; b=EK7tU2d3EzwtjToDAwleWFyllaQEXVljVpM5iKIuuCtPstD3DxLFeXbfLKQlY3KlKs 14DZVJjFWzCW+CYaxDelfUSwziAeuq2Ez51hAAEze+NkDA7oazgwkZG72UYsRqlHP4E1 M4I7Jd4d9IsQydVhFUCNkVqvT8Pvl8gaCZQCXWFmbhAm4gAG4N9kPkuW9oyaeJyVuO7W /cZaBVkd/SKf5SNbX/r/AxV+RTuSeGAR+W7/xTWOh2F/GHXMxLwwHe+Pc1XQa+sSull+ Meb0UGU5QxV9KE2b8XwLj/f5ZkN3OnytmYpT+saoBMhTuEZ7tcBEZCzaOYF2fSj5Fnqm kmXw== 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=E8ChE32l4QMnvkDCzYi/BjHhTEniuUicL3Qb16ak874=; b=qq8WcAVYkzDNeEzO3oPa03vsWv7mIQNevdRnHj9g2exvBrFkcCcoYWd96sCrUEq0i7 1SaQTEo/Rw1iOoIwt10sdJHTv2JYK0MxOcdggb3snPoKF87MXvDG1ZVgJ0YK8K8eyx0H QSFQGwD04ZccyALpuapM0jSqjxAaKFm8/wmk45IcdT8nkOvUh2N1/vhoL9Zyx0UFX04k nDYkGwmgbRXNQG8jQhQRAFkbJYKJ1Vm4HHKplp3B5ZBk5AKgsmNvDkgRpzWIdtXHPRoD +uQ/sgEguOF2eresjm+bl3/WyTMFU9LICHPfyrMkEjyJpxyqmb6sp/iLWBrVoRiSeaLK GddQ== X-Gm-Message-State: APzg51A5BNR9B8BgqhLq8fGWcS20funecOa3fdosZ8KlNu+S4Mi/lbeD C/mkgRSB8r7u0oPmix5htrw= X-Google-Smtp-Source: ACcGV63kmMhl2QFs6k7xK5F0sxevTVPbPDSWQ7GHj80yg/Dz1KY0rRDXHTNAgSmI8IpbxQ4cK/gphQ== X-Received: by 2002:a1c:60c4:: with SMTP id u187-v6mr3693587wmb.121.1537464206268; Thu, 20 Sep 2018 10:23: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 q200-v6sm3466562wmd.2.2018.09.20.10.23.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 10:23:25 -0700 (PDT) From: Miguel Ojeda To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Miguel Ojeda , Andreas Dilger , Masahiro Yamada , Michal Marek , Steven Rostedt , Mauro Carvalho Chehab , Olof Johansson , Konstantin Ryabitsev , "David S . Miller" , Andrey Ryabinin , Kees Cook , Thomas Gleixner , Ingo Molnar , Paul Lawrence , Sandipan Das , Andrey Konovalov , David Woodhouse , Will Deacon , Philippe Ombredanne , Paul Burton , David Rientjes , Willy Tarreau , Martin Sebor , Christopher Li , Jonathan Corbet , Theodore Ts'o , Geert Uytterhoeven , Rasmus Villemoes , Joe Perches , Arnd Bergmann , Dominique Martinet , Stefan Agner , Luc Van Oostenryck , Nick Desaulniers , Andrew Morton , Linus Torvalds , linux-doc@vger.kernel.org, linux-ext4@vger.kernel.org, linux-sparse@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH v5 01/15] Compiler Attributes: remove unused attributes Date: Thu, 20 Sep 2018 19:22:47 +0200 Message-Id: <20180920172301.21868-2-miguel.ojeda.sandonis@gmail.com> In-Reply-To: <20180920172301.21868-1-miguel.ojeda.sandonis@gmail.com> References: <20180920172301.21868-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. Reviewed-by: Nick Desaulniers Reviewed-by: Luc Van Oostenryck 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 4d36b27214fd..1302b425e625 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -81,8 +81,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 db192becfec4..a19562cb047c 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__ */