mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
s390: Remove __bootdata annotations from declarations
For consistency, remove the `__bootdata` and `__bootdata_preserved` section annotations from variable declarations in header files. Section annotations should be applied to definitions, not declarations. This change moves the annotations to the variable definitions in the corresponding source files. Acked-by: Heiko Carstens <hca@linux.ibm.com> Acked-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
This commit is contained in:
committed by
Alexander Gordeev
parent
5c9e37e523
commit
912a0d3523
@@ -2,7 +2,6 @@
|
||||
#ifndef _ASM_S390_ABS_LOWCORE_H
|
||||
#define _ASM_S390_ABS_LOWCORE_H
|
||||
|
||||
#include <asm/sections.h>
|
||||
#include <asm/lowcore.h>
|
||||
|
||||
#define ABS_LOWCORE_MAP_SIZE (NR_CPUS * sizeof(struct lowcore))
|
||||
@@ -25,7 +24,7 @@ static inline void put_abs_lowcore(struct lowcore *lc)
|
||||
put_cpu();
|
||||
}
|
||||
|
||||
extern int __bootdata_preserved(relocate_lowcore);
|
||||
extern int relocate_lowcore;
|
||||
|
||||
static inline int have_relocated_lowcore(void)
|
||||
{
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#ifndef PAGE_STATES_H
|
||||
#define PAGE_STATES_H
|
||||
|
||||
#include <asm/sections.h>
|
||||
#include <asm/page.h>
|
||||
|
||||
#define ESSA_GET_STATE 0
|
||||
@@ -21,7 +20,7 @@
|
||||
|
||||
#define ESSA_MAX ESSA_SET_STABLE_NODAT
|
||||
|
||||
extern int __bootdata_preserved(cmma_flag);
|
||||
extern int cmma_flag;
|
||||
|
||||
static __always_inline unsigned long essa(unsigned long paddr, unsigned char cmd)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
#include <linux/page-flags.h>
|
||||
#include <linux/radix-tree.h>
|
||||
#include <linux/atomic.h>
|
||||
#include <asm/sections.h>
|
||||
#include <asm/ctlreg.h>
|
||||
#include <asm/bug.h>
|
||||
#include <asm/page.h>
|
||||
@@ -35,7 +34,7 @@ enum {
|
||||
PG_DIRECT_MAP_MAX
|
||||
};
|
||||
|
||||
extern atomic_long_t __bootdata_preserved(direct_pages_count[PG_DIRECT_MAP_MAX]);
|
||||
extern atomic_long_t direct_pages_count[PG_DIRECT_MAP_MAX];
|
||||
|
||||
static inline void update_page_count(int level, long count)
|
||||
{
|
||||
@@ -85,14 +84,14 @@ extern unsigned long zero_page_mask;
|
||||
* happen without trampolines and in addition the placement within a
|
||||
* 2GB frame is branch prediction unit friendly.
|
||||
*/
|
||||
extern unsigned long __bootdata_preserved(VMALLOC_START);
|
||||
extern unsigned long __bootdata_preserved(VMALLOC_END);
|
||||
extern unsigned long VMALLOC_START;
|
||||
extern unsigned long VMALLOC_END;
|
||||
#define VMALLOC_DEFAULT_SIZE ((512UL << 30) - MODULES_LEN)
|
||||
extern struct page *__bootdata_preserved(vmemmap);
|
||||
extern unsigned long __bootdata_preserved(vmemmap_size);
|
||||
extern struct page *vmemmap;
|
||||
extern unsigned long vmemmap_size;
|
||||
|
||||
extern unsigned long __bootdata_preserved(MODULES_VADDR);
|
||||
extern unsigned long __bootdata_preserved(MODULES_END);
|
||||
extern unsigned long MODULES_VADDR;
|
||||
extern unsigned long MODULES_END;
|
||||
#define MODULES_VADDR MODULES_VADDR
|
||||
#define MODULES_END MODULES_END
|
||||
#define MODULES_LEN (1UL << 31)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <linux/pgtable.h>
|
||||
#include <asm/abs_lowcore.h>
|
||||
#include <asm/sections.h>
|
||||
|
||||
unsigned long __bootdata_preserved(__abs_lowcore);
|
||||
int __bootdata_preserved(relocate_lowcore);
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <asm/physmem_info.h>
|
||||
#include <asm/maccess.h>
|
||||
#include <asm/asm-offsets.h>
|
||||
#include <asm/sections.h>
|
||||
#include <asm/ipl.h>
|
||||
|
||||
/*
|
||||
|
||||
@@ -157,18 +157,18 @@ u64 __bootdata_preserved(stfle_fac_list[16]);
|
||||
EXPORT_SYMBOL(stfle_fac_list);
|
||||
struct oldmem_data __bootdata_preserved(oldmem_data);
|
||||
|
||||
unsigned long VMALLOC_START;
|
||||
unsigned long __bootdata_preserved(VMALLOC_START);
|
||||
EXPORT_SYMBOL(VMALLOC_START);
|
||||
|
||||
unsigned long VMALLOC_END;
|
||||
unsigned long __bootdata_preserved(VMALLOC_END);
|
||||
EXPORT_SYMBOL(VMALLOC_END);
|
||||
|
||||
struct page *vmemmap;
|
||||
struct page *__bootdata_preserved(vmemmap);
|
||||
EXPORT_SYMBOL(vmemmap);
|
||||
unsigned long vmemmap_size;
|
||||
unsigned long __bootdata_preserved(vmemmap_size);
|
||||
|
||||
unsigned long MODULES_VADDR;
|
||||
unsigned long MODULES_END;
|
||||
unsigned long __bootdata_preserved(MODULES_VADDR);
|
||||
unsigned long __bootdata_preserved(MODULES_END);
|
||||
|
||||
/* An array with a pointer to the lowcore of every CPU. */
|
||||
struct lowcore *lowcore_ptr[NR_CPUS];
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#include <linux/vmcore_info.h>
|
||||
#include <asm/abs_lowcore.h>
|
||||
#include <linux/mm.h>
|
||||
#include <asm/abs_lowcore.h>
|
||||
#include <asm/sections.h>
|
||||
#include <asm/setup.h>
|
||||
|
||||
void arch_crash_save_vmcoreinfo(void)
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <asm/asm-extable.h>
|
||||
#include <asm/abs_lowcore.h>
|
||||
#include <asm/stacktrace.h>
|
||||
#include <asm/sections.h>
|
||||
#include <asm/maccess.h>
|
||||
#include <asm/ctlreg.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user