All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android12-5.10 3/4] mm/kasan/../slab.h:247:38: error: parameter 3 ('alloc') has incomplete type
@ 2021-02-22 22:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-22 22:48 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2965 bytes --]

tree:   https://android.googlesource.com/kernel/common android12-5.10
head:   0d61a651e4dd3c61d1658cc92e0b0450c8374738
commit: ee8d2c7884a001cddc6c2a6baa070c3b3c6c389b [3/4] ANDROID: mm: add get_each_object_track function
config: x86_64-randconfig-c002-20210222 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        git remote add android-common https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android12-5.10
        git checkout ee8d2c7884a001cddc6c2a6baa070c3b3c6c389b
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

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

All error/warnings (new ones prefixed by >>):

   In file included from mm/kasan/common.c:31:
>> mm/kasan/../slab.h:249:16: warning: 'struct track' declared inside parameter list will not be visible outside of this definition or declaration
     249 |   const struct track *, void *), void *private)
         |                ^~~~~
>> mm/kasan/../slab.h:247:27: warning: 'enum track_item' declared inside parameter list will not be visible outside of this definition or declaration
     247 |   struct page *page, enum track_item alloc,
         |                           ^~~~~~~~~~
>> mm/kasan/../slab.h:247:38: error: parameter 3 ('alloc') has incomplete type
     247 |   struct page *page, enum track_item alloc,
         |                      ~~~~~~~~~~~~~~~~^~~~~
>> mm/kasan/../slab.h:246:29: error: function declaration isn't a prototype [-Werror=strict-prototypes]
     246 | static inline unsigned long get_each_object_track(struct kmem_cache *s,
         |                             ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +247 mm/kasan/../slab.h

   230	
   231	#ifdef CONFIG_SLUB_DEBUG
   232	#ifdef CONFIG_SLUB_DEBUG_ON
   233	DECLARE_STATIC_KEY_TRUE(slub_debug_enabled);
   234	#else
   235	DECLARE_STATIC_KEY_FALSE(slub_debug_enabled);
   236	#endif
   237	extern void print_tracking(struct kmem_cache *s, void *object);
   238	extern unsigned long get_each_object_track(struct kmem_cache *s,
   239			struct page *page, enum track_item alloc,
   240			int (*fn)(const struct kmem_cache *, const void *,
   241			const struct track *, void *), void *private);
   242	#else
   243	static inline void print_tracking(struct kmem_cache *s, void *object)
   244	{
   245	}
 > 246	static inline unsigned long get_each_object_track(struct kmem_cache *s,
 > 247			struct page *page, enum track_item alloc,
   248			int (*fn)(const struct kmem_cache *, const void *,
 > 249			const struct track *, void *), void *private)
   250	{
   251		return 0;
   252	}
   253	#endif
   254	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32681 bytes --]

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

only message in thread, other threads:[~2021-02-22 22:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-22 22:48 [android-common:android12-5.10 3/4] mm/kasan/../slab.h:247:38: error: parameter 3 ('alloc') has incomplete type kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.