From: David Sterba <dsterba@xxxxxxxx> commit 90a88784cdb7757feb8dd520255e6cb861f30943 upstream. Export the symbol __cmpxchg_small() for btrfs.ko that uses it to store blk_status_t, which is u8. Reported by LKP: >> ERROR: modpost: "__cmpxchg_small" [fs/btrfs/btrfs.ko] undefined! Patch using the cmpxchg() https://lore.kernel.org/linux-btrfs/1d4f72f7fee285b2ddf4bf62b0ac0fd89def5417.1728575379.git.naohiro.aota@xxxxxxx/ Link: https://lore.kernel.org/all/20241016134919.GO1609@xxxxxxx/ Acked-by: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx> Signed-off-by: David Sterba <dsterba@xxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- arch/mips/kernel/cmpxchg.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/mips/kernel/cmpxchg.c +++ b/arch/mips/kernel/cmpxchg.c @@ -102,3 +102,4 @@ unsigned long __cmpxchg_small(volatile v return old; } } +EXPORT_SYMBOL(__cmpxchg_small); Patches currently in stable-queue which might be from dsterba@xxxxxxxx are queue-6.11/btrfs-fix-extent-map-merging-not-happening-for-adjac.patch queue-6.11/mips-export-__cmpxchg_small.patch queue-6.11/btrfs-fix-error-propagation-of-split-bios.patch queue-6.11/btrfs-fix-defrag-not-merging-contiguous-extents-due-.patch queue-6.11/btrfs-fix-use-after-free-of-block-device-file-in-__b.patch queue-6.11/btrfs-merge-btrfs_orig_bbio_end_io-into-btrfs_bio_en.patch