Skip to content

Commit

Permalink
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-…
Browse files Browse the repository at this point in the history
…linus

* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
  [MIPS] Fix marge error due to conflict in arch/mips/kernel/head.S
  [MIPS] ARC: Remove unused arch/mips/arc/console.c
  [MIPS] SNI: sniprom
  [MIPS] Jazz: remove unneeded reset functions
  [MIPS] Whitespace cleanup.
  [MIPS] Make resources for ds1742 "static __initdata"
  [MIPS] Replace __attribute_used__ with __used
  [MIPS] Jazz: Remove unused arch/mips/jazz/io.c
  [MIPS] Mark prom_free_prom_memory as __init_refok
  [MIPS] MIPSsim: Fix cflags
  • Loading branch information
Linus Torvalds committed Jul 24, 2007
2 parents 1e66239 + cdcc9eb commit 2f66b52
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 200 deletions.
2 changes: 1 addition & 1 deletion arch/mips/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ load-$(CONFIG_MIPS_SEAD) += 0xffffffff80100000
# MIPS SIM
#
core-$(CONFIG_MIPS_SIM) += arch/mips/mipssim/
cflags-$(CONFIG_MIPS_SIM) += -Iinclude/asm-mips/mach-sim
cflags-$(CONFIG_MIPS_SIM) += -Iinclude/asm-mips/mach-mipssim
load-$(CONFIG_MIPS_SIM) += 0x80100000

#
Expand Down
31 changes: 0 additions & 31 deletions arch/mips/arc/console.c

This file was deleted.

135 changes: 0 additions & 135 deletions arch/mips/jazz/io.c

This file was deleted.

13 changes: 0 additions & 13 deletions arch/mips/jazz/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
*/
#include <linux/jiffies.h>
#include <asm/jazz.h>
#include <asm/io.h>
#include <asm/system.h>
#include <asm/reboot.h>
#include <asm/delay.h>

#define KBD_STAT_IBF 0x02 /* Keyboard input buffer full */

Expand Down Expand Up @@ -58,12 +54,3 @@ void jazz_machine_restart(char *command)
jazz_write_output (0x00);
}
}

void jazz_machine_halt(void)
{
}

void jazz_machine_power_off(void)
{
/* Jazz machines don't have a software power switch */
}
4 changes: 0 additions & 4 deletions arch/mips/jazz/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
extern asmlinkage void jazz_handle_int(void);

extern void jazz_machine_restart(char *command);
extern void jazz_machine_halt(void);
extern void jazz_machine_power_off(void);

void __init plat_timer_setup(struct irqaction *irq)
{
Expand Down Expand Up @@ -95,8 +93,6 @@ void __init plat_mem_setup(void)
/* The RTC is outside the port address space */

_machine_restart = jazz_machine_restart;
_machine_halt = jazz_machine_halt;
pm_power_off = jazz_machine_power_off;

screen_info = (struct screen_info) {
0, 0, /* orig-x, orig-y */
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/jmr3927/rbhma3100/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ EXPORT_SYMBOL(__swizzle_addr_b);

static int __init jmr3927_rtc_init(void)
{
struct resource res = {
static struct resource __initdata res = {
.start = JMR3927_IOC_NVRAMB_ADDR - IO_BASE,
.end = JMR3927_IOC_NVRAMB_ADDR - IO_BASE + 0x800 - 1,
.flags = IORESOURCE_MEM,
Expand Down
4 changes: 2 additions & 2 deletions arch/mips/kernel/gdb-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1099,12 +1099,12 @@ void adel(void)
* malloc is needed by gdb client in "call func()", even a private one
* will make gdb happy
*/
static void * __attribute_used__ malloc(size_t size)
static void __used *malloc(size_t size)
{
return kmalloc(size, GFP_ATOMIC);
}

static void __attribute_used__ free (void *where)
static void __used free(void *where)
{
kfree(where);
}
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
EXPORT(stext) # used for profiling
EXPORT(_stext)

#ifdef CONFIG_BOOT_RAW
#ifndef CONFIG_BOOT_RAW
/*
* Give us a fighting chance of running if execution beings at the
* kernel load address. This is needed because this platform does
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/kernel/linux32.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ asmlinkage long sys32_fadvise64_64(int fd, int __pad,
}

save_static_function(sys32_clone);
__attribute_used__ noinline static int
static int noinline __used
_sys32_clone(nabi_no_regargs struct pt_regs regs)
{
unsigned long clone_flags;
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/kernel/rtlx.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static irqreturn_t rtlx_interrupt(int irq, void *dev_id)
return IRQ_HANDLED;
}

static __attribute_used__ void dump_rtlx(void)
static void __used dump_rtlx(void)
{
int i;

Expand Down
4 changes: 2 additions & 2 deletions arch/mips/kernel/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,14 @@ sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
}

save_static_function(sys_fork);
__attribute_used__ noinline static int
static int __used noinline
_sys_fork(nabi_no_regargs struct pt_regs regs)
{
return do_fork(SIGCHLD, regs.regs[29], &regs, 0, NULL, NULL);
}

save_static_function(sys_clone);
__attribute_used__ noinline static int
static int __used noinline
_sys_clone(nabi_no_regargs struct pt_regs regs)
{
unsigned long clone_flags;
Expand Down
3 changes: 1 addition & 2 deletions arch/mips/kernel/vpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ struct {
};

static void release_progmem(void *ptr);
/* static __attribute_used__ void dump_vpe(struct vpe * v); */
extern void save_gp_address(unsigned int secbase, unsigned int rel);

/* get the vpe associated with this minor */
Expand Down Expand Up @@ -1024,7 +1023,7 @@ static int vpe_elfload(struct vpe * v)
return 0;
}

__attribute_used__ void dump_vpe(struct vpe * v)
void __used dump_vpe(struct vpe * v)
{
struct tc *t;

Expand Down
2 changes: 1 addition & 1 deletion arch/mips/mm/c-sb1.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ void sb1_flush_cache_data_page(unsigned long)
/*
* Invalidate all caches on this CPU
*/
static void __attribute_used__ local_sb1___flush_cache_all(void)
static void __used local_sb1___flush_cache_all(void)
{
__sb1_writeback_inv_dcache_all();
__sb1_flush_icache_all();
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ void free_initrd_mem(unsigned long start, unsigned long end)
}
#endif

void free_initmem(void)
void __init_refok free_initmem(void)
{
prom_free_prom_memory();
free_init_pages("unused kernel memory",
Expand Down
5 changes: 3 additions & 2 deletions arch/mips/sni/sniprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <asm/addrspace.h>
#include <asm/sni.h>
#include <asm/mipsprom.h>
#include <asm/mipsregs.h>
#include <asm/bootinfo.h>

/* special SNI prom calls */
Expand Down Expand Up @@ -71,7 +72,7 @@ const char *get_system_type(void)
#define SNI_IDPROM_SIZE 0x1000

#ifdef DEBUG
static void sni_idprom_dump(void)
static void __init sni_idprom_dump(void)
{
int i;

Expand All @@ -88,7 +89,7 @@ static void sni_idprom_dump(void)
}
#endif

static void sni_mem_init(void )
static void __init sni_mem_init(void )
{
int i, memsize;
struct membank {
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ void __init toshiba_rbtx4927_timer_setup(struct irqaction *irq)

static int __init toshiba_rbtx4927_rtc_init(void)
{
struct resource res = {
static struct resource __initdata res = {
.start = 0x1c010000,
.end = 0x1c010000 + 0x800 - 1,
.flags = IORESOURCE_MEM,
Expand Down
1 change: 0 additions & 1 deletion include/asm-mips/war.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@
#define ICACHE_REFILLS_WORKAROUND_WAR 1
#endif


/*
* On the R10000 upto version 2.6 (not sure about 2.7) there is a bug that
* may cause ll / sc and lld / scd sequences to execute non-atomically.
Expand Down

0 comments on commit 2f66b52

Please sign in to comment.