lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 12 Nov 2021 07:08:19 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mark Rutland <mark.rutland@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: lib/atomic64.c:82:5: warning: no previous prototype for
 'generic_atomic64_and_return'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   debe436e77c72fcee804fb867f275e6d31aa999c
commit: 1bdadf46eff6804ace5fa46b6856da4799f12b5c locking/atomic: atomic64: support ARCH_ATOMIC
date:   6 months ago
config: arc-randconfig-r032-20211109 (attached as .config)
compiler: arc-elf-gcc (GCC) 11.2.0
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/torvalds/linux.git/commit/?id=1bdadf46eff6804ace5fa46b6856da4799f12b5c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 1bdadf46eff6804ace5fa46b6856da4799f12b5c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

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

All warnings (new ones prefixed by >>):

>> lib/atomic64.c:82:5: warning: no previous prototype for 'generic_atomic64_and_return' [-Wmissing-prototypes]
      82 | s64 generic_atomic64_##op##_return(s64 a, atomic64_t *v)                \
         |     ^~~~~~~~~~~~~~~~~
   lib/atomic64.c:121:9: note: in expansion of macro 'ATOMIC64_OP_RETURN'
     121 |         ATOMIC64_OP_RETURN(op, c_op)                                    \
         |         ^~~~~~~~~~~~~~~~~~
   lib/atomic64.c:124:1: note: in expansion of macro 'ATOMIC64_OPS'
     124 | ATOMIC64_OPS(and, &=)
         | ^~~~~~~~~~~~
>> lib/atomic64.c:82:5: warning: no previous prototype for 'generic_atomic64_or_return' [-Wmissing-prototypes]
      82 | s64 generic_atomic64_##op##_return(s64 a, atomic64_t *v)                \
         |     ^~~~~~~~~~~~~~~~~
   lib/atomic64.c:121:9: note: in expansion of macro 'ATOMIC64_OP_RETURN'
     121 |         ATOMIC64_OP_RETURN(op, c_op)                                    \
         |         ^~~~~~~~~~~~~~~~~~
   lib/atomic64.c:125:1: note: in expansion of macro 'ATOMIC64_OPS'
     125 | ATOMIC64_OPS(or, |=)
         | ^~~~~~~~~~~~
>> lib/atomic64.c:82:5: warning: no previous prototype for 'generic_atomic64_xor_return' [-Wmissing-prototypes]
      82 | s64 generic_atomic64_##op##_return(s64 a, atomic64_t *v)                \
         |     ^~~~~~~~~~~~~~~~~
   lib/atomic64.c:121:9: note: in expansion of macro 'ATOMIC64_OP_RETURN'
     121 |         ATOMIC64_OP_RETURN(op, c_op)                                    \
         |         ^~~~~~~~~~~~~~~~~~
   lib/atomic64.c:126:1: note: in expansion of macro 'ATOMIC64_OPS'
     126 | ATOMIC64_OPS(xor, ^=)
         | ^~~~~~~~~~~~


vim +/generic_atomic64_and_return +82 lib/atomic64.c

    80	
    81	#define ATOMIC64_OP_RETURN(op, c_op)					\
  > 82	s64 generic_atomic64_##op##_return(s64 a, atomic64_t *v)		\
    83	{									\
    84		unsigned long flags;						\
    85		raw_spinlock_t *lock = lock_addr(v);				\
    86		s64 val;							\
    87										\
    88		raw_spin_lock_irqsave(lock, flags);				\
    89		val = (v->counter c_op a);					\
    90		raw_spin_unlock_irqrestore(lock, flags);			\
    91		return val;							\
    92	}									\
    93	EXPORT_SYMBOL(generic_atomic64_##op##_return);
    94	

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

Download attachment ".config.gz" of type "application/gzip" (35264 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ