Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1937857imm; Mon, 3 Sep 2018 13:35:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZHmmZ67CUbgfCBG5Ui5O3MeW7jBEXbOUMBB7BTmraq7wJfkqje8K0JWTK25Q1zFinJNybt X-Received: by 2002:a62:b20c:: with SMTP id x12-v6mr30982747pfe.201.1536006915046; Mon, 03 Sep 2018 13:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536006915; cv=none; d=google.com; s=arc-20160816; b=AStfjYT3NozHt/L7fSbATLBkp50quhCm+xrgZA9JfP0ZaG0Pw6hY6FALzQRpGUqgvH EXcqcBEnIpnvYUJwFSheTZVmGwSGF7HOygOZCX4eqgwoMHYDd8qzNrUQwn227HDAwlt4 H4bI6//qVTrCM0uzsso+b5tGQ85jbDVHwIqOOKLp9c++JN2GAOV3x4YDEsCDI/pK+YW3 qTgMUNpQ6EEvNqDQduyhQqUMi80wwXJYyLH+9Qe38vPRLcg2G3y6pWBIEa3azIzsABKv 7hSqOJVgUk3yvojH+87dpe/AXLeTrguTsbXv6kqZVgIJ5gvyBRgI2ZAMFUhJU3c+D0dy SuJg== 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:arc-authentication-results; bh=ZhryjHGsWzeSzxD0NW3OWSaZ8RANYxnQY/DMq4IP8+M=; b=ICW98Lyo5ne40bEBeSSHElMfiRmg8Fkwf2xJiVCHzfrY2jwWJuqKx+6ITtwxByg/n8 qWZflxlMyO8CxJXLohSPs+q5ebEcJSNGTxWewSsMq5NJJZE+S0dtfkmtvjPefU0uKior ri787sqZFZ+TEsIUj+UXxdJ2O2mXSCYrzk6tAVRlykjy52uynW4ZhL4/oaaURosJx7oT aFxAtU22mZVOgPdR5FGYvbrmwCf19TEpQi3ka/2TNpGvME4zJd8jkvcoonszDTjP+DXS vZAPINpC812Kq/MaHD8ZuqQohspmwQpQqopaGxlQS4igYexVfxsP5eazOOltYoPrV2+B uG4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KevZ8PIL; 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 v3-v6si18456239pgc.447.2018.09.03.13.35.00; Mon, 03 Sep 2018 13:35:15 -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=KevZ8PIL; 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 S1728833AbeIDAzl (ORCPT + 99 others); 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-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-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