Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2274872imm; Thu, 20 Sep 2018 10:24:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZh2ELtz9dLdJmvc6rQElxrrQRXcy2usE+YjMJ83vV8pSlu19XtbTVou1/BQjSHXTh+vdeh X-Received: by 2002:a63:ac54:: with SMTP id z20-v6mr36679946pgn.74.1537464269579; Thu, 20 Sep 2018 10:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537464269; cv=none; d=google.com; s=arc-20160816; b=n3exePQmvOxn3Imco9WOi3n3+5As8HPwC4DF54V/vmrV2h4OmPzeN5k9AU9KLofOkf ByA/cLzghVW1xaQntuPWusjbYdaUdkf3nwUphCU+kzph06Y31Jld46w03fN2pvt7wOes +vEtvNMN7GcfTQR2GrIL6+Yfa8D1yQOqCh6OMT2AwdSECbjfMPGuaKdDQXmZ0PldiSiL ItVAAjzshZgH79/kDlx+6bkg9JNWxukLXMYRzj3iHmJSCBek2u+IvG6VnEh4sFs9Abgp 7W/aVwWksd2TRL3vOOCoxTkJnrPgpDiD0HNadVL1VnwDiUInP7uW8J34noNSYseRRcHf LNhA== 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=E8ChE32l4QMnvkDCzYi/BjHhTEniuUicL3Qb16ak874=; b=WANAUkXJqrIfckeUcwT+9BrGkEOuzVnH86kzv6oYDk55qhRTqgnznq9vPChAFZ1yy/ RaD6fNG5ywjXQZ9AQZgJH2o98Lk2rfVPZfnuxy4vgxatsHjDLZZbwd8zMWYdMnGPNDem NegVI7XgTzrEdM1fKj//gkU1r8ukpjdHsAcNXX52d81cSNUBnGgwr2E0Un29uwWO8tRZ WTE5tBYRe1HDoxioG4qskO1nYAnp1oQQjBQ29pHukRicGEr2BUdS4c1Ta6SXB18fq6BE K5h5e5nK8sTYaNc4c7j2i0HKtCKw94Ny9fTtIP9IVQGpBAWFnfMt8xE2uBfN4Q28ob48 bC0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EK7tU2d3; 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 w14-v6si25328481pgc.527.2018.09.20.10.24.12; Thu, 20 Sep 2018 10:24:29 -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=EK7tU2d3; 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 S2387877AbeITXH7 (ORCPT + 99 others); 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-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-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. 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__ */ -- 2.17.1