All of lore.kernel.org
 help / color / mirror / Atom feed
* [s390:zlib 2/5] include/asm-generic/bug.h:199:2: error: implicit declaration of function 'no_printk'; did you mean '__printf'?
@ 2019-08-08  2:41 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-08-08  2:41 UTC (permalink / raw)
  To: Mikhail Zaslonko; +Cc: kbuild-all, linux-s390, Heiko Carstens

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

tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/s390/linux.git zlib
head:   cd020aae5488f8576ee8c289b7c32fb4a05f60bb
commit: 01d3bf07477782187e2fbc217977e405b5faefa4 [2/5] Add s390 hardware support for kernel zlib_inflate
config: arm-allnoconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 01d3bf07477782187e2fbc217977e405b5faefa4
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm 

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

All errors (new ones prefixed by >>):

   In file included from arch/arm/include/asm/bug.h:60:0,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:12,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/arm/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from include/linux/seqlock.h:36,
                    from include/linux/time.h:6,
                    from include/linux/stat.h:19,
                    from include/linux/module.h:10,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/infutil.h:15,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/inflate.c:16,
                    from arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:12,
                    from arch/arm/boot/compressed/decompress.c:38:
   include/linux/thread_info.h: In function 'copy_overflow':
>> include/asm-generic/bug.h:199:2: error: implicit declaration of function 'no_printk'; did you mean '__printf'? [-Werror=implicit-function-declaration]
     no_printk(format);      \
     ^
   include/linux/thread_info.h:134:2: note: in expansion of macro 'WARN'
     WARN(1, "Buffer overflow detected (%d < %lu)!\n", size, count);
     ^~~~
   In file included from include/linux/spinlock.h:58:0,
                    from include/linux/seqlock.h:36,
                    from include/linux/time.h:6,
                    from include/linux/stat.h:19,
                    from include/linux/module.h:10,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/infutil.h:15,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/inflate.c:16,
                    from arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:12,
                    from arch/arm/boot/compressed/decompress.c:38:
   include/linux/bottom_half.h: In function 'local_bh_disable':
   include/linux/bottom_half.h:19:24: error: '_THIS_IP_' undeclared (first use in this function)
     __local_bh_disable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
                           ^~~~~~~~~
   include/linux/bottom_half.h:19:24: note: each undeclared identifier is reported only once for each function it appears in
   include/linux/bottom_half.h: In function 'local_bh_enable':
   include/linux/bottom_half.h:32:23: error: '_THIS_IP_' undeclared (first use in this function)
     __local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
                          ^~~~~~~~~
   In file included from include/linux/spinlock.h:318:0,
                    from include/linux/seqlock.h:36,
                    from include/linux/time.h:6,
                    from include/linux/stat.h:19,
                    from include/linux/module.h:10,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/infutil.h:15,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/inflate.c:16,
                    from arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:12,
                    from arch/arm/boot/compressed/decompress.c:38:
   include/linux/spinlock.h: In function 'spin_lock_bh':
   include/linux/spinlock_api_up.h:34:30: error: '_THIS_IP_' undeclared (first use in this function)
      do { __local_bh_disable_ip(_THIS_IP_, SOFTIRQ_LOCK_OFFSET); ___LOCK(lock); } while (0)
                                 ^
   include/linux/spinlock_api_up.h:62:35: note: in expansion of macro '__LOCK_BH'
    #define _raw_spin_lock_bh(lock)   __LOCK_BH(lock)
                                      ^~~~~~~~~
   include/linux/spinlock.h:281:33: note: in expansion of macro '_raw_spin_lock_bh'
    #define raw_spin_lock_bh(lock)  _raw_spin_lock_bh(lock)
                                    ^~~~~~~~~~~~~~~~~
   include/linux/spinlock.h:343:2: note: in expansion of macro 'raw_spin_lock_bh'
     raw_spin_lock_bh(&lock->rlock);
     ^~~~~~~~~~~~~~~~
   include/linux/spinlock.h: In function 'spin_unlock_bh':
   include/linux/spinlock_api_up.h:49:29: error: '_THIS_IP_' undeclared (first use in this function)
      do { __local_bh_enable_ip(_THIS_IP_, SOFTIRQ_LOCK_OFFSET); \
                                ^
   include/linux/spinlock_api_up.h:78:36: note: in expansion of macro '__UNLOCK_BH'
    #define _raw_spin_unlock_bh(lock)  __UNLOCK_BH(lock)
                                       ^~~~~~~~~~~
   include/linux/spinlock.h:290:34: note: in expansion of macro '_raw_spin_unlock_bh'
    #define raw_spin_unlock_bh(lock) _raw_spin_unlock_bh(lock)
                                     ^~~~~~~~~~~~~~~~~~~
   include/linux/spinlock.h:383:2: note: in expansion of macro 'raw_spin_unlock_bh'
     raw_spin_unlock_bh(&lock->rlock);
     ^~~~~~~~~~~~~~~~~~
   In file included from <command-line>:0:0:
   include/linux/spinlock.h: In function 'spin_trylock_bh':
   include/linux/spinlock_api_up.h:34:30: error: '_THIS_IP_' undeclared (first use in this function)
      do { __local_bh_disable_ip(_THIS_IP_, SOFTIRQ_LOCK_OFFSET); ___LOCK(lock); } while (0)
                                 ^
   include/linux/compiler_types.h:45:28: note: in definition of macro '__cond_lock'
    # define __cond_lock(x,c) (c)
                               ^
   include/linux/spinlock_api_up.h:74:40: note: in expansion of macro '__LOCK_BH'
    #define _raw_spin_trylock_bh(lock)  ({ __LOCK_BH(lock); 1; })
                                           ^~~~~~~~~
   include/linux/spinlock.h:293:20: note: in expansion of macro '_raw_spin_trylock_bh'
     __cond_lock(lock, _raw_spin_trylock_bh(lock))
                       ^~~~~~~~~~~~~~~~~~~~
   include/linux/spinlock.h:398:9: note: in expansion of macro 'raw_spin_trylock_bh'
     return raw_spin_trylock_bh(&lock->rlock);
            ^~~~~~~~~~~~~~~~~~~
   In file included from include/linux/log2.h:12:0,
                    from include/asm-generic/div64.h:53,
                    from arch/arm/include/asm/div64.h:127,
                    from include/linux/math64.h:6,
                    from include/linux/time64.h:5,
                    from include/linux/restart_block.h:10,
                    from include/linux/thread_info.h:13,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/arm/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from include/linux/seqlock.h:36,
                    from include/linux/time.h:6,
                    from include/linux/stat.h:19,
                    from include/linux/module.h:10,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/infutil.h:15,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/inflate.c:16,
                    from arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:12,
                    from arch/arm/boot/compressed/decompress.c:38:
   include/linux/bitmap.h: In function 'bitmap_zero':
   include/linux/bitops.h:8:27: error: implicit declaration of function 'DIV_ROUND_UP'; did you mean 'DIV64_U64_ROUND_UP'? [-Werror=implicit-function-declaration]
    #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(long))
                              ^
   include/linux/bitmap.h:217:21: note: in expansion of macro 'BITS_TO_LONGS'
     unsigned int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long);
--
     container_of(ptr, type, member)
                       ^~~~
   include/linux/mmzone.h:141:9: note: in expansion of macro 'list_first_entry_or_null'
     return list_first_entry_or_null(&area->free_list[migratetype],
            ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/srcu.h:47:0,
                    from include/linux/notifier.h:16,
                    from include/linux/memory_hotplug.h:7,
                    from include/linux/mmzone.h:802,
                    from include/linux/gfp.h:6,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:13,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/infutil.h:15,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/inflate.c:16,
                    from arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:12,
                    from arch/arm/boot/compressed/decompress.c:38:
   include/linux/srcutiny.h: In function 'srcu_torture_stats_print':
   include/linux/srcutiny.h:84:2: error: implicit declaration of function 'pr_alert' [-Werror=implicit-function-declaration]
     pr_alert("%s%s Tiny SRCU per-CPU(idx=%d): (%hd,%hd)\n",
     ^~~~~~~~
   In file included from include/linux/mmzone.h:802:0,
                    from include/linux/gfp.h:6,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:13,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/infutil.h:15,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/inflate.c:16,
                    from arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:12,
                    from arch/arm/boot/compressed/decompress.c:38:
   include/linux/memory_hotplug.h: In function 'mhp_notimplemented':
   include/linux/memory_hotplug.h:268:2: error: implicit declaration of function 'printk'; did you mean '__printf'? [-Werror=implicit-function-declaration]
     printk(KERN_WARNING "%s() called, with CONFIG_MEMORY_HOTPLUG disabled\n", func);
     ^~~~~~
     __printf
   include/linux/memory_hotplug.h:268:9: error: 'KERN_WARNING' undeclared (first use in this function); did you mean 'WARN_TAINT'?
     printk(KERN_WARNING "%s() called, with CONFIG_MEMORY_HOTPLUG disabled\n", func);
            ^~~~~~~~~~~~
            WARN_TAINT
   include/linux/memory_hotplug.h:268:22: error: expected ')' before string constant
     printk(KERN_WARNING "%s() called, with CONFIG_MEMORY_HOTPLUG disabled\n", func);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/memory_hotplug.h:269:2: error: implicit declaration of function 'dump_stack'; did you mean 'dump_vma'? [-Werror=implicit-function-declaration]
     dump_stack();
     ^~~~~~~~~~
     dump_vma
   In file included from include/linux/gfp.h:6:0,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:13,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/infutil.h:15,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/inflate.c:16,
                    from arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:12,
                    from arch/arm/boot/compressed/decompress.c:38:
   include/linux/mmzone.h: In function 'lruvec_pgdat':
   include/linux/mmzone.h:829:30: error: expected expression before 'struct'
     return container_of(lruvec, struct pglist_data, lruvec);
                                 ^~~~~~
   In file included from include/linux/percpu.h:9:0,
                    from include/linux/topology.h:34,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:13,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/infutil.h:15,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/inflate.c:16,
                    from arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:12,
                    from arch/arm/boot/compressed/decompress.c:38:
   include/linux/printk.h: At top level:
   include/linux/printk.h:215:5: error: conflicting types for 'printk'
    int printk(const char *s, ...)
        ^~~~~~
   include/linux/printk.h:216:1: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
    {
    ^
   In file included from include/linux/mmzone.h:802:0,
                    from include/linux/gfp.h:6,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:13,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/infutil.h:15,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/inflate.c:16,
                    from arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:12,
                    from arch/arm/boot/compressed/decompress.c:38:
   include/linux/memory_hotplug.h:268:2: note: previous implicit declaration of 'printk' was here
     printk(KERN_WARNING "%s() called, with CONFIG_MEMORY_HOTPLUG disabled\n", func);
     ^~~~~~
   In file included from include/linux/percpu.h:9:0,
                    from include/linux/topology.h:34,
                    from include/linux/gfp.h:9,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:13,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/infutil.h:15,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/inflate.c:16,
                    from arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:12,
                    from arch/arm/boot/compressed/decompress.c:38:
   include/linux/printk.h:268:20: warning: conflicting types for 'dump_stack'
    static inline void dump_stack(void)
                       ^~~~~~~~~~
>> include/linux/printk.h:268:20: error: static declaration of 'dump_stack' follows non-static declaration
   In file included from include/linux/mmzone.h:802:0,
                    from include/linux/gfp.h:6,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:13,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/infutil.h:15,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/inflate.c:16,
                    from arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:12,
                    from arch/arm/boot/compressed/decompress.c:38:
   include/linux/memory_hotplug.h:269:2: note: previous implicit declaration of 'dump_stack' was here
     dump_stack();
     ^~~~~~~~~~
   In file included from include/linux/radix-tree.h:18:0,
                    from include/linux/idr.h:15,
                    from include/linux/kernfs.h:13,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/module.h:17,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/infutil.h:15,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/inflate.c:16,
                    from arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:12,
                    from arch/arm/boot/compressed/decompress.c:38:
   include/linux/xarray.h:1100:17: error: variably modified 'tags' at file scope
      unsigned long tags[XA_MAX_MARKS][XA_MARK_LONGS];
                    ^~~~
   include/linux/xarray.h:1101:17: error: variably modified 'marks' at file scope
      unsigned long marks[XA_MAX_MARKS][XA_MARK_LONGS];
                    ^~~~~
   In file included from include/linux/module.h:17:0,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/infutil.h:15,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/inflate.c:16,
                    from arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:12,
                    from arch/arm/boot/compressed/decompress.c:38:
   include/linux/kobject.h: In function 'to_kset':
   include/linux/kobject.h:209:35: error: expected expression before 'struct'
     return kobj ? container_of(kobj, struct kset, kobj) : NULL;
                                      ^~~~~~
   In file included from include/linux/module.h:21:0,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/infutil.h:15,
                    from arch/arm/boot/compressed/../../../../lib/zlib_inflate/inflate.c:16,
                    from arch/arm/boot/compressed/../../../../lib/decompress_inflate.c:12,
                    from arch/arm/boot/compressed/decompress.c:38:
   include/linux/rbtree_latch.h: In function '__lt_from_rb':
   include/linux/rbtree_latch.h:72:28: error: expected expression before 'struct'
     return container_of(node, struct latch_tree_node, node[idx]);
                               ^~~~~~
   cc1: some warnings being treated as errors

vim +199 include/asm-generic/bug.h

b607e70ec6a982 Josh Triplett 2014-04-07  195  
b607e70ec6a982 Josh Triplett 2014-04-07  196  #ifndef WARN
b607e70ec6a982 Josh Triplett 2014-04-07  197  #define WARN(condition, format...) ({					\
b607e70ec6a982 Josh Triplett 2014-04-07  198  	int __ret_warn_on = !!(condition);				\
4e50ebde32bed6 Josh Triplett 2014-04-07 @199  	no_printk(format);						\
b607e70ec6a982 Josh Triplett 2014-04-07  200  	unlikely(__ret_warn_on);					\
b607e70ec6a982 Josh Triplett 2014-04-07  201  })
b607e70ec6a982 Josh Triplett 2014-04-07  202  #endif
b607e70ec6a982 Josh Triplett 2014-04-07  203  

:::::: The code at line 199 was first introduced by commit
:::::: 4e50ebde32bed67a9aec8c239bbd89e5d0b8727b bug: when !CONFIG_BUG, make WARN call no_printk to check format and args

:::::: TO: Josh Triplett <josh@joshtriplett.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

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

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

only message in thread, other threads:[~2019-08-08  2:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-08  2:41 [s390:zlib 2/5] include/asm-generic/bug.h:199:2: error: implicit declaration of function 'no_printk'; did you mean '__printf'? kbuild 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.