Skip to content

Commit 2ceec0c

Browse files
Uwe ZeisbergerRussell King
authored andcommitted
[ARM] 3517/1: move definition of PROC_INFO_SZ from procinfo.h to asm-offsets.h
Patch from Uwe Zeisberger The symbol is only used in arch/arm/kernel/head-common.S. This in turn is included from arch/arm/kernel/head.S and arch/arm/kernel/head-nommu.S which include asm-offsets.h . Signed-off-by: Uwe Zeisberger <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent c4694c7 commit 2ceec0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/arm/kernel/asm-offsets.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ int main(void)
9999
DEFINE(MACHINFO_NAME, offsetof(struct machine_desc, name));
100100
DEFINE(MACHINFO_PHYSIO, offsetof(struct machine_desc, phys_io));
101101
DEFINE(MACHINFO_PGOFFIO, offsetof(struct machine_desc, io_pg_offst));
102+
BLANK();
103+
DEFINE(PROC_INFO_SZ, sizeof(struct proc_info_list));
102104
DEFINE(PROCINFO_INITFUNC, offsetof(struct proc_info_list, __cpu_flush));
103105
DEFINE(PROCINFO_MMUFLAGS, offsetof(struct proc_info_list, __cpu_mmu_flags));
104106
return 0;

include/asm-arm/procinfo.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ extern unsigned int elf_hwcap;
4545

4646
#endif /* __ASSEMBLY__ */
4747

48-
#define PROC_INFO_SZ 48
49-
5048
#define HWCAP_SWP 1
5149
#define HWCAP_HALF 2
5250
#define HWCAP_THUMB 4

0 commit comments

Comments
 (0)