All of lore.kernel.org
 help / color / mirror / Atom feed
* [mark-rutland:atomics/arch-atomic 12/25] arch/alpha/include/asm/local.h:57:27: error: implicit declaration of function 'xchg_local'; did you mean 'cmpxchg_local'?
@ 2021-04-27 21:04 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-27 21:04 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git atomics/arch-atomic
head:   a01b575b1e6ed7458c510cc9f67ca8f48dadb1e4
commit: 5331371582b8595421446804dd9e7154e476a3fc [12/25] locking/atomic: alpha: move to the arch_atomic API
config: alpha-randconfig-r004-20210426 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.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/mark/linux.git/commit/?id=5331371582b8595421446804dd9e7154e476a3fc
        git remote add mark-rutland https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark-rutland atomics/arch-atomic
        git checkout 5331371582b8595421446804dd9e7154e476a3fc
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=alpha 

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

All errors (new ones prefixed by >>):

   In file included from include/asm-generic/local64.h:22,
                    from ./arch/alpha/include/generated/asm/local64.h:1,
                    from include/linux/u64_stats_sync.h:75,
                    from include/linux/cgroup-defs.h:20,
                    from include/linux/cgroup.h:28,
                    from include/linux/hugetlb.h:9,
                    from kernel/events/core.c:31:
   kernel/events/core.c: In function '__perf_event_sync_stat':
>> arch/alpha/include/asm/local.h:57:27: error: implicit declaration of function 'xchg_local'; did you mean 'cmpxchg_local'? [-Werror=implicit-function-declaration]
      57 | #define local_xchg(l, n) (xchg_local(&((l)->a.counter), (n)))
         |                           ^~~~~~~~~~
   include/asm-generic/local64.h:46:28: note: in expansion of macro 'local_xchg'
      46 | #define local64_xchg(l, n) local_xchg((&(l)->a), (n))
         |                            ^~~~~~~~~~
   kernel/events/core.c:3328:10: note: in expansion of macro 'local64_xchg'
    3328 |  value = local64_xchg(&event->count, value);
         |          ^~~~~~~~~~~~
   kernel/events/core.c: At top level:
   kernel/events/core.c:6557:6: warning: no previous prototype for 'perf_pmu_snapshot_aux' [-Wmissing-prototypes]
    6557 | long perf_pmu_snapshot_aux(struct perf_buffer *rb,
         |      ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/asm-generic/local64.h:22,
                    from ./arch/alpha/include/generated/asm/local64.h:1,
                    from include/linux/perf_event.h:26,
                    from kernel/events/ring_buffer.c:11:
   kernel/events/ring_buffer.c: In function '__perf_output_begin':
>> arch/alpha/include/asm/local.h:57:27: error: implicit declaration of function 'xchg_local'; did you mean 'cmpxchg_local'? [-Werror=implicit-function-declaration]
      57 | #define local_xchg(l, n) (xchg_local(&((l)->a.counter), (n)))
         |                           ^~~~~~~~~~
   kernel/events/ring_buffer.c:245:28: note: in expansion of macro 'local_xchg'
     245 |   lost_event.lost        = local_xchg(&rb->lost, 0);
         |                            ^~~~~~~~~~
   cc1: some warnings being treated as errors


vim +57 arch/alpha/include/asm/local.h

f43f7b46eb101f include/asm-alpha/local.h Mathieu Desnoyers 2007-05-08  54  
f43f7b46eb101f include/asm-alpha/local.h Mathieu Desnoyers 2007-05-08  55  #define local_cmpxchg(l, o, n) \
f43f7b46eb101f include/asm-alpha/local.h Mathieu Desnoyers 2007-05-08  56  	(cmpxchg_local(&((l)->a.counter), (o), (n)))
f43f7b46eb101f include/asm-alpha/local.h Mathieu Desnoyers 2007-05-08 @57  #define local_xchg(l, n) (xchg_local(&((l)->a.counter), (n)))
f43f7b46eb101f include/asm-alpha/local.h Mathieu Desnoyers 2007-05-08  58  

:::::: The code at line 57 was first introduced by commit
:::::: f43f7b46eb101f50950cfcead0cb0b7a9c4f6823 local_t: alpha extension

:::::: TO: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
:::::: CC: Linus Torvalds <torvalds@woody.linux-foundation.org>

---
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: 30840 bytes --]

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

only message in thread, other threads:[~2021-04-27 21:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-27 21:04 [mark-rutland:atomics/arch-atomic 12/25] arch/alpha/include/asm/local.h:57:27: error: implicit declaration of function 'xchg_local'; did you mean 'cmpxchg_local'? 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.