Required by drm-kmod 5.7
MFC after: 1 week
Should this definition be moved to:
sys/compat/linuxkpi/common/include/linux/sysfs.h
That is where it is defined in Linux: https://elixir.bootlin.com/linux/v5.16-rc4/source/include/linux/kobject.h#L170
OK, I think you need to add:
struct sysfs_ops;
At the beginning of this file to avoid issues with standalone inclusion.
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.