904-debloat_dma_buf.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --- a/drivers/base/Kconfig
  2. +++ b/drivers/base/Kconfig
  3. @@ -232,7 +232,7 @@ config SOC_BUS
  4. source "drivers/base/regmap/Kconfig"
  5. config DMA_SHARED_BUFFER
  6. - bool
  7. + tristate
  8. default n
  9. select ANON_INODES
  10. help
  11. --- a/drivers/dma-buf/Makefile
  12. +++ b/drivers/dma-buf/Makefile
  13. @@ -1 +1,2 @@
  14. -obj-y := dma-buf.o fence.o reservation.o seqno-fence.o
  15. +obj-$(CONFIG_DMA_SHARED_BUFFER) := dma-shared-buffer.o
  16. +dma-shared-buffer-objs := dma-buf.o fence.o reservation.o seqno-fence.o
  17. --- a/drivers/dma-buf/dma-buf.c
  18. +++ b/drivers/dma-buf/dma-buf.c
  19. @@ -33,6 +33,7 @@
  20. #include <linux/seq_file.h>
  21. #include <linux/poll.h>
  22. #include <linux/reservation.h>
  23. +#include <linux/module.h>
  24. static inline int is_dma_buf_file(struct file *);
  25. @@ -914,4 +915,5 @@ static void __exit dma_buf_deinit(void)
  26. {
  27. dma_buf_uninit_debugfs();
  28. }
  29. -__exitcall(dma_buf_deinit);
  30. +module_exit(dma_buf_deinit);
  31. +MODULE_LICENSE("GPL");
  32. --- a/kernel/sched/core.c
  33. +++ b/kernel/sched/core.c
  34. @@ -2096,6 +2096,7 @@ int wake_up_state(struct task_struct *p,
  35. {
  36. return try_to_wake_up(p, state, 0);
  37. }
  38. +EXPORT_SYMBOL_GPL(wake_up_state);
  39. /*
  40. * This function clears the sched_dl_entity static params.