Re: [PATCH] asm-generic/io.h: remove unnecessary include of linux/vmalloc.h

From: kbuild test robot
Date: Thu Sep 07 2017 - 15:32:19 EST


Hi Tobias,

[auto build test WARNING on v4.13]
[also build test WARNING on next-20170907]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Tobias-Klauser/asm-generic-io-h-remove-unnecessary-include-of-linux-vmalloc-h/20170908-012111
config: openrisc-or1ksim_defconfig (attached as .config)
compiler: or1k-linux-gcc (GCC) 5.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=openrisc

All warnings (new ones prefixed by >>):

In file included from arch/openrisc/include/asm/io.h:33:0,
from include/linux/io.h:25,
from drivers/tty/serial/earlycon.c:19:
>> arch/openrisc/include/asm/pgtable.h:424:2: warning: 'struct vm_area_struct' declared inside parameter list
unsigned long address, pte_t *pte)
^
>> arch/openrisc/include/asm/pgtable.h:424:2: warning: its scope is only this definition or declaration, which is probably not what you want

vim +424 arch/openrisc/include/asm/pgtable.h

61e85e36 Jonas Bonn 2011-06-04 416
61e85e36 Jonas Bonn 2011-06-04 417 /*
61e85e36 Jonas Bonn 2011-06-04 418 * or32 doesn't have any external MMU info: the kernel page
61e85e36 Jonas Bonn 2011-06-04 419 * tables contain all the necessary information.
61e85e36 Jonas Bonn 2011-06-04 420 *
61e85e36 Jonas Bonn 2011-06-04 421 * Actually I am not sure on what this could be used for.
61e85e36 Jonas Bonn 2011-06-04 422 */
61e85e36 Jonas Bonn 2011-06-04 423 static inline void update_mmu_cache(struct vm_area_struct *vma,
61e85e36 Jonas Bonn 2011-06-04 @424 unsigned long address, pte_t *pte)
61e85e36 Jonas Bonn 2011-06-04 425 {
61e85e36 Jonas Bonn 2011-06-04 426 }
61e85e36 Jonas Bonn 2011-06-04 427

:::::: The code at line 424 was first introduced by commit
:::::: 61e85e367535a7b6385b404bef93928768140f96 OpenRISC: Memory management

:::::: TO: Jonas Bonn <jonas@xxxxxxxxxxxx>
:::::: CC: Jonas Bonn <jonas@xxxxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip