parisc: Drop BROKEN_RODATA config option
PARISC was the only architecture which selected the BROKEN_RODATA config option. Drop it and remove the special handling from init.h as well. Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
@@ -15,7 +15,6 @@ config PARISC
|
|||||||
select HAVE_PERF_EVENTS
|
select HAVE_PERF_EVENTS
|
||||||
select GENERIC_ATOMIC64 if !64BIT
|
select GENERIC_ATOMIC64 if !64BIT
|
||||||
select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
|
select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
|
||||||
select BROKEN_RODATA
|
|
||||||
select GENERIC_IRQ_PROBE
|
select GENERIC_IRQ_PROBE
|
||||||
select GENERIC_PCI_IOMAP
|
select GENERIC_PCI_IOMAP
|
||||||
select ARCH_HAVE_NMI_SAFE_CMPXCHG
|
select ARCH_HAVE_NMI_SAFE_CMPXCHG
|
||||||
|
@@ -41,21 +41,10 @@
|
|||||||
discard it in modules) */
|
discard it in modules) */
|
||||||
#define __init __section(.init.text) __cold notrace
|
#define __init __section(.init.text) __cold notrace
|
||||||
#define __initdata __section(.init.data)
|
#define __initdata __section(.init.data)
|
||||||
#define __initconst __constsection(.init.rodata)
|
#define __initconst __section(.init.rodata)
|
||||||
#define __exitdata __section(.exit.data)
|
#define __exitdata __section(.exit.data)
|
||||||
#define __exit_call __used __section(.exitcall.exit)
|
#define __exit_call __used __section(.exitcall.exit)
|
||||||
|
|
||||||
/*
|
|
||||||
* Some architecture have tool chains which do not handle rodata attributes
|
|
||||||
* correctly. For those disable special sections for const, so that other
|
|
||||||
* architectures can annotate correctly.
|
|
||||||
*/
|
|
||||||
#ifdef CONFIG_BROKEN_RODATA
|
|
||||||
#define __constsection(x)
|
|
||||||
#else
|
|
||||||
#define __constsection(x) __section(x)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* modpost check for section mismatches during the kernel build.
|
* modpost check for section mismatches during the kernel build.
|
||||||
* A section mismatch happens when there are references from a
|
* A section mismatch happens when there are references from a
|
||||||
@@ -75,7 +64,7 @@
|
|||||||
*/
|
*/
|
||||||
#define __ref __section(.ref.text) noinline
|
#define __ref __section(.ref.text) noinline
|
||||||
#define __refdata __section(.ref.data)
|
#define __refdata __section(.ref.data)
|
||||||
#define __refconst __constsection(.ref.rodata)
|
#define __refconst __section(.ref.rodata)
|
||||||
|
|
||||||
#ifdef MODULE
|
#ifdef MODULE
|
||||||
#define __exitused
|
#define __exitused
|
||||||
@@ -88,10 +77,10 @@
|
|||||||
/* Used for MEMORY_HOTPLUG */
|
/* Used for MEMORY_HOTPLUG */
|
||||||
#define __meminit __section(.meminit.text) __cold notrace
|
#define __meminit __section(.meminit.text) __cold notrace
|
||||||
#define __meminitdata __section(.meminit.data)
|
#define __meminitdata __section(.meminit.data)
|
||||||
#define __meminitconst __constsection(.meminit.rodata)
|
#define __meminitconst __section(.meminit.rodata)
|
||||||
#define __memexit __section(.memexit.text) __exitused __cold notrace
|
#define __memexit __section(.memexit.text) __exitused __cold notrace
|
||||||
#define __memexitdata __section(.memexit.data)
|
#define __memexitdata __section(.memexit.data)
|
||||||
#define __memexitconst __constsection(.memexit.rodata)
|
#define __memexitconst __section(.memexit.rodata)
|
||||||
|
|
||||||
/* For assembly routines */
|
/* For assembly routines */
|
||||||
#define __HEAD .section ".head.text","ax"
|
#define __HEAD .section ".head.text","ax"
|
||||||
|
@@ -2108,12 +2108,6 @@ config PADATA
|
|||||||
depends on SMP
|
depends on SMP
|
||||||
bool
|
bool
|
||||||
|
|
||||||
# Can be selected by architectures with broken toolchains
|
|
||||||
# that get confused by correct const<->read_only section
|
|
||||||
# mappings
|
|
||||||
config BROKEN_RODATA
|
|
||||||
bool
|
|
||||||
|
|
||||||
config ASN1
|
config ASN1
|
||||||
tristate
|
tristate
|
||||||
help
|
help
|
||||||
|
Reference in New Issue
Block a user