Skip to content

Commit f834368

Browse files
Yoann PadioleauLinus Torvalds
Yoann Padioleau
authored and
Linus Torvalds
committed
parse errors in ifdefs
Fix various bits of obviously-busted code which we're not happening to compile, due to ifdefs. Cc: "Luck, Tony" <tony.luck@intel.com> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Richard Henderson <rth@twiddle.net> Cc: Russell King <rmk@arm.linux.org.uk> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Jeff Garzik <jeff@garzik.org> Cc: Jan Kara <jack@ucw.cz> Cc: James Bottomley <James.Bottomley@steeleye.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 632155e commit f834368

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

Documentation/ia64/aliasing-test.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ int scan_rom(char *path, char *file)
197197
return rc;
198198
}
199199

200-
main()
200+
int main()
201201
{
202202
int rc;
203203

arch/alpha/boot/tools/mkbb.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ typedef union __bootblock {
8181
#define bootblock_label __u1.__label
8282
#define bootblock_checksum __u2.__checksum
8383

84-
main(int argc, char ** argv)
84+
int main(int argc, char ** argv)
8585
{
8686
bootblock bootblock_from_disk;
8787
bootblock bootloader_image;

arch/arm/mm/alignment.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
630630

631631
fs = get_fs();
632632
set_fs(KERNEL_DS);
633-
if thumb_mode(regs) {
633+
if (thumb_mode(regs)) {
634634
fault = __get_user(tinstr, (u16 *)(instrptr & ~1));
635635
if (!(fault))
636636
instr = thumb2arm(tinstr);

arch/mips/jmr3927/rbhma3100/kgdb_io.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#define TIMEOUT 0xffffff
3737

3838
static int remoteDebugInitialized = 0;
39-
static void debugInit(int baud)
39+
static void debugInit(int baud);
4040

4141
int putDebugChar(unsigned char c)
4242
{

arch/mips/pci/pci-ocelot.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,19 @@ static inline void pci0WriteConfigReg(unsigned int offset, unsigned int data)
7171
}
7272

7373
static struct resource ocelot_mem_resource = {
74-
start = GT_PCI_MEM_BASE;
75-
end = GT_PCI_MEM_BASE + GT_PCI_MEM_BASE - 1;
74+
.start = GT_PCI_MEM_BASE,
75+
.end = GT_PCI_MEM_BASE + GT_PCI_MEM_BASE - 1,
7676
};
7777

7878
static struct resource ocelot_io_resource = {
79-
start = GT_PCI_IO_BASE;
80-
end = GT_PCI_IO_BASE + GT_PCI_IO_SIZE - 1;
79+
.start = GT_PCI_IO_BASE,
80+
.end = GT_PCI_IO_BASE + GT_PCI_IO_SIZE - 1,
8181
};
8282

8383
static struct pci_controller ocelot_pci_controller = {
84-
.pci_ops = gt64xxx_pci0_ops;
85-
.mem_resource = &ocelot_mem_resource;
86-
.io_resource = &ocelot_io_resource;
84+
.pci_ops = gt64xxx_pci0_ops,
85+
.mem_resource = &ocelot_mem_resource,
86+
.io_resource = &ocelot_io_resource,
8787
};
8888

8989
static int __init ocelot_pcibios_init(void)

drivers/mtd/nand/ppchameleonevb.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,9 @@ static void __exit ppchameleonevb_cleanup(void)
424424

425425
/* Release iomaps */
426426
this = (struct nand_chip *) &ppchameleon_mtd[1];
427-
iounmap((void *) this->IO_ADDR_R;
427+
iounmap((void *) this->IO_ADDR_R);
428428
this = (struct nand_chip *) &ppchameleonevb_mtd[1];
429-
iounmap((void *) this->IO_ADDR_R;
429+
iounmap((void *) this->IO_ADDR_R);
430430

431431
/* Free the MTD device structure */
432432
kfree (ppchameleon_mtd);

drivers/net/fec_8xx/fec_main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ static int fec_enet_rx_common(struct net_device *dev, int *budget)
550550
skbn = dev_alloc_skb(pkt_len + 2);
551551
if (skbn != NULL) {
552552
skb_reserve(skbn, 2); /* align IP header */
553-
skb_copy_from_linear_data(skb
553+
skb_copy_from_linear_data(skb,
554554
skbn->data,
555555
pkt_len);
556556
/* swap */

drivers/scsi/NCR5380.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2625,7 +2625,7 @@ static void NCR5380_reselect(struct Scsi_Host *instance) {
26252625
#ifdef REAL_DMA
26262626
static void NCR5380_dma_complete(NCR5380_instance * instance) {
26272627
NCR5380_local_declare();
2628-
struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata * instance->hostdata);
2628+
struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) instance->hostdata;
26292629
int transferred;
26302630
NCR5380_setup(instance);
26312631

fs/udf/super.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,7 @@ udf_load_partition(struct super_block *sb, kernel_lb_addr *fileset)
13511351

13521352
for (i=0; i<UDF_SB_NUMPARTS(sb); i++)
13531353
{
1354-
switch UDF_SB_PARTTYPE(sb, i)
1354+
switch (UDF_SB_PARTTYPE(sb, i))
13551355
{
13561356
case UDF_VIRTUAL_MAP15:
13571357
case UDF_VIRTUAL_MAP20:

0 commit comments

Comments
 (0)