Skip to content

Commit

Permalink
parse errors in ifdefs
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.

Cc: "Luck, Tony" <[email protected]>
Cc: Ivan Kokshaysky <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Russell King <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Jeff Garzik <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: James Bottomley <[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 1, 2007
1 parent 632155e commit f834368
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Documentation/ia64/aliasing-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ int scan_rom(char *path, char *file)
return rc;
}

main()
int main()
{
int rc;

Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/boot/tools/mkbb.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ typedef union __bootblock {
#define bootblock_label __u1.__label
#define bootblock_checksum __u2.__checksum

main(int argc, char ** argv)
int main(int argc, char ** argv)
{
bootblock bootblock_from_disk;
bootblock bootloader_image;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mm/alignment.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)

fs = get_fs();
set_fs(KERNEL_DS);
if thumb_mode(regs) {
if (thumb_mode(regs)) {
fault = __get_user(tinstr, (u16 *)(instrptr & ~1));
if (!(fault))
instr = thumb2arm(tinstr);
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/jmr3927/rbhma3100/kgdb_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#define TIMEOUT 0xffffff

static int remoteDebugInitialized = 0;
static void debugInit(int baud)
static void debugInit(int baud);

int putDebugChar(unsigned char c)
{
Expand Down
14 changes: 7 additions & 7 deletions arch/mips/pci/pci-ocelot.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ static inline void pci0WriteConfigReg(unsigned int offset, unsigned int data)
}

static struct resource ocelot_mem_resource = {
start = GT_PCI_MEM_BASE;
end = GT_PCI_MEM_BASE + GT_PCI_MEM_BASE - 1;
.start = GT_PCI_MEM_BASE,
.end = GT_PCI_MEM_BASE + GT_PCI_MEM_BASE - 1,
};

static struct resource ocelot_io_resource = {
start = GT_PCI_IO_BASE;
end = GT_PCI_IO_BASE + GT_PCI_IO_SIZE - 1;
.start = GT_PCI_IO_BASE,
.end = GT_PCI_IO_BASE + GT_PCI_IO_SIZE - 1,
};

static struct pci_controller ocelot_pci_controller = {
.pci_ops = gt64xxx_pci0_ops;
.mem_resource = &ocelot_mem_resource;
.io_resource = &ocelot_io_resource;
.pci_ops = gt64xxx_pci0_ops,
.mem_resource = &ocelot_mem_resource,
.io_resource = &ocelot_io_resource,
};

static int __init ocelot_pcibios_init(void)
Expand Down
4 changes: 2 additions & 2 deletions drivers/mtd/nand/ppchameleonevb.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,9 @@ static void __exit ppchameleonevb_cleanup(void)

/* Release iomaps */
this = (struct nand_chip *) &ppchameleon_mtd[1];
iounmap((void *) this->IO_ADDR_R;
iounmap((void *) this->IO_ADDR_R);
this = (struct nand_chip *) &ppchameleonevb_mtd[1];
iounmap((void *) this->IO_ADDR_R;
iounmap((void *) this->IO_ADDR_R);

/* Free the MTD device structure */
kfree (ppchameleon_mtd);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/fec_8xx/fec_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ static int fec_enet_rx_common(struct net_device *dev, int *budget)
skbn = dev_alloc_skb(pkt_len + 2);
if (skbn != NULL) {
skb_reserve(skbn, 2); /* align IP header */
skb_copy_from_linear_data(skb
skb_copy_from_linear_data(skb,
skbn->data,
pkt_len);
/* swap */
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/NCR5380.c
Original file line number Diff line number Diff line change
Expand Up @@ -2625,7 +2625,7 @@ static void NCR5380_reselect(struct Scsi_Host *instance) {
#ifdef REAL_DMA
static void NCR5380_dma_complete(NCR5380_instance * instance) {
NCR5380_local_declare();
struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata * instance->hostdata);
struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) instance->hostdata;
int transferred;
NCR5380_setup(instance);

Expand Down
2 changes: 1 addition & 1 deletion fs/udf/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ udf_load_partition(struct super_block *sb, kernel_lb_addr *fileset)

for (i=0; i<UDF_SB_NUMPARTS(sb); i++)
{
switch UDF_SB_PARTTYPE(sb, i)
switch (UDF_SB_PARTTYPE(sb, i))
{
case UDF_VIRTUAL_MAP15:
case UDF_VIRTUAL_MAP20:
Expand Down

0 comments on commit f834368

Please sign in to comment.