tree:
https://android.googlesource.com/kernel/common android12-5.10
head: d015c6200384c0d99457f71c8f11eac85decbfb5
commit: 1b4aca7d82ae9b40145484fa09ceab38a6a06062 [1/2] ANDROID: arm64/mm: implement
{populate/depopulate}_range_driver_managed
config: arm64-randconfig-r036-20210120 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
22b68440e1647e16b5ee24b924986207173c02d1)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git remote add android-common
https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout 1b4aca7d82ae9b40145484fa09ceab38a6a06062
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> arch/arm64/mm/mmu.c:1510:17: warning: format specifies type
'unsigned long' but the argument has type 'u64' (aka 'unsigned long
long') [-Wformat]
__func__, start);
^~~~~
include/linux/printk.h:343:33: note: expanded from macro 'pr_err'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
> arch/arm64/mm/mmu.c:1499:5: warning: no previous prototype for
function 'check_range_driver_managed' [-Wmissing-prototypes]
int
check_range_driver_managed(u64 start, u64 size, const char *resource_name)
^
arch/arm64/mm/mmu.c:1499:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
int check_range_driver_managed(u64 start, u64 size, const char *resource_name)
^
static
2 warnings generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for USB_PHY
Depends on USB_SUPPORT
Selected by
- GKI_HIDDEN_USB_CONFIGS
WARNING: unmet direct dependencies detected for DRM_MIPI_DSI
Depends on HAS_IOMEM && DRM
Selected by
- GKI_HIDDEN_DRM_CONFIGS
WARNING: unmet direct dependencies detected for DRM_KMS_CMA_HELPER
Depends on HAS_IOMEM && DRM
Selected by
- GKI_HIDDEN_DRM_CONFIGS
WARNING: unmet direct dependencies detected for HVC_DRIVER
Depends on TTY
Selected by
- GKI_HIDDEN_VIRTUAL_CONFIGS
WARNING: unmet direct dependencies detected for DMA_VIRTUAL_CHANNELS
Depends on DMADEVICES
Selected by
- GKI_HIDDEN_SND_SOC_CONFIGS
WARNING: unmet direct dependencies detected for DRM_GEM_CMA_HELPER
Depends on HAS_IOMEM && DRM
Selected by
- GKI_HIDDEN_DRM_CONFIGS
vim +1510 arch/arm64/mm/mmu.c
1498
1499 int check_range_driver_managed(u64 start, u64 size, const char
*resource_name)
1500 {
1501 struct mem_section *ms;
1502 unsigned long pfn = __phys_to_pfn(start);
1503 unsigned long end_pfn = __phys_to_pfn(start + size);
1504 struct resource *res;
1505 unsigned long flags;
1506
1507 res = lookup_resource(&iomem_resource, start);
1508 if (!res) {
1509 pr_err("%s: couldn't find memory resource for start 0x%lx\n",
1510 __func__, start);
1511 return -EINVAL;
1512 }
1513
1514 flags = res->flags;
1515
1516 if (!(flags & IORESOURCE_SYSRAM_DRIVER_MANAGED) ||
1517 strstr(resource_name, "System RAM (") != resource_name)
1518 return -EINVAL;
1519
1520 for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) {
1521 ms = __pfn_to_section(pfn);
1522 if (early_section(ms))
1523 return -EINVAL;
1524 }
1525
1526 return 0;
1527 }
1528
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org