Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp687534imm; Fri, 31 Aug 2018 10:29:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaMDFhzH8HSzvbZhY+SGUVlMBl8kMpxpkBrwalZpqPbqtuteLzHufzN/HtA466kipU/Cvgz X-Received: by 2002:a63:fc54:: with SMTP id r20-v6mr15346776pgk.377.1535736540332; Fri, 31 Aug 2018 10:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535736540; cv=none; d=google.com; s=arc-20160816; b=g/4gx1VLRSqS4x4Cerx6inBQRLPUc+xjZQbZ1jHZXlySrwOl5MY2VTSR4LCqX5SAKr jYjhMQMhvoNhL3yrKytsqIBcVgqaW70qsZLO8+nGfUR9M6lxcfXexS+zy+ffWuRTjX08 6s4ecxG7Q/8HFlA1+knPYJT0xCrBi+HugvkVc4iX4pBUoNaYqbRO9NUmZfPC4yeVNYNc 2Ho7/ehyOF/Ip9oi8X9J2QZPAOd2gDXZoRz0wsVHLGh7syKY8VSeitI8bLoeeDSY5BcA 15k2Urv3mcW5O2Qx2EZC6A8TgjBW7eGL29bMKdxg3zJHAjQQZ1bC3mfbJ368LUbULm14 hZEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=KmZ/8ann44LN0ZT2rnjF3ZO4diEsci8eChLxZrSdQ1s=; b=K3ovOmJtSdQ7m2GPQdBa5kwJ9c/Ll//hWG6GZFzNoW11vs3zMWkZV6htWLRbFnKRKC 5jumeMiST18/RB/XqEfhfeclR63mmxgYgYCkWUeWHAnLOtS97sKhrhEIvV7sEyHmCrLA 1zKJ/048/LgFIp8mMQfw3XKYeaYMaq6PG60ExF3C3A2pqKFEyHUdK2l6yePesC2V5XU8 pHfM5qNhC4sUB8IASndJKrwMYi3nSkniv2CkV8u1elr5ihu1OfSjxmqSEOPr2CgU2poh TSJEY38rImg4g74D6A8Nc7nAGBRVMNkdFQUlwxAJ5+DeuyztTpLFamg99Fqut44wKVp2 n2IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UVZ+6NVk; 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 x24-v6si10256884pgh.295.2018.08.31.10.28.45; Fri, 31 Aug 2018 10:29:00 -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=UVZ+6NVk; 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 S1728130AbeHaVNn (ORCPT + 99 others); Fri, 31 Aug 2018 17:13:43 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33762 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727501AbeHaVNn (ORCPT ); Fri, 31 Aug 2018 17:13:43 -0400 Received: by mail-wr1-f66.google.com with SMTP id v90-v6so11866533wrc.0 for ; Fri, 31 Aug 2018 10:05:18 -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; bh=KmZ/8ann44LN0ZT2rnjF3ZO4diEsci8eChLxZrSdQ1s=; b=UVZ+6NVkBvSZzQ4RyjsFyEQCX4orD5pLvzLYRs663ZYV7yXZhXrCSCO3vKv4x4AjZA oOaF/rxGxVP8B0OE4+1N9kaJ/Cd1m9UlOOs8hBUDpzqLbiDWF0Gnx9ebe3yVpDyD4n16 OzMpxxz1r3LEZP1aWmJiN0wxkUp/3vnuFotoFg5xGIeaSrW3oCjxHUTV145RG2D1u10Z ubRxgRxQfW8WcgA7VyQmdRseDZ8ICJ27g5TwfjG6VYbjb2lPpAtyp1Z5wXGeTYzKYTnr Cq5yOgB95+eezoTWPeCXlyMhjiDY2+Ryp5I5fSpXPW5neXoqoKpf596sxxO0MV5x+09J G60g== 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; bh=KmZ/8ann44LN0ZT2rnjF3ZO4diEsci8eChLxZrSdQ1s=; b=aM1RDEdcLIeTcgN4/D5uLftF1L0nbuHngh5oS5MTCKwyqJkvjUEDSTlKWXxowM430j Yojm/UlWdwV5Seq13xKP+h1Ox7aFLPUuACiTlR4OEeVcHvzHnWeYUsXHqWalvMHHRAe9 i5/gfVYZ+F8hm0Ul1vjFbGiGhIz5fJBg7Y298Zu9NFG7z+XD08762L+gHDfOitqzkise i6CuMdLb0wxaoQzmScP5gra2IqOjc4NckjC2LwrxNgVSLO7n5YxvRDPDQapuwoLE2RFD 7WYMxXocMPwcO4Ua2/dFr2Oc0Azg7hwy28OulhmV5AuAzpDfiO5+qKphaKGxfaJwPSmu Qavw== X-Gm-Message-State: APzg51DAVgmO9D6H3dOZ6Q27BowM3tZ/EpqhaJ9Npt3UlOF+DaIFCVOx vazhbDHkmzw2HJEY1fppmd8= X-Received: by 2002:adf:f608:: with SMTP id t8-v6mr551619wrp.186.1535735117958; Fri, 31 Aug 2018 10:05:17 -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 c19-v6sm11280332wre.86.2018.08.31.10.05.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 10:05:17 -0700 (PDT) From: Miguel Ojeda To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Miguel Ojeda , Eli Friedman , Christopher Li , Kees Cook , Ingo Molnar , Geert Uytterhoeven , Arnd Bergmann , Greg Kroah-Hartman , Masahiro Yamada , Joe Perches , Dominique Martinet , Nick Desaulniers Subject: [PATCH 1/7] Compiler Attributes: remove unused attributes Date: Fri, 31 Aug 2018 19:05:08 +0200 Message-Id: <20180831170514.24665-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 __optimize and __deprecate_for_modules are unused in the whole kernel tree. Simply drop them. 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: Nick Desaulniers Cc: Linus Torvalds 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__ */ -- 2.17.1