]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: add support for cmpxchg on u8 pointers
authorLiam Beguin <liambeguin@gmail.com>
Sat, 18 Jul 2020 20:10:21 +0000 (16:10 -0400)
committerHelge Deller <deller@gmx.de>
Tue, 21 Jul 2020 06:11:12 +0000 (08:11 +0200)
commit12f8184a4b071d7dff0be30bb4af262a9221f17a
tree6ae12a74e0557b8e8fc13665178007b27177956b
parent21d0a5cf950768933cb88e716f8a3bf1031bcec4
parisc: add support for cmpxchg on u8 pointers

The kernel test bot reported[1] that using set_mask_bits on a u8 causes
the following issue on parisc:

hppa-linux-ld: drivers/phy/ti/phy-tusb1210.o: in function `tusb1210_probe':
>> (.text+0x2f4): undefined reference to `__cmpxchg_called_with_bad_pointer'
>> hppa-linux-ld: (.text+0x324): undefined reference to `__cmpxchg_called_with_bad_pointer'
hppa-linux-ld: (.text+0x354): undefined reference to `__cmpxchg_called_with_bad_pointer'

Add support for cmpxchg on u8 pointers.

[1] https://lore.kernel.org/patchwork/patch/1272617/#1468946

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Liam Beguin <liambeguin@gmail.com>
Tested-by: Dave Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/cmpxchg.h
arch/parisc/lib/bitops.c