tree:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.9
head: d5ff5fb977f0c3d07bdb9f87b490c70481c8666f
commit: da6690767cbd344998f36081815c85f3d467e78c [11/30] regulator: consumer: Supply
missing prototypes for 3 core functions
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
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
git checkout da6690767cbd344998f36081815c85f3d467e78c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from ./arch/s390/include/generated/asm/cacheflush.h:1,
from drivers/media/platform/omap3isp/isp.c:42:
include/asm-generic/cacheflush.h:16:42: warning: 'struct mm_struct' declared
inside parameter list will not be visible outside of this definition or declaration
16 | static inline void flush_cache_mm(struct mm_struct *mm)
| ^~~~~~~~~
include/asm-generic/cacheflush.h:22:46: warning: 'struct mm_struct' declared
inside parameter list will not be visible outside of this definition or declaration
22 | static inline void flush_cache_dup_mm(struct mm_struct *mm)
| ^~~~~~~~~
include/asm-generic/cacheflush.h:28:45: warning: 'struct vm_area_struct'
declared inside parameter list will not be visible outside of this definition or
declaration
28 | static inline void flush_cache_range(struct vm_area_struct *vma,
| ^~~~~~~~~~~~~~
include/asm-generic/cacheflush.h:36:44: warning: 'struct vm_area_struct'
declared inside parameter list will not be visible outside of this definition or
declaration
36 | static inline void flush_cache_page(struct vm_area_struct *vma,
| ^~~~~~~~~~~~~~
include/asm-generic/cacheflush.h:44:45: warning: 'struct page' declared inside
parameter list will not be visible outside of this definition or declaration
44 | static inline void flush_dcache_page(struct page *page)
| ^~~~
include/asm-generic/cacheflush.h:52:50: warning: 'struct address_space'
declared inside parameter list will not be visible outside of this definition or
declaration
52 | static inline void flush_dcache_mmap_lock(struct address_space *mapping)
| ^~~~~~~~~~~~~
include/asm-generic/cacheflush.h:58:52: warning: 'struct address_space'
declared inside parameter list will not be visible outside of this definition or
declaration
58 | static inline void flush_dcache_mmap_unlock(struct address_space *mapping)
| ^~~~~~~~~~~~~
include/asm-generic/cacheflush.h:75:17: warning: 'struct page' declared inside
parameter list will not be visible outside of this definition or declaration
75 | struct page *page)
| ^~~~
include/asm-generic/cacheflush.h:74:45: warning: 'struct vm_area_struct'
declared inside parameter list will not be visible outside of this definition or
declaration
74 | static inline void flush_icache_page(struct vm_area_struct *vma,
| ^~~~~~~~~~~~~~
include/asm-generic/cacheflush.h:82:16: warning: 'struct page' declared inside
parameter list will not be visible outside of this definition or declaration
82 | struct page *page,
| ^~~~
include/asm-generic/cacheflush.h:81:50: warning: 'struct vm_area_struct'
declared inside parameter list will not be visible outside of this definition or
declaration
81 | static inline void flush_icache_user_page(struct vm_area_struct *vma,
| ^~~~~~~~~~~~~~
In file included from include/linux/pagemap.h:11,
from include/linux/blkdev.h:16,
from include/linux/blk-cgroup.h:23,
from include/linux/writeback.h:14,
from include/linux/memcontrol.h:22,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from include/linux/regulator/consumer.h:35,
from drivers/media/platform/omap3isp/isp.c:56:
include/linux/highmem.h: In function 'zero_user_segments':
> include/linux/highmem.h:302:20: error: passing argument 1 of
'flush_dcache_page' from incompatible pointer type
[-Werror=incompatible-pointer-types]
302 | flush_dcache_page(page);
| ^~~~
| |
| struct page *
In file included from ./arch/s390/include/generated/asm/cacheflush.h:1,
from drivers/media/platform/omap3isp/isp.c:42:
include/asm-generic/cacheflush.h:44:51: note: expected 'struct page *' but
argument is of type 'struct page *'
44 | static inline void flush_dcache_page(struct page *page)
| ~~~~~~~~~~~~~^~~~
cc1: some warnings being treated as errors
vim +/flush_dcache_page +302 include/linux/highmem.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 286
eebd2aa355692a Christoph Lameter 2008-02-04 287 static inline void
zero_user_segments(struct page *page,
eebd2aa355692a Christoph Lameter 2008-02-04 288 unsigned start1, unsigned end1,
eebd2aa355692a Christoph Lameter 2008-02-04 289 unsigned start2, unsigned end2)
eebd2aa355692a Christoph Lameter 2008-02-04 290 {
1ec9c5ddc17aa3 Cong Wang 2011-11-25 291 void *kaddr = kmap_atomic(page);
eebd2aa355692a Christoph Lameter 2008-02-04 292
eebd2aa355692a Christoph Lameter 2008-02-04 293 BUG_ON(end1 > PAGE_SIZE || end2 >
PAGE_SIZE);
eebd2aa355692a Christoph Lameter 2008-02-04 294
eebd2aa355692a Christoph Lameter 2008-02-04 295 if (end1 > start1)
eebd2aa355692a Christoph Lameter 2008-02-04 296 memset(kaddr + start1, 0, end1 -
start1);
eebd2aa355692a Christoph Lameter 2008-02-04 297
eebd2aa355692a Christoph Lameter 2008-02-04 298 if (end2 > start2)
eebd2aa355692a Christoph Lameter 2008-02-04 299 memset(kaddr + start2, 0, end2 -
start2);
eebd2aa355692a Christoph Lameter 2008-02-04 300
1ec9c5ddc17aa3 Cong Wang 2011-11-25 301 kunmap_atomic(kaddr);
eebd2aa355692a Christoph Lameter 2008-02-04 @302 flush_dcache_page(page);
eebd2aa355692a Christoph Lameter 2008-02-04 303 }
eebd2aa355692a Christoph Lameter 2008-02-04 304
:::::: The code at line 302 was first introduced by commit
:::::: eebd2aa355692afaf9906f62118620f1a1c19dbb Pagecache zeroing: zero_user_segment,
zero_user_segments and zero_user
:::::: TO: Christoph Lameter <clameter(a)sgi.com>
:::::: CC: Linus Torvalds <torvalds(a)woody.linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org