]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commitb104851698487c2c65fecfc9d728ff5686e94f90
tree387cf9106486f4cd818788f371e2bb79439bf979
parent5251ba2811a235bb49e4cef4323439118bdc6179
parisc: Fix compiler warnings in debug_core.c

BugLink: https://bugs.launchpad.net/bugs/1861739
[ Upstream commit 75cf9797006a3a9f29a3a25c1febd6842a4a9eb2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/parisc/include/asm/cmpxchg.h