Fixed x86 GRUB config label
[librecmc/librecmc.git] / target / linux / generic / patches-4.1 / 904-debloat_dma_buf.patch
1 --- a/drivers/base/Kconfig
2 +++ b/drivers/base/Kconfig
3 @@ -229,7 +229,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 +1,2 @@
15 -obj-y := dma-buf.o fence.o reservation.o seqno-fence.o
16 +obj-$(CONFIG_DMA_SHARED_BUFFER) := dma-shared-buffer.o
17 +dma-shared-buffer-objs := dma-buf.o fence.o reservation.o seqno-fence.o
18 --- a/drivers/dma-buf/dma-buf.c
19 +++ b/drivers/dma-buf/dma-buf.c
20 @@ -32,6 +32,7 @@
21  #include <linux/seq_file.h>
22  #include <linux/poll.h>
23  #include <linux/reservation.h>
24 +#include <linux/module.h>
25  
26  static inline int is_dma_buf_file(struct file *);
27  
28 @@ -901,4 +902,5 @@ static void __exit dma_buf_deinit(void)
29  {
30         dma_buf_uninit_debugfs();
31  }
32 -__exitcall(dma_buf_deinit);
33 +module_exit(dma_buf_deinit);
34 +MODULE_LICENSE("GPL");
35 --- a/kernel/sched/core.c
36 +++ b/kernel/sched/core.c
37 @@ -1790,6 +1790,7 @@ int wake_up_state(struct task_struct *p,
38  {
39         return try_to_wake_up(p, state, 0);
40  }
41 +EXPORT_SYMBOL_GPL(wake_up_state);
42  
43  /*
44   * This function clears the sched_dl_entity static params.