aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/cc_platform.h
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-04-20 09:57:16 +0900
committerJens Axboe <axboe@kernel.dk>2022-05-04 05:24:58 -0600
commitb3a0a73e8a79eab6ec74139b505f4c6d6781aae9 (patch)
treeef830ed30e57e1d7e9117098f5e875670fe64171 /include/linux/cc_platform.h
parentblock: null_blk: Fix code style issues (diff)
downloadwireguard-linux-b3a0a73e8a79eab6ec74139b505f4c6d6781aae9.tar.xz
wireguard-linux-b3a0a73e8a79eab6ec74139b505f4c6d6781aae9.zip
block: null_blk: Cleanup device creation and deletion
Introduce the null_create_dev() and null_destroy_dev() helper functions to respectivel create nullb devices on modprobe and destroy them on rmmod. The null_destroy_dev() helper avoids duplicated code in the null_init() and null_exit() functions for deleting devices. Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Link: https://lore.kernel.org/r/20220420005718.3780004-3-damien.lemoal@opensource.wdc.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/cc_platform.h')
0 files changed, 0 insertions, 0 deletions