imx6: disable MSI interrupts
[oweals/openwrt.git] / target / linux / generic / patches-4.9 / 904-debloat_dma_buf.patch
1 --- a/drivers/base/Kconfig
2 +++ b/drivers/base/Kconfig
3 @@ -241,7 +241,7 @@ config SOC_BUS
4  source "drivers/base/regmap/Kconfig"
5  
6  config DMA_SHARED_BUFFER
7 -       bool
8 +       tristate
9         default n
10         select ANON_INODES
11         help
12 --- a/drivers/dma-buf/Makefile
13 +++ b/drivers/dma-buf/Makefile
14 @@ -1,3 +1,7 @@
15 -obj-y := dma-buf.o fence.o reservation.o seqno-fence.o fence-array.o
16 -obj-$(CONFIG_SYNC_FILE)                += sync_file.o
17 -obj-$(CONFIG_SW_SYNC)          += sw_sync.o sync_debug.o
18 +obj-$(CONFIG_DMA_SHARED_BUFFER) := dma-shared-buffer.o
19 +
20 +dma-buf-objs-y := dma-buf.o fence.o reservation.o seqno-fence.o fence-array.o
21 +dma-buf-objs-$(CONFIG_SYNC_FILE)               += sync_file.o
22 +dma-buf-objs-$(CONFIG_SW_SYNC)         += sw_sync.o sync_debug.o
23 +
24 +dma-shared-buffer-objs :=  $(dma-buf-objs-y)
25 --- a/drivers/dma-buf/dma-buf.c
26 +++ b/drivers/dma-buf/dma-buf.c
27 @@ -34,6 +34,7 @@
28  #include <linux/poll.h>
29  #include <linux/reservation.h>
30  #include <linux/mm.h>
31 +#include <linux/module.h>
32  
33  #include <uapi/linux/dma-buf.h>
34  
35 @@ -974,4 +975,5 @@ static void __exit dma_buf_deinit(void)
36  {
37         dma_buf_uninit_debugfs();
38  }
39 -__exitcall(dma_buf_deinit);
40 +module_exit(dma_buf_deinit);
41 +MODULE_LICENSE("GPL");
42 --- a/kernel/sched/core.c
43 +++ b/kernel/sched/core.c
44 @@ -2170,6 +2170,7 @@ int wake_up_state(struct task_struct *p,
45  {
46         return try_to_wake_up(p, state, 0);
47  }
48 +EXPORT_SYMBOL_GPL(wake_up_state);
49  
50  /*
51   * This function clears the sched_dl_entity static params.