Skip to contentSkip to conversation

MIPS: export __cmpxchg_small()

PATCH In review David Sterba 2 participants 2 messages Oct 22, 2024 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: export __cmpxchg_small()

Export the symbol __cmpxchg_small() for btrfs.ko that will use it to store blk_status_t, which is u8. Reported by LKP:

Quoted 1 line
Quoted 1 line

ERROR: modpost: "__cmpxchg_small" [fs/btrfs/btrfs.ko] undefined!

Patch using the cmpxchg() https://lore.kernel.org/linux-btrfs/1d4f72f7fee285b2ddf4bf62b0ac0fd89def5417.1728575379.git.naohiro.aota@wdc.com/

---

I can merge it via the btrfs git tree along the fix or wait until it's merged the usual way, please let me know.

 arch/mips/kernel/cmpxchg.c | 1 +
 1 file changed, 1 insertion(+)
arch/mips/kernel/cmpxchg.c +1 -0
index e974a4954df8..c371def2302d 100644
@@ -102,3 +102,4 @@ unsigned long __cmpxchg_small(volatile void *ptr, unsigned long old,
 			return old;
 	}
 }
+EXPORT_SYMBOL(__cmpxchg_small);
Signature · 1 line
2.45.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · David Sterba

Export the symbol __cmpxchg_small() for btrfs.ko that will use it to store blk_status_t, which is u8. Reported by LKP:

Quoted 1 line
Quoted 1 line

ERROR: modpost: "__cmpxchg_small" [fs/btrfs/btrfs.ko] undefined!

Quoted 8 lines

Patch using the cmpxchg() https://lore.kernel.org/linux-btrfs/1d4f72f7fee285b2ddf4bf62b0ac0fd89def5417.1728575379.git.naohiro.aota@wdc.com/

---

I can merge it via the btrfs git tree along the fix or wait until it's merged the usual way, please let me know.

just merge via btrfs tree.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]