diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2023-03-18 17:36:25 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-26 18:22:50 -0600 |
commit | ff53cd52d9bdbf4074d2bbe9b591729997780bd3 (patch) | |
tree | 4cf2070e086e6a00e4faf350ec0767f3c698cc43 /include/linux/leds-lp3952.h | |
parent | 76b8c319f02715e14abdbbbdd6508e83a1059bcc (diff) | |
download | linux-stable-ff53cd52d9bdbf4074d2bbe9b591729997780bd3.tar.gz linux-stable-ff53cd52d9bdbf4074d2bbe9b591729997780bd3.tar.bz2 linux-stable-ff53cd52d9bdbf4074d2bbe9b591729997780bd3.zip |
blk-integrity: register sysfs attributes on struct device
The "integrity" kobject only acted as a holder for static sysfs entries.
It also was embedded into struct gendisk without managing it, violating
assumptions of the driver core.
Instead register the sysfs entries directly onto the struct device.
Also drop the now unused member integrity_kobj from struct gendisk.
Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20230309-kobj_release-gendisk_integrity-v3-3-ceccb4493c46@weissschuh.net
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/leds-lp3952.h')
0 files changed, 0 insertions, 0 deletions