public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [mingo-tip:master 1112/2335] mm/list_lru.c:571:5: error: conflicting types for '__list_lru_init'
@ 2022-03-21  4:03 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-21  4:03 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: llvm, kbuild-all, linux-kernel

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head:   85293bf3fca6d85608cff1447ce3097583f15fab
commit: 593cd827c40bc5cb693ee02dbfa8ddb5b14af2f3 [1112/2335] headers/deps: Add header dependencies to .c files: <linux/list_lru_api.h>
config: i386-randconfig-a016-20220314 (https://download.01.org/0day-ci/archive/20220321/202203211142.WtwmLLlS-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 85e9b2687a13d1908aa86d1b89c5ce398a06cd39)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=593cd827c40bc5cb693ee02dbfa8ddb5b14af2f3
        git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
        git fetch --no-tags mingo-tip master
        git checkout 593cd827c40bc5cb693ee02dbfa8ddb5b14af2f3
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

Note: the mingo-tip/master HEAD 85293bf3fca6d85608cff1447ce3097583f15fab builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   In file included from mm/list_lru.c:8:
   In file included from include/linux/list_lru_api.h:1:
   include/linux/list_lru.h:42:2: error: unknown type name 'spinlock_t'
           spinlock_t              lock;
           ^
   include/linux/list_lru.h:63:14: warning: declaration of 'struct lock_class_key' will not be visible outside of this function [-Wvisibility]
                       struct lock_class_key *key, struct shrinker *shrinker);
                              ^
   include/linux/list_lru.h:142:30: error: unknown type name 'spinlock_t'
                   struct list_lru_one *list, spinlock_t *lock, void *cb_arg);
                                              ^
>> mm/list_lru.c:571:5: error: conflicting types for '__list_lru_init'
   int __list_lru_init(struct list_lru *lru, bool memcg_aware,
       ^
   include/linux/list_lru.h:62:5: note: previous declaration is here
   int __list_lru_init(struct list_lru *lru, bool memcg_aware,
       ^
   1 warning and 3 errors generated.


vim +/__list_lru_init +571 mm/list_lru.c

60d3fd32a7a9da Vladimir Davydov 2015-02-12  570  
60d3fd32a7a9da Vladimir Davydov 2015-02-12 @571  int __list_lru_init(struct list_lru *lru, bool memcg_aware,
c92e8e10cafeaa Kirill Tkhai     2018-08-17  572  		    struct lock_class_key *key, struct shrinker *shrinker)
a38e40824844a5 Dave Chinner     2013-08-28  573  {
3b1d58a4c96799 Dave Chinner     2013-08-28  574  	int i;
60d3fd32a7a9da Vladimir Davydov 2015-02-12  575  	int err = -ENOMEM;
60d3fd32a7a9da Vladimir Davydov 2015-02-12  576  

:::::: The code at line 571 was first introduced by commit
:::::: 60d3fd32a7a9da4c8c93a9f89cfda22a0b4c65ce list_lru: introduce per-memcg lists

:::::: TO: Vladimir Davydov <vdavydov@parallels.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-03-21  4:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-21  4:03 [mingo-tip:master 1112/2335] mm/list_lru.c:571:5: error: conflicting types for '__list_lru_init' 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