]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
blk-integrity: convert to struct device_attribute
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 2 Oct 2024 14:01:21 +0000 (11:01 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:33 +0000 (15:11 +0200)
commit6356f2d2fc7309c2a132fb9dd87343bcd5794efb
treed996abd6d9652879c6e800656ba38e0d03b4ecf3
parent71246997b749eebb074ee5b0c456d0e916410fcd
blk-integrity: convert to struct device_attribute

Upstream commit 76b8c319f02715e14abdbbbdd6508e83a1059bcc.

An upcoming patch will register the integrity attributes directly with
the struct device kobject.
For this the attributes have to be implemented in terms of
struct device_attribute.

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-2-ceccb4493c46@weissschuh.net
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-integrity.c