git: af9c64fd6c54 - main - linuxkpi: Fix return type of `kobject_uevent_env()`

Jean-Sébastien Pédron <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a80afd4.38650.275daa7e__10607.7551886969$1786818707$gmane$org@gitrepo.freebsd.org>
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 <[email protected]>
AuthorDate: 2026-08-15 18:27:22 +0000
Commit:     Jean-Sébastien Pédron <[email protected]>
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);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.