Skip to content

Commit

Permalink
Merge master.kernel.org:/home/rmk/linux-2.6-arm
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Torvalds committed Sep 21, 2005
2 parents a418500 + 6a1ced5 commit f62378f
Show file tree
Hide file tree
Showing 31 changed files with 62 additions and 41 deletions.
2 changes: 1 addition & 1 deletion arch/arm/boot/compressed/ofw-shark.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,5 +256,5 @@ asmlinkage void ofw_init(ofw_handle_t o, int *nomr, int *pointer)
temp[11]='\0';
mem_len = OF_getproplen(o,phandle, temp);
OF_getprop(o,phandle, temp, buffer, mem_len);
(unsigned char) pointer[32] = ((unsigned char *) buffer)[mem_len-2];
* ((unsigned char *) &pointer[32]) = ((unsigned char *) buffer)[mem_len-2];
}
3 changes: 3 additions & 0 deletions arch/arm/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,9 @@ void __attribute__((noreturn)) __bug(const char *file, int line, void *data)
printk(" - extra data = %p", data);
printk("\n");
*(int *)0 = 0;

/* Avoid "noreturn function does return" */
for (;;);
}
EXPORT_SYMBOL(__bug);

Expand Down
8 changes: 4 additions & 4 deletions arch/arm/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ SECTIONS
*(.init.text)
_einittext = .;
__proc_info_begin = .;
*(.proc.info)
*(.proc.info.init)
__proc_info_end = .;
__arch_info_begin = .;
*(.arch.info)
*(.arch.info.init)
__arch_info_end = .;
__tagtable_begin = .;
*(.taglist)
*(.taglist.init)
__tagtable_end = .;
. = ALIGN(16);
__setup_start = .;
*(.init.setup)
__setup_end = .;
__early_begin = .;
*(__early_param)
*(.early_param.init)
__early_end = .;
__initcall_start = .;
*(.initcall1.init)
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-s3c2410/mach-anubis.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*
* Modifications:
* 02-May-2005 BJD Copied from mach-bast.c
* 20-Sep-2005 BJD Added static to non-exported items
*/

#include <linux/kernel.h>
Expand Down Expand Up @@ -232,7 +233,7 @@ static struct s3c24xx_board anubis_board __initdata = {
.clocks_count = ARRAY_SIZE(anubis_clocks)
};

void __init anubis_map_io(void)
static void __init anubis_map_io(void)
{
/* initialise the clocks */

Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-s3c2410/mach-bast.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
* 17-Jul-2005 BJD Changed to platform device for SuperIO 16550s
* 25-Jul-2005 BJD Removed ASIX static mappings
* 27-Jul-2005 BJD Ensure maximum frequency of i2c bus
* 20-Sep-2005 BJD Added static to non-exported items
*/

#include <linux/kernel.h>
Expand Down Expand Up @@ -428,7 +429,7 @@ static struct s3c24xx_board bast_board __initdata = {
.clocks_count = ARRAY_SIZE(bast_clocks)
};

void __init bast_map_io(void)
static void __init bast_map_io(void)
{
/* initialise the clocks */

Expand Down
7 changes: 4 additions & 3 deletions arch/arm/mach-s3c2410/mach-h1940.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* 10-Jan-2005 BJD Removed include of s3c2410.h
* 14-Jan-2005 BJD Added clock init
* 10-Mar-2005 LCVR Changed S3C2410_VA to S3C24XX_VA
* 20-Sep-2005 BJD Added static to non-exported items
*/

#include <linux/kernel.h>
Expand Down Expand Up @@ -147,21 +148,21 @@ static struct s3c24xx_board h1940_board __initdata = {
.devices_count = ARRAY_SIZE(h1940_devices)
};

void __init h1940_map_io(void)
static void __init h1940_map_io(void)
{
s3c24xx_init_io(h1940_iodesc, ARRAY_SIZE(h1940_iodesc));
s3c24xx_init_clocks(0);
s3c24xx_init_uarts(h1940_uartcfgs, ARRAY_SIZE(h1940_uartcfgs));
s3c24xx_set_board(&h1940_board);
}

void __init h1940_init_irq(void)
static void __init h1940_init_irq(void)
{
s3c24xx_init_irq();

}

void __init h1940_init(void)
static void __init h1940_init(void)
{
set_s3c2410fb_info(&h1940_lcdcfg);
}
Expand Down
6 changes: 3 additions & 3 deletions arch/arm/mach-s3c2410/mach-n30.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,22 @@ static struct s3c24xx_board n30_board __initdata = {
.devices_count = ARRAY_SIZE(n30_devices)
};

void __init n30_map_io(void)
static void __init n30_map_io(void)
{
s3c24xx_init_io(n30_iodesc, ARRAY_SIZE(n30_iodesc));
s3c24xx_init_clocks(0);
s3c24xx_init_uarts(n30_uartcfgs, ARRAY_SIZE(n30_uartcfgs));
s3c24xx_set_board(&n30_board);
}

void __init n30_init_irq(void)
static void __init n30_init_irq(void)
{
s3c24xx_init_irq();
}

/* GPB3 is the line that controls the pull-up for the USB D+ line */

void __init n30_init(void)
static void __init n30_init(void)
{
s3c_device_i2c.dev.platform_data = &n30_i2ccfg;

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c2410/mach-nexcoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ static void __init nexcoder_sensorboard_init(void)
s3c2410_gpio_cfgpin(S3C2410_GPF2, S3C2410_GPF2_OUTP); // CAM_GPIO6 => CAM_PWRDN
}

void __init nexcoder_map_io(void)
static void __init nexcoder_map_io(void)
{
s3c24xx_init_io(nexcoder_iodesc, ARRAY_SIZE(nexcoder_iodesc));
s3c24xx_init_clocks(0);
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c2410/mach-otom.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static struct s3c24xx_board otom11_board __initdata = {
};


void __init otom11_map_io(void)
static void __init otom11_map_io(void)
{
s3c24xx_init_io(otom11_iodesc, ARRAY_SIZE(otom11_iodesc));
s3c24xx_init_clocks(0);
Expand Down
5 changes: 3 additions & 2 deletions arch/arm/mach-s3c2410/mach-rx3715.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* 14-Jan-2005 BJD Added new clock init
* 10-Mar-2005 LCVR Changed S3C2410_VA to S3C24XX_VA
* 14-Mar-2005 BJD Fixed __iomem warnings
* 20-Sep-2005 BJD Added static to non-exported items
*/

#include <linux/kernel.h>
Expand Down Expand Up @@ -108,15 +109,15 @@ static struct s3c24xx_board rx3715_board __initdata = {
.devices_count = ARRAY_SIZE(rx3715_devices)
};

void __init rx3715_map_io(void)
static void __init rx3715_map_io(void)
{
s3c24xx_init_io(rx3715_iodesc, ARRAY_SIZE(rx3715_iodesc));
s3c24xx_init_clocks(16934000);
s3c24xx_init_uarts(rx3715_uartcfgs, ARRAY_SIZE(rx3715_uartcfgs));
s3c24xx_set_board(&rx3715_board);
}

void __init rx3715_init_irq(void)
static void __init rx3715_init_irq(void)
{
s3c24xx_init_irq();
}
Expand Down
5 changes: 3 additions & 2 deletions arch/arm/mach-s3c2410/mach-smdk2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* Ben Dooks <[email protected]>
*
* 10-Mar-2005 LCVR Changed S3C2410_VA to S3C24XX_VA
* 20-Sep-2005 BJD Added static to non-exported items
*
***********************************************************************/

Expand Down Expand Up @@ -97,15 +98,15 @@ static struct s3c24xx_board smdk2410_board __initdata = {
.devices_count = ARRAY_SIZE(smdk2410_devices)
};

void __init smdk2410_map_io(void)
static void __init smdk2410_map_io(void)
{
s3c24xx_init_io(smdk2410_iodesc, ARRAY_SIZE(smdk2410_iodesc));
s3c24xx_init_clocks(0);
s3c24xx_init_uarts(smdk2410_uartcfgs, ARRAY_SIZE(smdk2410_uartcfgs));
s3c24xx_set_board(&smdk2410_board);
}

void __init smdk2410_init_irq(void)
static void __init smdk2410_init_irq(void)
{
s3c24xx_init_irq();
}
Expand Down
5 changes: 3 additions & 2 deletions arch/arm/mach-s3c2410/mach-smdk2440.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* 22-Feb-2005 BJD Updated for 2.6.11-rc5 relesa
* 10-Mar-2005 LCVR Replaced S3C2410_VA by S3C24XX_VA
* 14-Mar-2005 BJD void __iomem fixes
* 20-Sep-2005 BJD Added static to non-exported items
*/

#include <linux/kernel.h>
Expand Down Expand Up @@ -98,15 +99,15 @@ static struct s3c24xx_board smdk2440_board __initdata = {
.devices_count = ARRAY_SIZE(smdk2440_devices)
};

void __init smdk2440_map_io(void)
static void __init smdk2440_map_io(void)
{
s3c24xx_init_io(smdk2440_iodesc, ARRAY_SIZE(smdk2440_iodesc));
s3c24xx_init_clocks(16934400);
s3c24xx_init_uarts(smdk2440_uartcfgs, ARRAY_SIZE(smdk2440_uartcfgs));
s3c24xx_set_board(&smdk2440_board);
}

void __init smdk2440_machine_init(void)
static void __init smdk2440_machine_init(void)
{
/* Configure the LEDs (even if we have no LED support)*/

Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-s3c2410/mach-vr1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* 10-Mar-2005 LCVR Changed S3C2410_VA to S3C24XX_VA
* 14-Mar-2006 BJD void __iomem fixes
* 22-Jun-2006 BJD Added DM9000 platform information
* 20-Sep-2005 BJD Added static to non-exported items
*/

#include <linux/kernel.h>
Expand Down Expand Up @@ -347,7 +348,7 @@ static void vr1000_power_off(void)
s3c2410_gpio_setpin(S3C2410_GPB9, 1);
}

void __init vr1000_map_io(void)
static void __init vr1000_map_io(void)
{
/* initialise clock sources */

Expand Down
12 changes: 11 additions & 1 deletion arch/arm/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,17 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
if (in_interrupt() || !mm)
goto no_context;

down_read(&mm->mmap_sem);
/*
* As per x86, we may deadlock here. However, since the kernel only
* validly references user space from well defined areas of the code,
* we can bug out early if this is from code which shouldn't.
*/
if (!down_read_trylock(&mm->mmap_sem)) {
if (!user_mode(regs) && !search_exception_tables(regs->ARM_pc))
goto no_context;
down_read(&mm->mmap_sem);
}

fault = __do_page_fault(mm, addr, fsr, tsk);
up_read(&mm->mmap_sem);

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mm/proc-arm1020.S
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ cpu_arm1020_name:

.align

.section ".proc.info", #alloc, #execinstr
.section ".proc.info.init", #alloc, #execinstr

.type __arm1020_proc_info,#object
__arm1020_proc_info:
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mm/proc-arm1020e.S
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ cpu_arm1020e_name:

.align

.section ".proc.info", #alloc, #execinstr
.section ".proc.info.init", #alloc, #execinstr

.type __arm1020e_proc_info,#object
__arm1020e_proc_info:
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mm/proc-arm1022.S
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ cpu_arm1022_name:

.align

.section ".proc.info", #alloc, #execinstr
.section ".proc.info.init", #alloc, #execinstr

.type __arm1022_proc_info,#object
__arm1022_proc_info:
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mm/proc-arm1026.S
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ cpu_arm1026_name:

.align

.section ".proc.info", #alloc, #execinstr
.section ".proc.info.init", #alloc, #execinstr

.type __arm1026_proc_info,#object
__arm1026_proc_info:
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mm/proc-arm6_7.S
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ cpu_arm710_name:

.align

.section ".proc.info", #alloc, #execinstr
.section ".proc.info.init", #alloc, #execinstr

.type __arm6_proc_info, #object
__arm6_proc_info:
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mm/proc-arm720.S
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ cpu_arm720_name:
* See linux/include/asm-arm/procinfo.h for a definition of this structure.
*/

.section ".proc.info", #alloc, #execinstr
.section ".proc.info.init", #alloc, #execinstr

.type __arm710_proc_info, #object
__arm710_proc_info:
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mm/proc-arm920.S
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ cpu_arm920_name:

.align

.section ".proc.info", #alloc, #execinstr
.section ".proc.info.init", #alloc, #execinstr

.type __arm920_proc_info,#object
__arm920_proc_info:
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mm/proc-arm922.S
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ cpu_arm922_name:

.align

.section ".proc.info", #alloc, #execinstr
.section ".proc.info.init", #alloc, #execinstr

.type __arm922_proc_info,#object
__arm922_proc_info:
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mm/proc-arm925.S
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ cpu_arm925_name:

.align

.section ".proc.info", #alloc, #execinstr
.section ".proc.info.init", #alloc, #execinstr

.type __arm925_proc_info,#object
__arm925_proc_info:
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mm/proc-arm926.S
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ cpu_arm926_name:

.align

.section ".proc.info", #alloc, #execinstr
.section ".proc.info.init", #alloc, #execinstr

.type __arm926_proc_info,#object
__arm926_proc_info:
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mm/proc-sa110.S
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ cpu_sa110_name:

.align

.section ".proc.info", #alloc, #execinstr
.section ".proc.info.init", #alloc, #execinstr

.type __sa110_proc_info,#object
__sa110_proc_info:
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mm/proc-sa1100.S
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ cpu_sa1110_name:

.align

.section ".proc.info", #alloc, #execinstr
.section ".proc.info.init", #alloc, #execinstr

.type __sa1100_proc_info,#object
__sa1100_proc_info:
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mm/proc-v6.S
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ cpu_elf_name:
.size cpu_elf_name, . - cpu_elf_name
.align

.section ".proc.info", #alloc, #execinstr
.section ".proc.info.init", #alloc, #execinstr

/*
* Match any ARMv6 processor core.
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mm/proc-xscale.S
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ cpu_pxa270_name:

.align

.section ".proc.info", #alloc, #execinstr
.section ".proc.info.init", #alloc, #execinstr

.type __80200_proc_info,#object
__80200_proc_info:
Expand Down
Loading

0 comments on commit f62378f

Please sign in to comment.