summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/hdparm/hdparm/0001-hdparm-Remove-unused-linux-fs.h-header.patch
blob: dd88743d1ecbb4a13ad1fc7ac4d1104cd76c7893 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From c8fc52968f9e97d29ccf6deb348ec02627d74235 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 29 Jul 2022 13:00:40 -0700
Subject: [PATCH] hdparm: Remove unused linux/fs.h header

this helps fixing builds with glibc 2.36 where mount.h conflits now with
kernel mount.h which is included indirectly by linux/fs.h see [1] for
details

[1] https://sourceware.org/glibc/wiki/Release/2.36

Upstream-Status: Submitted [https://sourceforge.net/p/hdparm/patches/52/]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 hdparm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hdparm.c b/hdparm.c
index fa21e2f..901bdd8 100644
--- a/hdparm.c
+++ b/hdparm.c
@@ -25,7 +25,6 @@
 #include <sys/mman.h>
 #include <sys/user.h>
 #include <linux/types.h>
-#include <linux/fs.h>
 #include <linux/major.h>
 #include <endian.h>
 #include <asm/byteorder.h>
-- 
2.37.1