diff options
| author | Lukas Wunner <[email protected]> | 2024-05-23 11:00:00 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-06-04 13:56:45 +0000 |
| commit | 44a45be57f85165761fdabf072f9a97aa026ff61 (patch) | |
| tree | 103e44186a1dbf1e5a992b307a4546f411a9e556 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | driver core: remove devm_device_add_groups() (diff) | |
| download | kernel-44a45be57f85165761fdabf072f9a97aa026ff61.tar.gz kernel-44a45be57f85165761fdabf072f9a97aa026ff61.zip | |
sysfs: Unbreak the build around sysfs_bin_attr_simple_read()
Günter reports build breakage for m68k "m5208evb_defconfig" plus
CONFIG_BLK_DEV_INITRD=y caused by commit 66bc1a173328 ("treewide:
Use sysfs_bin_attr_simple_read() helper").
The defconfig disables CONFIG_SYSFS, so sysfs_bin_attr_simple_read()
is not compiled into the kernel. But init/initramfs.c references
that function in the initializer of a struct bin_attribute.
Add an empty static inline to avoid the build breakage.
Fixes: 66bc1a173328 ("treewide: Use sysfs_bin_attr_simple_read() helper")
Reported-by: Guenter Roeck <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lukas Wunner <[email protected]>
Tested-by: Guenter Roeck <[email protected]>
Reviewed-by: Rafael J. Wysocki <[email protected]>
Link: https://lore.kernel.org/r/05f4290439a58730738a15b0c99cd8576c4aa0d9.1716461752.git.lukas@wunner.de
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
