deal with alpha section warnings

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Al Viro 2007-07-26 17:34:19 +01:00 committed by Linus Torvalds
parent 55fe977187
commit ed5f656143
5 changed files with 12 additions and 10 deletions

View File

@ -10,6 +10,7 @@
#include <asm/system.h>
#include <asm/asm-offsets.h>
.section .text.head, "ax"
.globl swapper_pg_dir
.globl _stext
swapper_pg_dir=SWAPPER_PGD

View File

@ -195,7 +195,7 @@ pcibios_init(void)
subsys_initcall(pcibios_init);
char * __init
char * __devinit
pcibios_setup(char *str)
{
return str;
@ -204,7 +204,7 @@ pcibios_setup(char *str)
#ifdef ALPHA_RESTORE_SRM_SETUP
static struct pdev_srm_saved_conf *srm_saved_configs;
void __init
void __devinit
pdev_save_srm_config(struct pci_dev *dev)
{
struct pdev_srm_saved_conf *tmp;
@ -247,14 +247,14 @@ pci_restore_srm_config(void)
}
#endif
void __init
void __devinit
pcibios_fixup_resource(struct resource *res, struct resource *root)
{
res->start += root->start;
res->end += root->start;
}
void __init
void __devinit
pcibios_fixup_device_resources(struct pci_dev *dev, struct pci_bus *bus)
{
/* Update device resources. */
@ -273,7 +273,7 @@ pcibios_fixup_device_resources(struct pci_dev *dev, struct pci_bus *bus)
}
}
void __init
void __devinit
pcibios_fixup_bus(struct pci_bus *bus)
{
/* Propagate hose info into the subordinate devices. */

View File

@ -58,7 +58,7 @@ size_for_memory(unsigned long max)
return max;
}
struct pci_iommu_arena *
struct pci_iommu_arena * __init
iommu_arena_new_node(int nid, struct pci_controller *hose, dma_addr_t base,
unsigned long window_size, unsigned long align)
{
@ -117,7 +117,7 @@ iommu_arena_new_node(int nid, struct pci_controller *hose, dma_addr_t base,
return arena;
}
struct pci_iommu_arena *
struct pci_iommu_arena * __init
iommu_arena_new(struct pci_controller *hose, dma_addr_t base,
unsigned long window_size, unsigned long align)
{

View File

@ -358,7 +358,7 @@ secondary_cpu_start(int cpuid, struct task_struct *idle)
/*
* Bring one cpu online.
*/
static int __devinit
static int __cpuinit
smp_boot_one_cpu(int cpuid)
{
struct task_struct *idle;
@ -487,7 +487,7 @@ smp_prepare_boot_cpu(void)
{
}
int __devinit
int __cpuinit
__cpu_up(unsigned int cpu)
{
smp_boot_one_cpu(cpu);
@ -541,7 +541,7 @@ smp_percpu_timer_interrupt(struct pt_regs *regs)
set_irq_regs(old_regs);
}
int __init
int
setup_profiling_timer(unsigned int multiplier)
{
return -EINVAL;

View File

@ -15,6 +15,7 @@ SECTIONS
_text = .; /* Text and read-only data */
.text : {
*(.text.head)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT