public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [broonie-ci:mm-generic-shadow-stack-guard 2/4] arch/mips/mm/mmap.c:100:15: error: conflicting types for 'arch_get_unmapped_area'
@ 2024-09-03  6:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-03  6:10 UTC (permalink / raw)
  To: Mark Brown; +Cc: llvm, oe-kbuild-all

Hi Mark,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git mm-generic-shadow-stack-guard
head:   cb02398ba093f1730eca10afbb4baea7af28b1e5
commit: e20e42643b0c31b61ae8f48fa1ec3ecabcac1b4b [2/4] mm: Make arch_get_unmapped_area() take vm_flags by default
config: mips-db1xxx_defconfig (https://download.01.org/0day-ci/archive/20240903/202409031447.Lquudk3F-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project dc19b59ea2502193c0e7bc16bb7d711c8053edcf)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240903/202409031447.Lquudk3F-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409031447.Lquudk3F-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/mips/mm/mmap.c:12:
   In file included from include/linux/mm.h:2228:
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> arch/mips/mm/mmap.c:100:15: error: conflicting types for 'arch_get_unmapped_area'
     100 | unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr0,
         |               ^
   include/linux/sched/mm.h:184:1: note: previous declaration is here
     184 | arch_get_unmapped_area(struct file *filp, unsigned long addr,
         | ^
   1 warning and 1 error generated.


vim +/arch_get_unmapped_area +100 arch/mips/mm/mmap.c

d0be89f6c2570a6 Jian Peng      2011-05-17   99  
d0be89f6c2570a6 Jian Peng      2011-05-17 @100  unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr0,
d0be89f6c2570a6 Jian Peng      2011-05-17  101  	unsigned long len, unsigned long pgoff, unsigned long flags)
d0be89f6c2570a6 Jian Peng      2011-05-17  102  {
16650107579aed8 Kevin Cernekee 2011-06-18  103  	return arch_get_unmapped_area_common(filp,
d0be89f6c2570a6 Jian Peng      2011-05-17  104  			addr0, len, pgoff, flags, UP);
d0be89f6c2570a6 Jian Peng      2011-05-17  105  }
d0be89f6c2570a6 Jian Peng      2011-05-17  106  

:::::: The code at line 100 was first introduced by commit
:::::: d0be89f6c2570a63ac44ccdd12473a54243cd296 MIPS: topdown mmap support

:::::: TO: Jian Peng <jipeng2005@gmail.com>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-09-03  6:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-03  6:10 [broonie-ci:mm-generic-shadow-stack-guard 2/4] arch/mips/mm/mmap.c:100:15: error: conflicting types for 'arch_get_unmapped_area' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox