Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1032307imm; Sat, 8 Sep 2018 14:26:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZtN00Iaz6oZp+okKnyuJwh73v3Z9zZZaEq/NUqFkub/AwZHVhiPCSTlwxz/xXFjoujHGnF X-Received: by 2002:a63:7557:: with SMTP id f23-v6mr14960854pgn.135.1536442012731; Sat, 08 Sep 2018 14:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536442012; cv=none; d=google.com; s=arc-20160816; b=qmWqZLIxw6ukGwVDff+AbaqaqoOh9BnLhHIGexzhANjD/LyhRgUyJg6InT/7MgVCJ/ DHCwlLDWbBn0xWISf5uKIrmhuJbglv8CnQHRBEljejoNrOG6HpcKJvz7rujn/kbqzqwX 2zUfJnx/kvnGEcEFdtGw7tfTwsWkaoICT0qg44/uAdQ7xprx9FCzt5XDqGIX2r8ra7CW 2RHSYheJx7/djWfuxVYLQzRbXpbp4JhMIBBoEqplQTzOzlT9C4REOpogQEbp346Vwgmd Md0s8i0eP2P1Vu3e++Gc4hcTN6RsAmh0HOBJGRoJz78ibwWyC69tMp7ChbKSmlJoyj43 TJKw== 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=ZhryjHGsWzeSzxD0NW3OWSaZ8RANYxnQY/DMq4IP8+M=; b=dzIoSqwlKmnNmzC/1ORepam11h9NqJvhfYeb+jNcOoBKaMrfV5cgFlCZni11NVHIMt c7VljDvtXpLG1b2TOzuDhEzUIRKZMI1rK5ffOnc8cri5mYN8fJGC5IrW71ZZwm1TXvWj /3tB5qZXEbElS+VEspXEUPLPD2qP73YxCxHQg6lTPBYt4GkDp9xbcaZOghRAcD1ndqWN gYsfTW3fulrMAZfQxH0/RU3fRYzABx4n/MhRy/BqeX/hKs3pYoq53JfcALpy3HzJYgvR DSw7tKPQskBeBacOLqYgny0iCIXuwrI1Cl/57tk8RTR9yYr5xGaovBCnQStswSPYmRKo MlSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PDN6zaJA; 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 e17-v6si11046430pgv.615.2018.09.08.14.26.35; Sat, 08 Sep 2018 14:26:52 -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=PDN6zaJA; 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 S1727847AbeIICMX (ORCPT + 99 others); Sat, 8 Sep 2018 22:12:23 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34241 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727694AbeIICMX (ORCPT ); Sat, 8 Sep 2018 22:12:23 -0400 Received: by mail-wm0-f66.google.com with SMTP id j25-v6so2251478wmc.1; Sat, 08 Sep 2018 14:25:13 -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=PDN6zaJAOlY1XuRcBrqYA9UYPmi9gdnl6lxlT10cB7BabphGmS/O6ge6sqj4qezLo9 cM5fhidKOz2HBOm7TfDcd69GqIajhkhl+DnTvI6dwL1ZMo3rWzXAP29M++Oylt6ahRko lCrq/yGCd7bYldLZS32IUp1jcGgqcSHh4QVNOVobMcAJJXG0bEW/+ayafUPDLyEtMiPb xljrlkl2ZcY/FWZkiSUdHzO3aU7mG28e1IqTjCIDXbaQ1mIa0dsz9W3cKBTYjsPd9v8V /gilTekxovA8rhHh/oahfHEiNwzrcK0J9U4Y4zCyJK8QEp+IFnQk8RI0ZToRZT7XWBUu 3vyA== 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=cGsyl02bSS69ZPSqAM7jHaGY6S3IM3APTUXmaUBsXAZzD+Tgk0lx+CzAPGhfSrvAov QBltqkV2sP5VvoSUCgvdBhPjT11qDOqb6gUKhlxcZNEGAUUftxonF4d1rG2tBGCCOPr2 h/29L3rr4u+FZwdXc0qersEeSNf5uJ3ClUohH6MWTgS8gSjIq3T9EuJKBodX171m0esc MxSC2yOzvVXmRxptkY8TSX5ATeGIM/WDUZZgJmWldxzL3/nfzW5C7K3BTiAmnzYayzfo T4U04DsHR77dS247IR1toC2bGlCwX5358HpDt3ZoxtIbSycAfq+/vG1O8rpKKdJ3ztoB OcYA== X-Gm-Message-State: APzg51CeD73I7ASG+eNLxZzNQhwP1x9MAi5yeUhQmza0nDEuPhN2dXn2 inS9Mbp+qQ7ZEBta6H/9VD4= X-Received: by 2002:a1c:e54:: with SMTP id 81-v6mr8839361wmo.84.1536441912565; Sat, 08 Sep 2018 14:25:12 -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.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Sep 2018 14:25:12 -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 01/13] Compiler Attributes: remove unused attributes Date: Sat, 8 Sep 2018 23:24:47 +0200 Message-Id: <20180908212459.19736-2-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 __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__ */ -- 2.17.1