aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2026-08-15 18:27:22 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2026-08-15 18:27:22 +0000
commitaf9c64fd6c54674e4d67ba9125460db16a84b1f0 (patch)
tree255a21d847448165bf020df07a19ac9ce53592e3
parent4565eeaccddfd849aaea6079082b4b2979630dd3 (diff)
linuxkpi: Fix return type of `kobject_uevent_env()`
The function returns an int on Linux. Let's return 0 (success). Sponsored by: The FreeBSD Foundation Differential Revision: reviews.freebsd.org/D58252
-rw-r--r--sys/compat/linuxkpi/common/include/linux/kobject.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/kobject.h b/sys/compat/linuxkpi/common/include/linux/kobject.h
index 98f55d1234c4..3d053212f94e 100644
--- a/sys/compat/linuxkpi/common/include/linux/kobject.h
+++ b/sys/compat/linuxkpi/common/include/linux/kobject.h
@@ -158,7 +158,7 @@ int kobject_set_name(struct kobject *kobj, const char *fmt, ...);
int kobject_init_and_add(struct kobject *kobj, const struct kobj_type *ktype,
struct kobject *parent, const char *fmt, ...);
-static __inline void
+static __inline int
kobject_uevent_env(struct kobject *kobj, int action, char *envp[])
{
@@ -168,6 +168,8 @@ kobject_uevent_env(struct kobject *kobj, int action, char *envp[])
* Not sure if we do anything related to udev/sysfs at the moment or
* need a shortcut or simply ignore it (for now).
*/
+
+ return (0);
}
void kset_init(struct kset *kset);