Skip to content

Commit

Permalink
potential parse error in ifdef part 3
Browse files Browse the repository at this point in the history
Fix various bits of obviously-busted code which we're not happening to
compile, due to ifdefs.

Signed-off-by: Yoann Padioleau <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Paul Mackerras <[email protected]>
Acked-by: Paul Mundt <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Yoann Padioleau authored and Linus Torvalds committed Jun 9, 2007
1 parent 3cdc0ed commit a17627e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion arch/i386/math-emu/fpu_entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ int save_i387_soft(void *s387, struct _fpstate __user * buf)
return -1;
if ( offset )
if (__copy_to_user(d+other, (u_char *)&S387->st_space, offset))
return -1
return -1;
RE_ENTRANT_CHECK_ON;

return 1;
Expand Down
4 changes: 2 additions & 2 deletions arch/ppc/syslib/qspan_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,13 +365,13 @@ int qspan_pcibios_find_class(unsigned int class_code, unsigned short index,
}

void __init
m8xx_pcibios_fixup(void))
m8xx_pcibios_fixup(void)
{
/* Lots to do here, all board and configuration specific. */
}

void __init
m8xx_setup_pci_ptrs(void))
m8xx_setup_pci_ptrs(void)
{
set_config_access_method(qspan);

Expand Down
8 changes: 4 additions & 4 deletions arch/sh64/kernel/pci_sh5.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,10 +521,10 @@ void __init pcibios_fixup_bus(struct pci_bus *bus)
bus->resource[0]->start = PCIBIOS_MIN_IO;
bus->resource[1]->start = PCIBIOS_MIN_MEM;
#else
bus->resource[0]->end = 0
bus->resource[1]->end = 0
bus->resource[0]->start =0
bus->resource[1]->start = 0;
bus->resource[0]->end = 0;
bus->resource[1]->end = 0;
bus->resource[0]->start =0;
bus->resource[1]->start = 0;
#endif
/* Turn off downstream PF memory address range by default */
bus->resource[2]->start = 1024*1024;
Expand Down
2 changes: 1 addition & 1 deletion drivers/cdrom/mcdx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1053,11 +1053,11 @@ static void __exit mcdx_exit(void)
if (unregister_blkdev(MAJOR_NR, "mcdx") != 0) {
xwarn("cleanup() unregister_blkdev() failed\n");
}
blk_cleanup_queue(mcdx_queue);
#if !MCDX_QUIET
else
xinfo("cleanup() succeeded\n");
#endif
blk_cleanup_queue(mcdx_queue);
}

#ifdef MODULE
Expand Down
2 changes: 1 addition & 1 deletion drivers/tc/zs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2182,7 +2182,7 @@ struct dec_serial_hook zs_kgdbhook = {
.init_info = kgdbhook_init_info,
.rx_char = kgdbhook_rx_char,
.cflags = B38400 | CS8 | CLOCAL,
}
};

void __init zs_kgdb_hook(int tty_num)
{
Expand Down

0 comments on commit a17627e

Please sign in to comment.