summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2019-09-11 13:11:43 -0400
committerPaul Gortmaker <paul.gortmaker@windriver.com>2019-09-11 13:11:43 -0400
commitc50adc3bd4a96f1e17bdc78df6c0742845bbdc4b (patch)
tree1d8d04f4f7867d0c966929ad795d7226e04619d9
parent6db494c3986e45f734383b5bcddf848f6a3c5ab8 (diff)
downloadlongterm-queue-4.18-c50adc3bd4a96f1e17bdc78df6c0742845bbdc4b.tar.gz
compiler: drop patch for newer gcc support
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
-rw-r--r--queue/Compiler-Attributes-add-support-for-__copy-gcc-9.patch94
-rw-r--r--queue/series1
2 files changed, 0 insertions, 95 deletions
diff --git a/queue/Compiler-Attributes-add-support-for-__copy-gcc-9.patch b/queue/Compiler-Attributes-add-support-for-__copy-gcc-9.patch
deleted file mode 100644
index 4f62c65..0000000
--- a/queue/Compiler-Attributes-add-support-for-__copy-gcc-9.patch
+++ /dev/null
@@ -1,94 +0,0 @@
-From c0d9782f5b6d7157635ae2fd782a4b27d55a6013 Mon Sep 17 00:00:00 2001
-From: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
-Date: Fri, 8 Feb 2019 23:51:05 +0100
-Subject: [PATCH] Compiler Attributes: add support for __copy (gcc >= 9)
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-commit c0d9782f5b6d7157635ae2fd782a4b27d55a6013 upstream.
-
-From the GCC manual:
-
- copy
- copy(function)
-
- The copy attribute applies the set of attributes with which function
- has been declared to the declaration of the function to which
- the attribute is applied. The attribute is designed for libraries
- that define aliases or function resolvers that are expected
- to specify the same set of attributes as their targets. The copy
- attribute can be used with functions, variables, or types. However,
- the kind of symbol to which the attribute is applied (either
- function or variable) must match the kind of symbol to which
- the argument refers. The copy attribute copies only syntactic and
- semantic attributes but not attributes that affect a symbol’s
- linkage or visibility such as alias, visibility, or weak.
- The deprecated attribute is also not copied.
-
- https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html
-
-The upcoming GCC 9 release extends the -Wmissing-attributes warnings
-(enabled by -Wall) to C and aliases: it warns when particular function
-attributes are missing in the aliases but not in their target, e.g.:
-
- void __cold f(void) {}
- void __alias("f") g(void);
-
-diagnoses:
-
- warning: 'g' specifies less restrictive attribute than
- its target 'f': 'cold' [-Wmissing-attributes]
-
-Using __copy(f) we can copy the __cold attribute from f to g:
-
- void __cold f(void) {}
- void __copy(f) __alias("f") g(void);
-
-This attribute is most useful to deal with situations where an alias
-is declared but we don't know the exact attributes the target has.
-
-For instance, in the kernel, the widely used module_init/exit macros
-define the init/cleanup_module aliases, but those cannot be marked
-always as __init/__exit since some modules do not have their
-functions marked as such.
-
-Suggested-by: Martin Sebor <msebor@gcc.gnu.org>
-Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
-Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
-
-diff --git a/include/linux/compiler_attributes.h b/include/linux/compiler_attributes.h
-index 19f32b0c29af..6b318efd8a74 100644
---- a/include/linux/compiler_attributes.h
-+++ b/include/linux/compiler_attributes.h
-@@ -34,6 +34,7 @@
- #ifndef __has_attribute
- # define __has_attribute(x) __GCC4_has_attribute_##x
- # define __GCC4_has_attribute___assume_aligned__ (__GNUC_MINOR__ >= 9)
-+# define __GCC4_has_attribute___copy__ 0
- # define __GCC4_has_attribute___designated_init__ 0
- # define __GCC4_has_attribute___externally_visible__ 1
- # define __GCC4_has_attribute___noclone__ 1
-@@ -101,6 +102,19 @@
- #define __attribute_const__ __attribute__((__const__))
-
- /*
-+ * Optional: only supported since gcc >= 9
-+ * Optional: not supported by clang
-+ * Optional: not supported by icc
-+ *
-+ * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-copy-function-attribute
-+ */
-+#if __has_attribute(__copy__)
-+# define __copy(symbol) __attribute__((__copy__(symbol)))
-+#else
-+# define __copy(symbol)
-+#endif
-+
-+/*
- * Don't. Just don't. See commit 771c035372a0 ("deprecate the '__deprecated'
- * attribute warnings entirely and for good") for more information.
- *
---
-2.9.5
-
diff --git a/queue/series b/queue/series
index 2b351ac..d23dd2c 100644
--- a/queue/series
+++ b/queue/series
@@ -75,7 +75,6 @@ drm-tegra-gem-Fix-CPU-cache-maintenance-for-BO-s-all.patch
drm-vmwgfx-Don-t-send-drm-sysfs-hotplug-events-on-in.patch
drm-sun4i-Fix-sun8i-HDMI-PHY-configuration-for-148.5.patch
drm-lease-Make-sure-implicit-planes-are-leased.patch
-Compiler-Attributes-add-support-for-__copy-gcc-9.patch
include-linux-module.h-copy-__init-__exit-attrs-to-i.patch
x86-ftrace-Do-not-call-function-graph-from-dynamic-t.patch
x86-ftrace-Set-trampoline-pages-as-executable.patch