Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp731472imm; Fri, 31 Aug 2018 11:40:48 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZfyYxvG+jFa7e43nntm5NzmPKexSj585JbnsolJiTbjrY/RRHF3xRNvZ738r/+Kt1xIUpH X-Received: by 2002:a63:c114:: with SMTP id w20-v6mr14997624pgf.234.1535740848757; Fri, 31 Aug 2018 11:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535740848; cv=none; d=google.com; s=arc-20160816; b=uF09Qtbxou3l56n5XwoiI9Ve1xOWo/+5537v0BOWYeThLSq+sbvtzTrKthJIS+wb3M ZnWcQYjFJ+BSpzxkRmH4cbUgE/26RlhVkCX8Nl3G2spAGU1yBAZ1vaLqelyHvprWTiyj Mpt48Lf/E0mrtmMpkd4J5Egiab8N8RX+rjECkvjRgY78mZl/BssfjPhViqkqufG3G61C zHUUBEyrbPlUQ4av7pbPxIbRfErtkp7oZJznVM9VV2v4bwVERlpzRbYFTnbYrAzKcqFF CUcZDhadXHIvUDm+jrbnTntqhiLk8poBOcCFQl1gOcGk9xd7DBtzOmklFC5lJsxy8HS8 auRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=rbEBSLoYYXdqkwapMaPABG8uME/HyFvOnTsz2qYUb+U=; b=Ufh+1jJiqcnh+IxujKQcMX4atMBImNKD/02/spgv01LQxAK33RsjJNS0zU+5+ZxIES pzRrSL1ri6haMPXyQxG4byTPmnUAiTaLYIzFqOlUOYzF2oOzMka7+dVFq0WsbCoJKUnV NNQ7XKuPZjApGPvqL6SzTMFgcnQWXpTBEqM1GG9XBlxcL5F0OfGvhRK23LzBFRnFjpeW Kcc/sGGq8X3QYW4mPsuH8yGzWpZWv3phTZEiWh+RRTSgnjBG1OtpjNMrP8WJQocdigCW 7BxrW21zydxZ662DE6sFVBg6/bttDQcsFolBRoRndsGEPFQ/U0qWxG2Y72nq8a5rRjfY ZndQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=n6KUWOUj; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17-v6si10147683pgi.284.2018.08.31.11.40.33; Fri, 31 Aug 2018 11:40:48 -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=@google.com header.s=20161025 header.b=n6KUWOUj; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727354AbeHaWsO (ORCPT + 99 others); Fri, 31 Aug 2018 18:48:14 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:42376 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726704AbeHaWsO (ORCPT ); Fri, 31 Aug 2018 18:48:14 -0400 Received: by mail-pf1-f195.google.com with SMTP id l9-v6so5891632pff.9 for ; Fri, 31 Aug 2018 11:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rbEBSLoYYXdqkwapMaPABG8uME/HyFvOnTsz2qYUb+U=; b=n6KUWOUjWk6iRpHm6Q15oaJP9GKoMGh1SXU6x341j7cHJhYNXLyIkLRy5vdqHJC7tU PSKbBu/aL6ziaUcddX43g6RkFfHnKRRMGHkniMJc2qufLskIBb3vXAbtWOkhyvdKqFJW xGveDEg7vprYLRCKe3YBYreYqphNbik3iGQM8F8Ji5GURXQLmoWki5TPJL3lxONZLupR B+6+8CSisqeD8MhK2m1xut2JHLQhyCjlN34ByXVU3ZfRzUpbFhkLkQBPxaaeK+llBD4k w5948cey/Hkj6ZV40j9XXPHgQwrXbjJFybmTOXnELAEgYQ853StcbRhXJT96iNwMsPae TU8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rbEBSLoYYXdqkwapMaPABG8uME/HyFvOnTsz2qYUb+U=; b=Ezd40swqOKuZMRNScxOgQG+L6916CFQnQYaEffkv83djJ71+XwcbFPrzEhvu4dXrkk xgJvqfOznxWtaL3M5pxHzQswufHgHVdcam8yx1WT5H42iXzrY864I4srj7D5ib486+bC jex4RZSyoyZ2Ac+lxMzsLY0m99TbaunAOLLldBTkH4Egjs1efjZvoMoWvYrUoBvi7k9A tWYlT+g0LVMlBtbn5zLq8ud347ZvKDCLgNCST1xMSlSq7IRkJ1vpYxByuF4z2EiWbyw3 5MHNiYA6CISZQR7rbA1kLn3nYLmUJITjG8tgZhpMRKjtwISO5UWw7xJNzK9TGH7uN2cy Dj4A== X-Gm-Message-State: APzg51DqNboANniKm2NxJbTKrOqAKa+DuEPkxK8vTrbQnQETBFUxWr1R uMLMexpu1JuBxeA16QurYVunTUtamFyzAvH8w43IMh3dMZoNuw== X-Received: by 2002:a63:2605:: with SMTP id m5-v6mr9659101pgm.225.1535740768913; Fri, 31 Aug 2018 11:39:28 -0700 (PDT) MIME-Version: 1.0 References: <20180831170514.24665-1-miguel.ojeda.sandonis@gmail.com> In-Reply-To: <20180831170514.24665-1-miguel.ojeda.sandonis@gmail.com> From: Nick Desaulniers Date: Fri, 31 Aug 2018 11:39:17 -0700 Message-ID: Subject: Re: [PATCH 1/7] Compiler Attributes: remove unused attributes To: Miguel Ojeda Cc: Linus Torvalds , LKML , efriedma@codeaurora.org, sparse@chrisli.org, Kees Cook , Ingo Molnar , Geert Uytterhoeven , Arnd Bergmann , Greg KH , Masahiro Yamada , joe@perches.com, asmadeus@codewreck.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 31, 2018 at 10:05 AM Miguel Ojeda wrote: > > __optimize and __deprecate_for_modules are unused in > the whole kernel tree. Simply drop them. Indeed. Reviewed-by: Nick Desaulniers > > 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 > -- Thanks, ~Nick Desaulniers