[cxl-cxl:pending 4/6] drivers/cxl/core/regs.c:7:10: fatal error: mem.h: No such file or directory

From: kernel test robot
Date: Sat Jul 31 2021 - 04:54:56 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git pending
head: 13a47ea9e8feb1362eaf4601b5b40f7cea9174ff
commit: d32f5d14e6a5a1ed635dcda5f53b2579e823b39a [4/6] cxl/core: Move register mapping infrastructure
config: x86_64-randconfig-c002-20210730 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=d32f5d14e6a5a1ed635dcda5f53b2579e823b39a
git remote add cxl-cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl-cxl pending
git checkout d32f5d14e6a5a1ed635dcda5f53b2579e823b39a
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

>> drivers/cxl/core/regs.c:7:10: fatal error: mem.h: No such file or directory
7 | #include <mem.h>
| ^~~~~~~
compilation terminated.


vim +7 drivers/cxl/core/regs.c

3
4 #include <linux/device.h>
5 #include <linux/slab.h>
6 #include <linux/pci.h>
> 7 #include <mem.h>
8

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

Attachment: .config.gz
Description: application/gzip