--- zzzz-none-000/linux-5.4.213/include/linux/slub_def.h 2022-09-15 10:04:56.000000000 +0000 +++ miami-7690-761/linux-5.4.213/include/linux/slub_def.h 2024-05-29 11:20:02.000000000 +0000 @@ -76,6 +76,10 @@ unsigned int x; }; +#if defined(CONFIG_SYSFS) +#define SLAB_SUPPORTS_SYSFS +#endif + /* * Slab cache management. */ @@ -104,7 +108,7 @@ unsigned int red_left_pad; /* Left redzone padding size */ const char *name; /* Name (only for display!) */ struct list_head list; /* List of slab caches */ -#ifdef CONFIG_SYSFS +#ifdef SLAB_SUPPORTS_SYSFS struct kobject kobj; /* For sysfs */ struct work_struct kobj_remove_work; #endif