[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <202210221343.e50d98Ht-lkp@intel.com>
Date: Sat, 22 Oct 2022 13:27:19 +0800
From: kernel test robot <lkp@...el.com>
To: Dan Williams <dan.j.williams@...el.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
Ammar Faizi <ammarfaizi2@...weeb.org>,
GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Memory Management List <linux-mm@...ck.org>
Subject: [ammarfaizi2-block:akpm/mm/mm-unstable 146/162]
include/linux/memremap.h:258:9: error: expression which evaluates to zero
treated as a null pointer constant of type 'struct folio *'
tree: https://github.com/ammarfaizi2/linux-block akpm/mm/mm-unstable
head: fc93ddbd10610f8f621fba75c1a0f110f543a7bd
commit: e634e7e18f3bf0b30b8f9f16434929d950b7ac33 [146/162] mm/memremap: Introduce pgmap_request_folio() using pgmap offsets
config: s390-randconfig-r044-20221019
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://github.com/ammarfaizi2/linux-block/commit/e634e7e18f3bf0b30b8f9f16434929d950b7ac33
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block akpm/mm/mm-unstable
git checkout e634e7e18f3bf0b30b8f9f16434929d950b7ac33
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash lib/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from lib/test_bitops.c:9:
In file included from include/linux/module.h:19:
In file included from include/linux/elf.h:6:
In file included from arch/s390/include/asm/elf.h:173:
In file included from arch/s390/include/asm/mmu_context.h:11:
In file included from arch/s390/include/asm/pgalloc.h:18:
In file included from include/linux/mm.h:31:
>> include/linux/memremap.h:258:9: error: expression which evaluates to zero treated as a null pointer constant of type 'struct folio *' [-Werror,-Wnon-literal-null-conversion]
return false;
^~~~~
1 error generated.
vim +258 include/linux/memremap.h
8e37d00a850160 Christoph Hellwig 2017-12-29 254
e634e7e18f3bf0 Dan Williams 2022-10-20 255 static inline struct folio *pgmap_request_folio(struct dev_pagemap *pgmap,
e634e7e18f3bf0 Dan Williams 2022-10-20 256 pgoff_t pgmap_offset, int order)
e8ca415e7cc5d6 Dan Williams 2022-10-14 257 {
e8ca415e7cc5d6 Dan Williams 2022-10-14 @258 return false;
e8ca415e7cc5d6 Dan Williams 2022-10-14 259 }
e8ca415e7cc5d6 Dan Williams 2022-10-14 260
:::::: The code at line 258 was first introduced by commit
:::::: e8ca415e7cc5d6c4d431b3dda58877ff24b021ee fsdax: introduce pgmap_request_folios()
:::::: TO: Dan Williams <dan.j.williams@...el.com>
:::::: CC: Andrew Morton <akpm@...ux-foundation.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (140897 bytes)
Powered by blists - more mailing lists