[linux-next:master 9681/11253] drivers/cxl/pmem.c:6:1: iwyu: warning: superfluous #include <linux/slab.h>

From: kernel test robot <hidden>
Date: 2021-06-21 09:37:09
Also in: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e71e3a48a7e89fa71fb70bf4602367528864d2ff
commit: 8fdcb1704f61a8fd9be0f3849a174d084def0666 [9681/11253] cxl/pmem: Add initial infrastructure for pmem support
config: x86_64-randconfig-b001-20210620 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e1adf90826a57b674eee79b071fb46c1f5683cd0)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # apt-get install iwyu # include-what-you-use
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=8fdcb1704f61a8fd9be0f3849a174d084def0666
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 8fdcb1704f61a8fd9be0f3849a174d084def0666
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross C=1 CHECK=iwyu ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <redacted>


iwyu warnings: (new ones prefixed by >>)
quoted
drivers/cxl/pmem.c:6:1: iwyu: warning: superfluous #include <linux/slab.h>
vim +6 drivers/cxl/pmem.c

8fdcb1704f61a8 Dan Williams 2021-06-15 @6  #include <linux/slab.h>
8fdcb1704f61a8 Dan Williams 2021-06-15  7  #include "cxl.h"
8fdcb1704f61a8 Dan Williams 2021-06-15  8  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help