git: af9c64fd6c54 - main - linuxkpi: Fix return type of `kobject_uevent_env()`
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 15 Aug 2026 18:28:36 UTC
The branch main has been updated by dumbbell:
URL: https://cgit.FreeBSD.org/src/commit/?id=af9c64fd6c54674e4d67ba9125460db16a84b1f0
commit af9c64fd6c54674e4d67ba9125460db16a84b1f0
Author: Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2026-08-15 18:27:22 +0000
Commit: Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2026-08-15 18:27:22 +0000
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
---
sys/compat/linuxkpi/common/include/linux/kobject.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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);