Skip to content

Commit

Permalink
lightnvm: remove duplicate include in lightnvm.h
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Zhang Yunkai authored and Jens Axboe committed Apr 13, 2021
1 parent 1c6b0bc commit 655cdaf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions include/linux/lightnvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
1 change: 0 additions & 1 deletion include/uapi/linux/lightnvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#ifdef __KERNEL__
#include <linux/const.h>
#include <linux/ioctl.h>
#else /* __KERNEL__ */
#include <stdio.h>
#include <sys/ioctl.h>
Expand Down

0 comments on commit 655cdaf

Please sign in to comment.