[Concept,03/10] fs: Use asm/atomic.h in linux_fs and ext4l
Commit Message
From: Simon Glass <sjg@chromium.org>
fs/linux_fs.c and fs/ext4l/support.c pull in <asm-generic/atomic.h>
directly, bypassing the per-arch implementation. On x86 the generic
inline functions reference local_irq_save() and local_irq_restore(),
which are not declared, so the files fail to build once the header is
actually used.
Switch these two remaining users in fs/ to <asm/atomic.h>, so each
architecture's per-arch atomic header wins. Architectures without one
fall through to asm-generic transparently.
Signed-off-by: Simon Glass <sjg@chromium.org>
---
fs/ext4l/ext4_uboot.h | 2 +-
fs/linux_fs.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
@@ -75,7 +75,7 @@
#define no_printk(fmt, ...) ({ 0; })
/* More Linux headers (alphabetical) */
-#include <asm-generic/atomic.h>
+#include <asm/atomic.h>
#include <asm-generic/bitops/le.h>
#include <asm-generic/bitops/lock.h>
#include <asm-generic/timex.h>
@@ -25,7 +25,7 @@
#include <linux/pagemap.h>
#include <linux/slab.h>
#include <linux/bio.h>
-#include <asm-generic/atomic.h>
+#include <asm/atomic.h>
#if IS_ENABLED(CONFIG_FS_EXT4L)
#include "../fs/ext4l/ext4_uboot.h"