0001-tests-Remove-unused-linux-fs.h-header-from-includes.patch 979 B

12345678910111213141516171819202122232425262728293031
  1. From 6fb10bd18488ed84776675bc1b2982800a51d839 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Sat, 6 Aug 2022 20:14:38 -0700
  4. Subject: [mtd-utils][PATCH] tests: Remove unused linux/fs.h header from includes
  5. This header is not needed, moreover it includes linux/mount.h which is
  6. now in conflict[1] with glibc provided sys/mount.h from glibc 2.36 onwards
  7. [1] https://sourceware.org/glibc/wiki/Release/2.36
  8. Upstream-Status: Submitted [https://lists.infradead.org/pipermail/linux-mtd/2022-August/094667.html]
  9. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  10. ---
  11. tests/fs-tests/lib/tests.c | 1 -
  12. 1 file changed, 1 deletion(-)
  13. diff --git a/tests/fs-tests/lib/tests.c b/tests/fs-tests/lib/tests.c
  14. index d1a2e0c..3db0426 100644
  15. --- a/tests/fs-tests/lib/tests.c
  16. +++ b/tests/fs-tests/lib/tests.c
  17. @@ -35,7 +35,6 @@
  18. #include <sys/vfs.h>
  19. #include <sys/mount.h>
  20. #include <sys/statvfs.h>
  21. -#include <linux/fs.h>
  22. #include <linux/jffs2.h>
  23. #include "tests.h"
  24. --
  25. 2.37.1