]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Fix compiler warnings in debug_core.c
authorHelge Deller <deller@gmx.de>
Fri, 20 Dec 2019 20:00:19 +0000 (21:00 +0100)
committerHelge Deller <deller@gmx.de>
Fri, 20 Dec 2019 20:01:42 +0000 (21:01 +0100)
commit31aede2796599bb697e615c5e11469b087894ae1
tree9559ef06352e48ec7fd3d511f0c9efc44d92f51a
parenta706e03336b44cc657c623e53455bde340575ddd
parisc: Fix compiler warnings in debug_core.c

Fix this compiler warning:
kernel/debug/debug_core.c: In function ‘kgdb_cpu_enter’:
arch/parisc/include/asm/cmpxchg.h:48:3: warning: value computed is not used [-Wunused-value]
   48 |  ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr))))
arch/parisc/include/asm/atomic.h:78:30: note: in expansion of macro ‘xchg’
   78 | #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
      |                              ^~~~
kernel/debug/debug_core.c:596:4: note: in expansion of macro ‘atomic_xchg’
  596 |    atomic_xchg(&kgdb_active, cpu);
      |    ^~~~~~~~~~~

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/cmpxchg.h