kernel: add missing patch
[oweals/openwrt.git] / target / linux / generic / pending-4.9 / 206-mips-disable-vdso.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Subject: kernel: disable MIPS VDSO by default until the cache issues have been resolved
3
4 lede-commit: 1185e645a773c86aa88cf04d0e2911dc62eb43f5
5 Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 ---
7  arch/mips/vdso/Makefile | 4 ++--
8  1 file changed, 2 insertions(+), 2 deletions(-)
9
10 diff --git a/arch/mips/vdso/Makefile b/arch/mips/vdso/Makefile
11 index c3dc12a8b7d9..28f66e3bb2c3 100644
12 --- a/arch/mips/vdso/Makefile
13 +++ b/arch/mips/vdso/Makefile
14 @@ -28,9 +28,9 @@ aflags-vdso := $(ccflags-vdso) \
15  ifndef CONFIG_CPU_MIPSR6
16    ifeq ($(call ld-ifversion, -lt, 225000000, y),y)
17      $(warning MIPS VDSO requires binutils >= 2.25)
18 -    obj-vdso-y := $(filter-out gettimeofday.o, $(obj-vdso-y))
19 -    ccflags-vdso += -DDISABLE_MIPS_VDSO
20    endif
21 +  obj-vdso-y := $(filter-out gettimeofday.o, $(obj-vdso-y))
22 +  ccflags-vdso += -DDISABLE_MIPS_VDSO
23  endif
24  
25  # VDSO linker flags.
26 -- 
27 2.11.0
28