kernel: bump 5.10 to 5.10.84
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.10 / 950-0249-kbuild-Disable-gcc-plugins.patch
1 From 4c6ffdf90a3a982fa11676faf658eebfd000867b Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Wed, 8 Apr 2020 15:23:56 +0100
4 Subject: [PATCH] kbuild: Disable gcc plugins
5
6 The GCC plugin feature leads to different kernel configurations on what
7 ought to be equivalent build systems because they depend on the build
8 hosts native compilers rather than the cross compilers needed for the
9 target. This causes problems with module symbol version mismatches.
10
11 Disable GCC plugins for all build hosts.
12
13 Advanced build script hackery borrowed from a patch by milhouse.
14
15 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
16 ---
17 scripts/gcc-plugin.sh | 1 +
18 1 file changed, 1 insertion(+)
19
20 --- a/scripts/gcc-plugin.sh
21 +++ b/scripts/gcc-plugin.sh
22 @@ -1,5 +1,6 @@
23 #!/bin/sh
24 # SPDX-License-Identifier: GPL-2.0
25 +exit 1 # Disable plugins
26
27 set -e
28