120-headers_version_fix.patch 589 B

12345678910111213141516171819202122232425
  1. --- a/backport-include/linux/random.h
  2. +++ b/backport-include/linux/random.h
  3. @@ -23,7 +23,7 @@ static inline u16 get_random_u16(void)
  4. }
  5. #endif
  6. -#if LINUX_VERSION_IS_LESS(6,2,0)
  7. +#if LINUX_VERSION_IS_LESS(6,1,4)
  8. static inline u32 __get_random_u32_below(u32 ceil)
  9. {
  10. /*
  11. --- a/backport-include/net/dropreason.h
  12. +++ b/backport-include/net/dropreason.h
  13. @@ -3,10 +3,9 @@
  14. #include <linux/version.h>
  15. +#include <net/dropreason-core.h>
  16. #if LINUX_VERSION_IS_GEQ(6,0,0)
  17. #include_next <net/dropreason.h>
  18. -#else
  19. -#include <net/dropreason-core.h>
  20. #endif
  21. #if LINUX_VERSION_IS_LESS(6,4,0)