summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorPeng Fan <[email protected]>2026-02-09 09:30:18 +0800
committerTom Rini <[email protected]>2026-02-17 13:50:22 -0600
commit0f90b1e715f8abe41b0875752eb184f46032ff11 (patch)
treea9fb9e93d8dca6895b94e17cdbe4ec7f596ca40a /fs
parent406982f091c76e6ce0734373426bd756f97d64e9 (diff)
treewide: Clean up DECLARE_GLOBAL_DATA_PTR usage
Remove DECLARE_GLOBAL_DATA_PTR from files where gd is not used, and drop the unnecessary inclusion of asm/global_data.h. Headers should be included directly by the files that need them, rather than indirectly via global_data.h. Reviewed-by: Patrice Chotard <[email protected]> #STMicroelectronics boards and STM32MP1 ram test driver Tested-by: Anshul Dalal <[email protected]> #TI boards Acked-by: Yao Zi <[email protected]> #TH1520 Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'fs')
-rw-r--r--fs/fs.c3
-rw-r--r--fs/ubifs/ubifs.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/fs/fs.c b/fs/fs.c
index 319c55c440a..8ea50a6c13c 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -24,7 +24,6 @@
#include <ubifs_uboot.h>
#include <btrfs.h>
#include <asm/cache.h>
-#include <asm/global_data.h>
#include <asm/io.h>
#include <div64.h>
#include <linux/math64.h>
@@ -34,8 +33,6 @@
#include <erofs.h>
#include <exfat.h>
-DECLARE_GLOBAL_DATA_PTR;
-
static struct blk_desc *fs_dev_desc;
static int fs_dev_part;
static struct disk_partition fs_partition;
diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c
index 40bad0e7da7..b0cc0d2e1b2 100644
--- a/fs/ubifs/ubifs.c
+++ b/fs/ubifs/ubifs.c
@@ -16,7 +16,6 @@
#include <log.h>
#include <malloc.h>
#include <memalign.h>
-#include <asm/global_data.h>
#include "ubifs.h"
#include <part.h>
#include <dm/devres.h>
@@ -31,8 +30,6 @@
#include <abuf.h>
#endif
-DECLARE_GLOBAL_DATA_PTR;
-
/* compress.c */
/*