Page MenuHomeFreeBSD

LinuxKPI: Implement default sysfs kobject attribute operations
ClosedPublic

Authored by wulf on Dec 6 2021, 9:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 21, 8:35 AM
Unknown Object (File)
Sun, May 17, 3:04 PM
Unknown Object (File)
Fri, May 15, 9:10 PM
Unknown Object (File)
Fri, May 15, 9:09 PM
Unknown Object (File)
Fri, May 15, 9:02 PM
Unknown Object (File)
Wed, May 13, 9:32 PM
Unknown Object (File)
Wed, May 6, 3:13 AM
Unknown Object (File)
Thu, Apr 30, 3:43 PM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

wulf requested review of this revision.Dec 6 2021, 9:59 AM
sys/compat/linuxkpi/common/include/linux/kobject.h
71

Should this definition be moved to:

sys/compat/linuxkpi/common/include/linux/sysfs.h
sys/compat/linuxkpi/common/include/linux/kobject.h
71
sys/compat/linuxkpi/common/include/linux/kobject.h
71

OK, I think you need to add:

struct sysfs_ops;

At the beginning of this file to avoid issues with standalone inclusion.

sys/compat/linuxkpi/common/include/linux/kobject.h
71

It looks unnecessary. I just placed

extern struct foo bar;

line in to this file and it still compiles

OK, try -Wall just in case.

This revision is now accepted and ready to land.Dec 6 2021, 11:30 AM