308-otto-wdt-fix-missing-math-header.patch 1.0 KB

12345678910111213141516171819202122232425262728
  1. From b8fc5eecdc5d33cf261986436597b5482ab856da Mon Sep 17 00:00:00 2001
  2. From: Sander Vanheule <[email protected]>
  3. Date: Sun, 14 Nov 2021 19:45:32 +0100
  4. Subject: [PATCH] realtek: Backport Realtek Otto WDT driver
  5. Add patch submitted upstream to linux-watchdog and replace the MIPS
  6. architecture symbols. Requires one extra patch for the DIV_ROUND_*
  7. macros, which have moved to a different header since 5.10.
  8. Submitted-by: Sander Vanheule <[email protected]>
  9. Tested-by: Stijn Segers <[email protected]>
  10. Tested-by: Paul Fertser <[email protected]>
  11. Tested-by: Stijn Tintel <[email protected]>
  12. ---
  13. drivers/watchdog/realtek_otto_wdt.c | 2 +-
  14. 1 files changed, 1 insertion(+), 1 deletion(-)
  15. --- a/drivers/watchdog/realtek_otto_wdt.c
  16. +++ b/drivers/watchdog/realtek_otto_wdt.c
  17. @@ -21,7 +21,7 @@
  18. #include <linux/delay.h>
  19. #include <linux/interrupt.h>
  20. #include <linux/io.h>
  21. -#include <linux/math.h>
  22. +#include <linux/kernel.h>
  23. #include <linux/minmax.h>
  24. #include <linux/module.h>
  25. #include <linux/mod_devicetable.h>