lightnvm: remove duplicate include in lightnvm.h
authorZhang Yunkai <zhang.yunkai@zte.com.cn>
Tue, 13 Apr 2021 10:52:56 +0000 (10:52 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 13 Apr 2021 15:16:12 +0000 (09:16 -0600)
'linux/blkdev.h' and 'uapi/linux/lightnvm.h' included in 'lightnvm.h'
is duplicated.It is also included in the 5th and 7th line.

Signed-off-by: Zhang Yunkai <zhang.yunkai@zte.com.cn>
Signed-off-by: Matias Bjørling <matias.bjorling@wdc.com>
Link: https://lore.kernel.org/r/20210413105257.159260-4-matias.bjorling@wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/lightnvm.h
include/uapi/linux/lightnvm.h

index 1db223710b284a67b28666df85841f1cbb4e5ead..0908abda9c1b33fc1b3e50420872155486c9a995 100644 (file)
@@ -112,10 +112,8 @@ struct nvm_dev_ops {
 
 #ifdef CONFIG_NVM
 
-#include <linux/blkdev.h>
 #include <linux/file.h>
 #include <linux/dmapool.h>
-#include <uapi/linux/lightnvm.h>
 
 enum {
        /* HW Responsibilities */
index ead2e72e5c88ea0146612e3d11f88104ac0509c1..2745afd9b8faed65a690fa807bbe70222aa37a1f 100644 (file)
@@ -22,7 +22,6 @@
 
 #ifdef __KERNEL__
 #include <linux/const.h>
-#include <linux/ioctl.h>
 #else /* __KERNEL__ */
 #include <stdio.h>
 #include <sys/ioctl.h>