1 --- a/drivers/base/Kconfig
2 +++ b/drivers/base/Kconfig
3 @@ -229,7 +229,7 @@ config SOC_BUS
4 source "drivers/base/regmap/Kconfig"
6 config DMA_SHARED_BUFFER
12 --- a/drivers/dma-buf/Makefile
13 +++ b/drivers/dma-buf/Makefile
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
21 #include <linux/seq_file.h>
22 #include <linux/poll.h>
23 #include <linux/reservation.h>
24 +#include <linux/module.h>
26 static inline int is_dma_buf_file(struct file *);
28 @@ -904,4 +905,5 @@ static void __exit dma_buf_deinit(void)
30 dma_buf_uninit_debugfs();
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 @@ -1823,6 +1823,7 @@ int wake_up_state(struct task_struct *p,
39 return try_to_wake_up(p, state, 0);
41 +EXPORT_SYMBOL_GPL(wake_up_state);
44 * This function clears the sched_dl_entity static params.