summarylogtreecommitdiffstats
path: root/fix_6.3_compilation.patch
blob: 54a26d0329fd95bf5a2497d8dc74ea0cd1320c17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
commit bbf0dcc484c3f5611f4e375da43e0e0ef08f3d18
Author: Vicki Pfau <vi@endrift.com>
Date:   Tue May 16 15:06:07 2023 -0700

    Fix build on kernel 6.3

diff --git a/bus/bus.c b/bus/bus.c
index 7fde92244cb9..b129d6fb519a 100644
--- a/bus/bus.c
+++ b/bus/bus.c
@@ -67,7 +67,11 @@ static void gip_client_state_changed(struct work_struct *work)
 	}
 }
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0)
 static int gip_client_uevent(struct device *dev, struct kobj_uevent_env *env)
+#else
+static int gip_client_uevent(const struct device *dev, struct kobj_uevent_env *env)
+#endif
 {
 	struct gip_client *client = to_gip_client(dev);
 	struct gip_classes *classes = client->classes;