Commit 44456d37 authored by Olaf Hering's avatar Olaf Hering Committed by Linus Torvalds

[PATCH] turn many #if $undefined_string into #ifdef $undefined_string

turn many #if $undefined_string into #ifdef $undefined_string to fix some
warnings after -Wno-def was added to global CFLAGS
Signed-off-by: default avatarOlaf Hering <olh@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 02b77569
...@@ -141,7 +141,7 @@ void udbg_init_scc(struct device_node *np) ...@@ -141,7 +141,7 @@ void udbg_init_scc(struct device_node *np)
#endif /* CONFIG_PPC_PMAC */ #endif /* CONFIG_PPC_PMAC */
#if CONFIG_PPC_PMAC #ifdef CONFIG_PPC_PMAC
static void udbg_real_putc(unsigned char c) static void udbg_real_putc(unsigned char c)
{ {
while ((real_readb(sccc) & SCC_TXRDY) == 0) while ((real_readb(sccc) & SCC_TXRDY) == 0)
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
#include <asm/types.h> #include <asm/types.h>
#if __BYTE_ORDER == __BIG_ENDIAN #if defined(__BIG_ENDIAN)
# define ntohll(x) (x) # define ntohll(x) (x)
# define htonll(x) (x) # define htonll(x) (x)
#elif __BYTE_ORDER == __LITTLE_ENDIAN #elif defined(__LITTLE_ENDIAN)
# define ntohll(x) bswap_64(x) # define ntohll(x) bswap_64(x)
# define htonll(x) bswap_64(x) # define htonll(x) bswap_64(x)
#else #else
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
void handle_syscall(union uml_pt_regs *regs) void handle_syscall(union uml_pt_regs *regs)
{ {
long result; long result;
#if UML_CONFIG_SYSCALL_DEBUG #ifdef UML_CONFIG_SYSCALL_DEBUG
int index; int index;
index = record_syscall_start(UPT_SYSCALL_NR(regs)); index = record_syscall_start(UPT_SYSCALL_NR(regs));
...@@ -27,7 +27,7 @@ void handle_syscall(union uml_pt_regs *regs) ...@@ -27,7 +27,7 @@ void handle_syscall(union uml_pt_regs *regs)
REGS_SET_SYSCALL_RETURN(regs->skas.regs, result); REGS_SET_SYSCALL_RETURN(regs->skas.regs, result);
syscall_trace(regs, 1); syscall_trace(regs, 1);
#if UML_CONFIG_SYSCALL_DEBUG #ifdef UML_CONFIG_SYSCALL_DEBUG
record_syscall_end(index, result); record_syscall_end(index, result);
#endif #endif
} }
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <stddef.h> #include <stddef.h>
#include "init.h" #include "init.h"
#include "elf_user.h" #include "elf_user.h"
#include <asm/elf.h>
#if ELF_CLASS == ELFCLASS32 #if ELF_CLASS == ELFCLASS32
typedef Elf32_auxv_t elf_auxv_t; typedef Elf32_auxv_t elf_auxv_t;
......
...@@ -42,7 +42,7 @@ extern int ia32_setup_arg_pages(struct linux_binprm *bprm, ...@@ -42,7 +42,7 @@ extern int ia32_setup_arg_pages(struct linux_binprm *bprm,
static int load_aout_binary(struct linux_binprm *, struct pt_regs * regs); static int load_aout_binary(struct linux_binprm *, struct pt_regs * regs);
static int load_aout_library(struct file*); static int load_aout_library(struct file*);
#if CORE_DUMP #ifdef CORE_DUMP
static int aout_core_dump(long signr, struct pt_regs * regs, struct file *file); static int aout_core_dump(long signr, struct pt_regs * regs, struct file *file);
/* /*
...@@ -103,7 +103,7 @@ static struct linux_binfmt aout_format = { ...@@ -103,7 +103,7 @@ static struct linux_binfmt aout_format = {
.module = THIS_MODULE, .module = THIS_MODULE,
.load_binary = load_aout_binary, .load_binary = load_aout_binary,
.load_shlib = load_aout_library, .load_shlib = load_aout_library,
#if CORE_DUMP #ifdef CORE_DUMP
.core_dump = aout_core_dump, .core_dump = aout_core_dump,
#endif #endif
.min_coredump = PAGE_SIZE .min_coredump = PAGE_SIZE
...@@ -120,7 +120,7 @@ static void set_brk(unsigned long start, unsigned long end) ...@@ -120,7 +120,7 @@ static void set_brk(unsigned long start, unsigned long end)
up_write(&current->mm->mmap_sem); up_write(&current->mm->mmap_sem);
} }
#if CORE_DUMP #ifdef CORE_DUMP
/* /*
* These are the only things you should do on a core-file: use only these * These are the only things you should do on a core-file: use only these
* macros to write out all the necessary info. * macros to write out all the necessary info.
......
...@@ -285,7 +285,7 @@ static __cpuinit void sync_tsc(void) ...@@ -285,7 +285,7 @@ static __cpuinit void sync_tsc(void)
int i, done = 0; int i, done = 0;
long delta, adj, adjust_latency = 0; long delta, adj, adjust_latency = 0;
unsigned long flags, rt, master_time_stamp, bound; unsigned long flags, rt, master_time_stamp, bound;
#if DEBUG_TSC_SYNC #ifdef DEBUG_TSC_SYNC
static struct syncdebug { static struct syncdebug {
long rt; /* roundtrip time */ long rt; /* roundtrip time */
long master; /* master's timestamp */ long master; /* master's timestamp */
...@@ -321,7 +321,7 @@ static __cpuinit void sync_tsc(void) ...@@ -321,7 +321,7 @@ static __cpuinit void sync_tsc(void)
rdtscll(t); rdtscll(t);
wrmsrl(MSR_IA32_TSC, t + adj); wrmsrl(MSR_IA32_TSC, t + adj);
} }
#if DEBUG_TSC_SYNC #ifdef DEBUG_TSC_SYNC
t[i].rt = rt; t[i].rt = rt;
t[i].master = master_time_stamp; t[i].master = master_time_stamp;
t[i].diff = delta; t[i].diff = delta;
...@@ -331,7 +331,7 @@ static __cpuinit void sync_tsc(void) ...@@ -331,7 +331,7 @@ static __cpuinit void sync_tsc(void)
} }
spin_unlock_irqrestore(&tsc_sync_lock, flags); spin_unlock_irqrestore(&tsc_sync_lock, flags);
#if DEBUG_TSC_SYNC #ifdef DEBUG_TSC_SYNC
for (i = 0; i < NUM_ROUNDS; ++i) for (i = 0; i < NUM_ROUNDS; ++i)
printk("rt=%5ld master=%5ld diff=%5ld adjlat=%5ld\n", printk("rt=%5ld master=%5ld diff=%5ld adjlat=%5ld\n",
t[i].rt, t[i].master, t[i].diff, t[i].lat); t[i].rt, t[i].master, t[i].diff, t[i].lat);
...@@ -537,7 +537,7 @@ void __cpuinit start_secondary(void) ...@@ -537,7 +537,7 @@ void __cpuinit start_secondary(void)
extern volatile unsigned long init_rsp; extern volatile unsigned long init_rsp;
extern void (*initial_code)(void); extern void (*initial_code)(void);
#if APIC_DEBUG #ifdef APIC_DEBUG
static void inquire_remote_apic(int apicid) static void inquire_remote_apic(int apicid)
{ {
unsigned i, regs[] = { APIC_ID >> 4, APIC_LVR >> 4, APIC_SPIV >> 4 }; unsigned i, regs[] = { APIC_ID >> 4, APIC_LVR >> 4, APIC_SPIV >> 4 };
...@@ -841,7 +841,7 @@ static int __cpuinit do_boot_cpu(int cpu, int apicid) ...@@ -841,7 +841,7 @@ static int __cpuinit do_boot_cpu(int cpu, int apicid)
else else
/* trampoline code not run */ /* trampoline code not run */
printk("Not responding.\n"); printk("Not responding.\n");
#if APIC_DEBUG #ifdef APIC_DEBUG
inquire_remote_apic(apicid); inquire_remote_apic(apicid);
#endif #endif
} }
......
...@@ -1582,7 +1582,7 @@ static int carm_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -1582,7 +1582,7 @@ static int carm_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
if (rc) if (rc)
goto err_out; goto err_out;
#if IF_64BIT_DMA_IS_POSSIBLE /* grrrr... */ #ifdef IF_64BIT_DMA_IS_POSSIBLE /* grrrr... */
rc = pci_set_dma_mask(pdev, DMA_64BIT_MASK); rc = pci_set_dma_mask(pdev, DMA_64BIT_MASK);
if (!rc) { if (!rc) {
rc = pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK); rc = pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK);
...@@ -1601,7 +1601,7 @@ static int carm_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -1601,7 +1601,7 @@ static int carm_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
goto err_out_regions; goto err_out_regions;
} }
pci_dac = 0; pci_dac = 0;
#if IF_64BIT_DMA_IS_POSSIBLE /* grrrr... */ #ifdef IF_64BIT_DMA_IS_POSSIBLE /* grrrr... */
} }
#endif #endif
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
*/ */
#if RCS #ifdef RCS
static const char *mcdx_c_version static const char *mcdx_c_version
= "$Id: mcdx.c,v 1.21 1997/01/26 07:12:59 davem Exp $"; = "$Id: mcdx.c,v 1.21 1997/01/26 07:12:59 davem Exp $";
#endif #endif
...@@ -706,7 +706,7 @@ static int mcdx_open(struct cdrom_device_info *cdi, int purpose) ...@@ -706,7 +706,7 @@ static int mcdx_open(struct cdrom_device_info *cdi, int purpose)
xtrace(OPENCLOSE, "open() init irq generation\n"); xtrace(OPENCLOSE, "open() init irq generation\n");
if (-1 == mcdx_config(stuffp, 1)) if (-1 == mcdx_config(stuffp, 1))
return -EIO; return -EIO;
#if FALLBACK #ifdef FALLBACK
/* Set the read speed */ /* Set the read speed */
xwarn("AAA %x AAA\n", stuffp->readcmd); xwarn("AAA %x AAA\n", stuffp->readcmd);
if (stuffp->readerrs) if (stuffp->readerrs)
...@@ -1216,7 +1216,7 @@ static int __init mcdx_init_drive(int drive) ...@@ -1216,7 +1216,7 @@ static int __init mcdx_init_drive(int drive)
} }
#if WE_KNOW_WHY #ifdef WE_KNOW_WHY
/* irq 11 -> channel register */ /* irq 11 -> channel register */
outb(0x50, stuffp->wreg_chn); outb(0x50, stuffp->wreg_chn);
#endif #endif
...@@ -1294,7 +1294,7 @@ static int mcdx_transfer(struct s_drive_stuff *stuffp, ...@@ -1294,7 +1294,7 @@ static int mcdx_transfer(struct s_drive_stuff *stuffp,
ans = mcdx_xfer(stuffp, p, sector, nr_sectors); ans = mcdx_xfer(stuffp, p, sector, nr_sectors);
return ans; return ans;
#if FALLBACK #ifdef FALLBACK
if (-1 == ans) if (-1 == ans)
stuffp->readerrs++; stuffp->readerrs++;
else else
......
...@@ -902,7 +902,7 @@ static int RIOBootComplete( struct rio_info *p, struct Host *HostP, uint Rup, st ...@@ -902,7 +902,7 @@ static int RIOBootComplete( struct rio_info *p, struct Host *HostP, uint Rup, st
(HostP->Mapping[entry].RtaUniqueNum==RtaUniq)) (HostP->Mapping[entry].RtaUniqueNum==RtaUniq))
{ {
HostP->Mapping[entry].Flags |= RTA_BOOTED|RTA_NEWBOOT; HostP->Mapping[entry].Flags |= RTA_BOOTED|RTA_NEWBOOT;
#if NEED_TO_FIX #ifdef NEED_TO_FIX
RIO_SV_BROADCAST(HostP->svFlags[entry]); RIO_SV_BROADCAST(HostP->svFlags[entry]);
#endif #endif
if ( (sysport=HostP->Mapping[entry].SysPort) != NO_PORT ) if ( (sysport=HostP->Mapping[entry].SysPort) != NO_PORT )
...@@ -918,7 +918,7 @@ static int RIOBootComplete( struct rio_info *p, struct Host *HostP, uint Rup, st ...@@ -918,7 +918,7 @@ static int RIOBootComplete( struct rio_info *p, struct Host *HostP, uint Rup, st
{ {
entry2 = HostP->Mapping[entry].ID2 - 1; entry2 = HostP->Mapping[entry].ID2 - 1;
HostP->Mapping[entry2].Flags |= RTA_BOOTED|RTA_NEWBOOT; HostP->Mapping[entry2].Flags |= RTA_BOOTED|RTA_NEWBOOT;
#if NEED_TO_FIX #ifdef NEED_TO_FIX
RIO_SV_BROADCAST(HostP->svFlags[entry2]); RIO_SV_BROADCAST(HostP->svFlags[entry2]);
#endif #endif
sysport = HostP->Mapping[entry2].SysPort; sysport = HostP->Mapping[entry2].SysPort;
...@@ -1143,7 +1143,7 @@ static int RIOBootComplete( struct rio_info *p, struct Host *HostP, uint Rup, st ...@@ -1143,7 +1143,7 @@ static int RIOBootComplete( struct rio_info *p, struct Host *HostP, uint Rup, st
CCOPY( MapP->Name, HostP->Mapping[entry].Name, MAX_NAME_LEN ); CCOPY( MapP->Name, HostP->Mapping[entry].Name, MAX_NAME_LEN );
HostP->Mapping[entry].Flags = HostP->Mapping[entry].Flags =
SLOT_IN_USE | RTA_BOOTED | RTA_NEWBOOT; SLOT_IN_USE | RTA_BOOTED | RTA_NEWBOOT;
#if NEED_TO_FIX #ifdef NEED_TO_FIX
RIO_SV_BROADCAST(HostP->svFlags[entry]); RIO_SV_BROADCAST(HostP->svFlags[entry]);
#endif #endif
RIOReMapPorts( p, HostP, &HostP->Mapping[entry] ); RIOReMapPorts( p, HostP, &HostP->Mapping[entry] );
...@@ -1159,7 +1159,7 @@ static int RIOBootComplete( struct rio_info *p, struct Host *HostP, uint Rup, st ...@@ -1159,7 +1159,7 @@ static int RIOBootComplete( struct rio_info *p, struct Host *HostP, uint Rup, st
"This RTA has a tentative entry on another host - delete that entry (1)\n"); "This RTA has a tentative entry on another host - delete that entry (1)\n");
HostP->Mapping[entry].Flags = HostP->Mapping[entry].Flags =
SLOT_TENTATIVE | RTA_BOOTED | RTA_NEWBOOT; SLOT_TENTATIVE | RTA_BOOTED | RTA_NEWBOOT;
#if NEED_TO_FIX #ifdef NEED_TO_FIX
RIO_SV_BROADCAST(HostP->svFlags[entry]); RIO_SV_BROADCAST(HostP->svFlags[entry]);
#endif #endif
} }
...@@ -1169,7 +1169,7 @@ static int RIOBootComplete( struct rio_info *p, struct Host *HostP, uint Rup, st ...@@ -1169,7 +1169,7 @@ static int RIOBootComplete( struct rio_info *p, struct Host *HostP, uint Rup, st
{ {
HostP->Mapping[entry2].Flags = SLOT_IN_USE | HostP->Mapping[entry2].Flags = SLOT_IN_USE |
RTA_BOOTED | RTA_NEWBOOT | RTA16_SECOND_SLOT; RTA_BOOTED | RTA_NEWBOOT | RTA16_SECOND_SLOT;
#if NEED_TO_FIX #ifdef NEED_TO_FIX
RIO_SV_BROADCAST(HostP->svFlags[entry2]); RIO_SV_BROADCAST(HostP->svFlags[entry2]);
#endif #endif
HostP->Mapping[entry2].SysPort = MapP2->SysPort; HostP->Mapping[entry2].SysPort = MapP2->SysPort;
...@@ -1188,7 +1188,7 @@ static int RIOBootComplete( struct rio_info *p, struct Host *HostP, uint Rup, st ...@@ -1188,7 +1188,7 @@ static int RIOBootComplete( struct rio_info *p, struct Host *HostP, uint Rup, st
else else
HostP->Mapping[entry2].Flags = SLOT_TENTATIVE | HostP->Mapping[entry2].Flags = SLOT_TENTATIVE |
RTA_BOOTED | RTA_NEWBOOT | RTA16_SECOND_SLOT; RTA_BOOTED | RTA_NEWBOOT | RTA16_SECOND_SLOT;
#if NEED_TO_FIX #ifdef NEED_TO_FIX
RIO_SV_BROADCAST(HostP->svFlags[entry2]); RIO_SV_BROADCAST(HostP->svFlags[entry2]);
#endif #endif
bzero( (caddr_t)MapP2, sizeof(struct Map) ); bzero( (caddr_t)MapP2, sizeof(struct Map) );
......
...@@ -1023,7 +1023,7 @@ RIOFreeDisconnected(struct rio_info *p, struct Host *HostP, int unit) ...@@ -1023,7 +1023,7 @@ RIOFreeDisconnected(struct rio_info *p, struct Host *HostP, int unit)
if (link < LINKS_PER_UNIT) if (link < LINKS_PER_UNIT)
return 1; return 1;
#if NEED_TO_FIX_THIS #ifdef NEED_TO_FIX_THIS
/* Ok so all the links are disconnected. But we may have only just /* Ok so all the links are disconnected. But we may have only just
** made this slot tentative and not yet received a topology update. ** made this slot tentative and not yet received a topology update.
** Lets check how long ago we made it tentative. ** Lets check how long ago we made it tentative.
......
...@@ -771,7 +771,7 @@ int RIOAssignRta( struct rio_info *p, struct Map *MapP ) ...@@ -771,7 +771,7 @@ int RIOAssignRta( struct rio_info *p, struct Map *MapP )
if ((MapP->Flags & RTA16_SECOND_SLOT) == 0) if ((MapP->Flags & RTA16_SECOND_SLOT) == 0)
CCOPY( MapP->Name, HostMapP->Name, MAX_NAME_LEN ); CCOPY( MapP->Name, HostMapP->Name, MAX_NAME_LEN );
HostMapP->Flags = SLOT_IN_USE | RTA_BOOTED; HostMapP->Flags = SLOT_IN_USE | RTA_BOOTED;
#if NEED_TO_FIX #ifdef NEED_TO_FIX
RIO_SV_BROADCAST(p->RIOHosts[host].svFlags[MapP->ID-1]); RIO_SV_BROADCAST(p->RIOHosts[host].svFlags[MapP->ID-1]);
#endif #endif
if (MapP->Flags & RTA16_SECOND_SLOT) if (MapP->Flags & RTA16_SECOND_SLOT)
......
...@@ -169,6 +169,7 @@ MODULE_DEVICE_TABLE(ieee1394, sbp2_id_table); ...@@ -169,6 +169,7 @@ MODULE_DEVICE_TABLE(ieee1394, sbp2_id_table);
* Debug levels, configured via kernel config, or enable here. * Debug levels, configured via kernel config, or enable here.
*/ */
#define CONFIG_IEEE1394_SBP2_DEBUG 0
/* #define CONFIG_IEEE1394_SBP2_DEBUG_ORBS */ /* #define CONFIG_IEEE1394_SBP2_DEBUG_ORBS */
/* #define CONFIG_IEEE1394_SBP2_DEBUG_DMA */ /* #define CONFIG_IEEE1394_SBP2_DEBUG_DMA */
/* #define CONFIG_IEEE1394_SBP2_DEBUG 1 */ /* #define CONFIG_IEEE1394_SBP2_DEBUG 1 */
......
...@@ -353,7 +353,7 @@ l3dss1_parse_facility(struct PStack *st, struct l3_process *pc, ...@@ -353,7 +353,7 @@ l3dss1_parse_facility(struct PStack *st, struct l3_process *pc,
{ l3dss1_dummy_invoke(st, cr, id, ident, p, nlen); { l3dss1_dummy_invoke(st, cr, id, ident, p, nlen);
return; return;
} }
#if HISAX_DE_AOC #ifdef HISAX_DE_AOC
{ {
#define FOO1(s,a,b) \ #define FOO1(s,a,b) \
...@@ -977,7 +977,7 @@ l3dss1_release_cmpl(struct l3_process *pc, u_char pr, void *arg) ...@@ -977,7 +977,7 @@ l3dss1_release_cmpl(struct l3_process *pc, u_char pr, void *arg)
dss1_release_l3_process(pc); dss1_release_l3_process(pc);
} }
#if EXT_BEARER_CAPS #ifdef EXT_BEARER_CAPS
static u_char * static u_char *
EncodeASyncParams(u_char * p, u_char si2) EncodeASyncParams(u_char * p, u_char si2)
...@@ -1369,7 +1369,7 @@ l3dss1_setup_req(struct l3_process *pc, u_char pr, ...@@ -1369,7 +1369,7 @@ l3dss1_setup_req(struct l3_process *pc, u_char pr,
*p++ = *sub++ & 0x7f; *p++ = *sub++ & 0x7f;
} }
} }
#if EXT_BEARER_CAPS #ifdef EXT_BEARER_CAPS
if ((pc->para.setup.si2 >= 160) && (pc->para.setup.si2 <= 175)) { // sync. Bitratenadaption, V.110/X.30 if ((pc->para.setup.si2 >= 160) && (pc->para.setup.si2 <= 175)) { // sync. Bitratenadaption, V.110/X.30
*p++ = IE_LLC; *p++ = IE_LLC;
...@@ -1609,7 +1609,7 @@ l3dss1_setup(struct l3_process *pc, u_char pr, void *arg) ...@@ -1609,7 +1609,7 @@ l3dss1_setup(struct l3_process *pc, u_char pr, void *arg)
case 0x08: /* Unrestricted digital information */ case 0x08: /* Unrestricted digital information */
pc->para.setup.si1 = 7; pc->para.setup.si1 = 7;
/* JIM, 05.11.97 I wanna set service indicator 2 */ /* JIM, 05.11.97 I wanna set service indicator 2 */
#if EXT_BEARER_CAPS #ifdef EXT_BEARER_CAPS
pc->para.setup.si2 = DecodeSI2(skb); pc->para.setup.si2 = DecodeSI2(skb);
#endif #endif
break; break;
......
...@@ -108,7 +108,7 @@ static unsigned char *bitmap_alloc_page(struct bitmap *bitmap) ...@@ -108,7 +108,7 @@ static unsigned char *bitmap_alloc_page(struct bitmap *bitmap)
{ {
unsigned char *page; unsigned char *page;
#if INJECT_FAULTS_1 #ifdef INJECT_FAULTS_1
page = NULL; page = NULL;
#else #else
page = kmalloc(PAGE_SIZE, GFP_NOIO); page = kmalloc(PAGE_SIZE, GFP_NOIO);
...@@ -843,7 +843,7 @@ static int bitmap_init_from_disk(struct bitmap *bitmap, int in_sync) ...@@ -843,7 +843,7 @@ static int bitmap_init_from_disk(struct bitmap *bitmap, int in_sync)
BUG_ON(!file && !bitmap->offset); BUG_ON(!file && !bitmap->offset);
#if INJECT_FAULTS_3 #ifdef INJECT_FAULTS_3
outofdate = 1; outofdate = 1;
#else #else
outofdate = bitmap->flags & BITMAP_STALE; outofdate = bitmap->flags & BITMAP_STALE;
...@@ -1187,7 +1187,7 @@ static int bitmap_start_daemon(struct bitmap *bitmap, mdk_thread_t **ptr, ...@@ -1187,7 +1187,7 @@ static int bitmap_start_daemon(struct bitmap *bitmap, mdk_thread_t **ptr,
spin_unlock_irqrestore(&bitmap->lock, flags); spin_unlock_irqrestore(&bitmap->lock, flags);
#if INJECT_FATAL_FAULT_2 #ifdef INJECT_FATAL_FAULT_2
daemon = NULL; daemon = NULL;
#else #else
sprintf(namebuf, "%%s_%s", name); sprintf(namebuf, "%%s_%s", name);
...@@ -1552,7 +1552,7 @@ int bitmap_create(mddev_t *mddev) ...@@ -1552,7 +1552,7 @@ int bitmap_create(mddev_t *mddev)
bitmap->syncchunk = ~0UL; bitmap->syncchunk = ~0UL;
#if INJECT_FATAL_FAULT_1 #ifdef INJECT_FATAL_FAULT_1
bitmap->bp = NULL; bitmap->bp = NULL;
#else #else
bitmap->bp = kmalloc(pages * sizeof(*bitmap->bp), GFP_KERNEL); bitmap->bp = kmalloc(pages * sizeof(*bitmap->bp), GFP_KERNEL);
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <linux/mtd/mtd.h> #include <linux/mtd/mtd.h>
#include <linux/mtd/doc2000.h> #include <linux/mtd/doc2000.h>
#define DEBUG 0
/* need to undef it (from asm/termbits.h) */ /* need to undef it (from asm/termbits.h) */
#undef B0 #undef B0
......
...@@ -126,14 +126,14 @@ ...@@ -126,14 +126,14 @@
#define USE_IO_OPS 1 #define USE_IO_OPS 1
#endif #endif
/* define to 1 to enable copious debugging info */ /* define to 1, 2 or 3 to enable copious debugging info */
#undef RTL8139_DEBUG #define RTL8139_DEBUG 0
/* define to 1 to disable lightweight runtime debugging checks */ /* define to 1 to disable lightweight runtime debugging checks */
#undef RTL8139_NDEBUG #undef RTL8139_NDEBUG
#ifdef RTL8139_DEBUG #if RTL8139_DEBUG
/* note: prints function name for you */ /* note: prints function name for you */
# define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __FUNCTION__ , ## args) # define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __FUNCTION__ , ## args)
#else #else
......
...@@ -1290,7 +1290,7 @@ static irqreturn_t amd8111e_interrupt(int irq, void *dev_id, struct pt_regs *reg ...@@ -1290,7 +1290,7 @@ static irqreturn_t amd8111e_interrupt(int irq, void *dev_id, struct pt_regs *reg
writel(intr0, mmio + INT0); writel(intr0, mmio + INT0);
/* Check if Receive Interrupt has occurred. */ /* Check if Receive Interrupt has occurred. */
#if CONFIG_AMD8111E_NAPI #ifdef CONFIG_AMD8111E_NAPI
if(intr0 & RINT0){ if(intr0 & RINT0){
if(netif_rx_schedule_prep(dev)){ if(netif_rx_schedule_prep(dev)){
/* Disable receive interupts */ /* Disable receive interupts */
......
...@@ -129,9 +129,9 @@ bad_clone_list[] __initdata = { ...@@ -129,9 +129,9 @@ bad_clone_list[] __initdata = {
#define NESM_START_PG 0x40 /* First page of TX buffer */ #define NESM_START_PG 0x40 /* First page of TX buffer */
#define NESM_STOP_PG 0x80 /* Last page +1 of RX ring */ #define NESM_STOP_PG 0x80 /* Last page +1 of RX ring */
#ifdef CONFIG_PLAT_MAPPI #if defined(CONFIG_PLAT_MAPPI)
# define DCR_VAL 0x4b # define DCR_VAL 0x4b
#elif CONFIG_PLAT_OAKS32R #elif defined(CONFIG_PLAT_OAKS32R)
# define DCR_VAL 0x48 # define DCR_VAL 0x48
#else #else
# define DCR_VAL 0x49 # define DCR_VAL 0x49
......
...@@ -182,13 +182,13 @@ static int irq_probe(void); ...@@ -182,13 +182,13 @@ static int irq_probe(void);
static void *bios_base; static void *bios_base;
#endif #endif
#if PORT_BASE #ifdef PORT_BASE
static int port_base = PORT_BASE; static int port_base = PORT_BASE;
#else #else
static int port_base; static int port_base;
#endif #endif
#if IRQ_LEV #ifdef IRQ_LEV
static int irq_level = IRQ_LEV; static int irq_level = IRQ_LEV;
#else #else
static int irq_level = -1; /* 0 is 'no irq', so use -1 for 'uninitialized' */ static int irq_level = -1; /* 0 is 'no irq', so use -1 for 'uninitialized' */
......
...@@ -1505,7 +1505,7 @@ ahd_linux_dev_reset(Scsi_Cmnd *cmd) ...@@ -1505,7 +1505,7 @@ ahd_linux_dev_reset(Scsi_Cmnd *cmd)
memset(recovery_cmd, 0, sizeof(struct scsi_cmnd)); memset(recovery_cmd, 0, sizeof(struct scsi_cmnd));
recovery_cmd->device = cmd->device; recovery_cmd->device = cmd->device;
recovery_cmd->scsi_done = ahd_linux_dev_reset_complete; recovery_cmd->scsi_done = ahd_linux_dev_reset_complete;
#if AHD_DEBUG #ifdef AHD_DEBUG
if ((ahd_debug & AHD_SHOW_RECOVERY) != 0) if ((ahd_debug & AHD_SHOW_RECOVERY) != 0)
printf("%s:%d:%d:%d: Device reset called for cmd %p\n", printf("%s:%d:%d:%d: Device reset called for cmd %p\n",
ahd_name(ahd), cmd->device->channel, cmd->device->id, ahd_name(ahd), cmd->device->channel, cmd->device->id,
......
...@@ -582,7 +582,7 @@ ahd_check_extport(struct ahd_softc *ahd) ...@@ -582,7 +582,7 @@ ahd_check_extport(struct ahd_softc *ahd)
} }
} }
#if AHD_DEBUG #ifdef AHD_DEBUG
if (have_seeprom != 0 if (have_seeprom != 0
&& (ahd_debug & AHD_DUMP_SEEPROM) != 0) { && (ahd_debug & AHD_DUMP_SEEPROM) != 0) {
uint16_t *sc_data; uint16_t *sc_data;
......
...@@ -76,7 +76,7 @@ typedef unsigned long sigLONG; ...@@ -76,7 +76,7 @@ typedef unsigned long sigLONG;
#endif /* aix */ #endif /* aix */
#endif #endif
/* For the Macintosh */ /* For the Macintosh */
#if STRUCTALIGNMENTSUPPORTED #ifdef STRUCTALIGNMENTSUPPORTED
#pragma options align=mac68k #pragma options align=mac68k
#endif #endif
...@@ -332,7 +332,7 @@ typedef struct dpt_sig { ...@@ -332,7 +332,7 @@ typedef struct dpt_sig {
#endif /* aix */ #endif /* aix */
#endif #endif
/* For the Macintosh */ /* For the Macintosh */
#if STRUCTALIGNMENTSUPPORTED #ifdef STRUCTALIGNMENTSUPPORTED
#pragma options align=reset #pragma options align=reset
#endif #endif
......
...@@ -92,10 +92,6 @@ ...@@ -92,10 +92,6 @@
#define DTC_PUBLIC_RELEASE 2 #define DTC_PUBLIC_RELEASE 2
/*#define DTCDEBUG 0x1*/
#define DTCDEBUG_INIT 0x1
#define DTCDEBUG_TRANSFER 0x2
/* /*
* The DTC3180 & 3280 boards are memory mapped. * The DTC3180 & 3280 boards are memory mapped.
* *
......
...@@ -28,6 +28,10 @@ ...@@ -28,6 +28,10 @@
#ifndef DTC3280_H #ifndef DTC3280_H
#define DTC3280_H #define DTC3280_H
#define DTCDEBUG 0
#define DTCDEBUG_INIT 0x1
#define DTCDEBUG_TRANSFER 0x2
static int dtc_abort(Scsi_Cmnd *); static int dtc_abort(Scsi_Cmnd *);
static int dtc_biosparam(struct scsi_device *, struct block_device *, static int dtc_biosparam(struct scsi_device *, struct block_device *,
sector_t, int*); sector_t, int*);
......
...@@ -716,7 +716,7 @@ static int init_tulip(HCS * pCurHcb, SCB * scbp, int tul_num_scb, ...@@ -716,7 +716,7 @@ static int init_tulip(HCS * pCurHcb, SCB * scbp, int tul_num_scb,
pCurHcb->HCS_SCSI_ID = i91unvramp->NVM_SCSIInfo[0].NVM_ChSCSIID; pCurHcb->HCS_SCSI_ID = i91unvramp->NVM_SCSIInfo[0].NVM_ChSCSIID;
pCurHcb->HCS_IdMask = ~(1 << pCurHcb->HCS_SCSI_ID); pCurHcb->HCS_IdMask = ~(1 << pCurHcb->HCS_SCSI_ID);
#if CHK_PARITY #ifdef CHK_PARITY
/* Enable parity error response */ /* Enable parity error response */
TUL_WR(pCurHcb->HCS_Base + TUL_PCMD, TUL_RD(pCurHcb->HCS_Base, TUL_PCMD) | 0x40); TUL_WR(pCurHcb->HCS_Base + TUL_PCMD, TUL_RD(pCurHcb->HCS_Base, TUL_PCMD) | 0x40);
#endif #endif
......
...@@ -30,8 +30,9 @@ memcpy_toio() and memcpy_fromio() can be used. ...@@ -30,8 +30,9 @@ memcpy_toio() and memcpy_fromio() can be used.
However on a big-endian host, copy 4 bytes at a time, However on a big-endian host, copy 4 bytes at a time,
using writel() and readl(). using writel() and readl().
*******************************************************************/ *******************************************************************/
#include <asm/byteorder.h>
#if __BIG_ENDIAN #ifdef __BIG_ENDIAN
static inline void static inline void
lpfc_memcpy_to_slim(void __iomem *dest, void *src, unsigned int bytes) lpfc_memcpy_to_slim(void __iomem *dest, void *src, unsigned int bytes)
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
* included with this package. * * included with this package. *
*******************************************************************/ *******************************************************************/
#include <asm/byteorder.h>
struct lpfc_hba; struct lpfc_hba;
#define list_remove_head(list, entry, type, member) \ #define list_remove_head(list, entry, type, member) \
...@@ -81,7 +83,7 @@ struct fcp_cmnd { ...@@ -81,7 +83,7 @@ struct fcp_cmnd {
/* # of bits to shift lun id to end up in right /* # of bits to shift lun id to end up in right
* payload word, little endian = 8, big = 16. * payload word, little endian = 8, big = 16.
*/ */
#if __BIG_ENDIAN #ifdef __BIG_ENDIAN
#define FC_LUN_SHIFT 16 #define FC_LUN_SHIFT 16
#define FC_ADDR_MODE_SHIFT 24 #define FC_ADDR_MODE_SHIFT 24
#else /* __LITTLE_ENDIAN */ #else /* __LITTLE_ENDIAN */
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#define PSEUDO_DMA #define PSEUDO_DMA
#define FOO #define FOO
#define UNSAFE /* Not unsafe for PAS16 -- use it */ #define UNSAFE /* Not unsafe for PAS16 -- use it */
#define PDEBUG 0
/* /*
* This driver adapted from Drew Eckhardt's Trantor T128 driver * This driver adapted from Drew Eckhardt's Trantor T128 driver
......
...@@ -151,6 +151,16 @@ ...@@ -151,6 +151,16 @@
*/ */
#define SYM_CONF_MIN_ASYNC (40) #define SYM_CONF_MIN_ASYNC (40)
/*
* MEMORY ALLOCATOR.
*/
#define SYM_MEM_WARN 1 /* Warn on failed operations */
#define SYM_MEM_PAGE_ORDER 0 /* 1 PAGE maximum */
#define SYM_MEM_CLUSTER_SHIFT (PAGE_SHIFT+SYM_MEM_PAGE_ORDER)
#define SYM_MEM_FREE_UNUSED /* Free unused pages immediately */
/* /*
* Shortest memory chunk is (1<<SYM_MEM_SHIFT), currently 16. * Shortest memory chunk is (1<<SYM_MEM_SHIFT), currently 16.
* Actual allocations happen as SYM_MEM_CLUSTER_SIZE sized. * Actual allocations happen as SYM_MEM_CLUSTER_SIZE sized.
...@@ -1192,12 +1202,6 @@ static inline void sym_setup_data_pointers(struct sym_hcb *np, ...@@ -1192,12 +1202,6 @@ static inline void sym_setup_data_pointers(struct sym_hcb *np,
* MEMORY ALLOCATOR. * MEMORY ALLOCATOR.
*/ */
#define SYM_MEM_PAGE_ORDER 0 /* 1 PAGE maximum */
#define SYM_MEM_CLUSTER_SHIFT (PAGE_SHIFT+SYM_MEM_PAGE_ORDER)
#define SYM_MEM_FREE_UNUSED /* Free unused pages immediately */
#define SYM_MEM_WARN 1 /* Warn on failed operations */
#define sym_get_mem_cluster() \ #define sym_get_mem_cluster() \
(void *) __get_free_pages(GFP_ATOMIC, SYM_MEM_PAGE_ORDER) (void *) __get_free_pages(GFP_ATOMIC, SYM_MEM_PAGE_ORDER)
#define sym_free_mem_cluster(p) \ #define sym_free_mem_cluster(p) \
......
...@@ -367,7 +367,7 @@ static void S24C16_read_byte(struct sym_device *np, u_char *read_data, u_char ac ...@@ -367,7 +367,7 @@ static void S24C16_read_byte(struct sym_device *np, u_char *read_data, u_char ac
S24C16_write_ack(np, ack_data, gpreg, gpcntl); S24C16_write_ack(np, ack_data, gpreg, gpcntl);
} }
#if SYM_CONF_NVRAM_WRITE_SUPPORT #ifdef SYM_CONF_NVRAM_WRITE_SUPPORT
/* /*
* Write 'len' bytes starting at 'offset'. * Write 'len' bytes starting at 'offset'.
*/ */
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#define T128_PUBLIC_RELEASE 3 #define T128_PUBLIC_RELEASE 3
#define TDEBUG 0
#define TDEBUG_INIT 0x1 #define TDEBUG_INIT 0x1
#define TDEBUG_TRANSFER 0x2 #define TDEBUG_TRANSFER 0x2
......
...@@ -1826,7 +1826,7 @@ static void __devinit riva_get_EDID(struct fb_info *info, struct pci_dev *pdev) ...@@ -1826,7 +1826,7 @@ static void __devinit riva_get_EDID(struct fb_info *info, struct pci_dev *pdev)
#ifdef CONFIG_PPC_OF #ifdef CONFIG_PPC_OF
if (!riva_get_EDID_OF(info, pdev)) if (!riva_get_EDID_OF(info, pdev))
printk(PFX "could not retrieve EDID from OF\n"); printk(PFX "could not retrieve EDID from OF\n");
#elif CONFIG_FB_RIVA_I2C #elif defined(CONFIG_FB_RIVA_I2C)
if (!riva_get_EDID_i2c(info)) if (!riva_get_EDID_i2c(info))
printk(PFX "could not retrieve EDID from DDC/I2C\n"); printk(PFX "could not retrieve EDID from DDC/I2C\n");
#endif #endif
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <linux/config.h> #include <linux/config.h>
#if (DEBUG && CONFIG_SYSCTL) #if defined(DEBUG) && defined(CONFIG_SYSCTL)
extern int ntfs_sysctl(int add); extern int ntfs_sysctl(int add);
......
...@@ -165,7 +165,7 @@ typedef union { ...@@ -165,7 +165,7 @@ typedef union {
# undef CONFIG_FT_FDC_DMA # undef CONFIG_FT_FDC_DMA
# define CONFIG_FT_FDC_DMA 2 # define CONFIG_FT_FDC_DMA 2
# endif # endif
#elif CONFIG_FT_ALT_FDC == 1 /* CONFIG_FT_MACH2 */ #elif defined(CONFIG_FT_ALT_FDC) /* CONFIG_FT_MACH2 */
# if CONFIG_FT_FDC_BASE == 0 # if CONFIG_FT_FDC_BASE == 0
# undef CONFIG_FT_FDC_BASE # undef CONFIG_FT_FDC_BASE
# define CONFIG_FT_FDC_BASE 0x370 # define CONFIG_FT_FDC_BASE 0x370
......
...@@ -792,13 +792,8 @@ int ip6_dst_lookup(struct sock *sk, struct dst_entry **dst, struct flowi *fl) ...@@ -792,13 +792,8 @@ int ip6_dst_lookup(struct sock *sk, struct dst_entry **dst, struct flowi *fl)
if (ipv6_addr_any(&fl->fl6_src)) { if (ipv6_addr_any(&fl->fl6_src)) {
err = ipv6_get_saddr(*dst, &fl->fl6_dst, &fl->fl6_src); err = ipv6_get_saddr(*dst, &fl->fl6_dst, &fl->fl6_src);
if (err) { if (err)
#if IP6_DEBUG >= 2
printk(KERN_DEBUG "ip6_dst_lookup: "
"no available source address\n");
#endif
goto out_err_release; goto out_err_release;
}
} }
return 0; return 0;
......
...@@ -688,7 +688,7 @@ static struct sbmix_elem snd_als4000_ctl_3d_poweroff_switch = ...@@ -688,7 +688,7 @@ static struct sbmix_elem snd_als4000_ctl_3d_poweroff_switch =
SB_SINGLE("3D PowerOff Switch", SB_ALS4000_3D_TIME_DELAY, 4, 0x01); SB_SINGLE("3D PowerOff Switch", SB_ALS4000_3D_TIME_DELAY, 4, 0x01);
static struct sbmix_elem snd_als4000_ctl_3d_delay = static struct sbmix_elem snd_als4000_ctl_3d_delay =
SB_SINGLE("3D Delay", SB_ALS4000_3D_TIME_DELAY, 0, 0x0f); SB_SINGLE("3D Delay", SB_ALS4000_3D_TIME_DELAY, 0, 0x0f);
#if NOT_AVAILABLE #ifdef NOT_AVAILABLE
static struct sbmix_elem snd_als4000_ctl_fmdac = static struct sbmix_elem snd_als4000_ctl_fmdac =
SB_SINGLE("FMDAC Switch (Option ?)", SB_ALS4000_FMDAC, 0, 0x01); SB_SINGLE("FMDAC Switch (Option ?)", SB_ALS4000_FMDAC, 0, 0x01);
static struct sbmix_elem snd_als4000_ctl_qsound = static struct sbmix_elem snd_als4000_ctl_qsound =
...@@ -723,7 +723,7 @@ static struct sbmix_elem *snd_als4000_controls[] = { ...@@ -723,7 +723,7 @@ static struct sbmix_elem *snd_als4000_controls[] = {
&snd_als4000_ctl_3d_output_ratio, &snd_als4000_ctl_3d_output_ratio,
&snd_als4000_ctl_3d_delay, &snd_als4000_ctl_3d_delay,
&snd_als4000_ctl_3d_poweroff_switch, &snd_als4000_ctl_3d_poweroff_switch,
#if NOT_AVAILABLE #ifdef NOT_AVAILABLE
&snd_als4000_ctl_fmdac, &snd_als4000_ctl_fmdac,
&snd_als4000_ctl_qsound, &snd_als4000_ctl_qsound,
#endif #endif
......
...@@ -714,7 +714,7 @@ static int __init attach_pss(struct address_info *hw_config) ...@@ -714,7 +714,7 @@ static int __init attach_pss(struct address_info *hw_config)
disable_all_emulations(); disable_all_emulations();
#if YOU_REALLY_WANT_TO_ALLOCATE_THESE_RESOURCES #ifdef YOU_REALLY_WANT_TO_ALLOCATE_THESE_RESOURCES
if (sound_alloc_dma(hw_config->dma, "PSS")) if (sound_alloc_dma(hw_config->dma, "PSS"))
{ {
printk("pss.c: Can't allocate DMA channel.\n"); printk("pss.c: Can't allocate DMA channel.\n");
......
...@@ -1470,7 +1470,7 @@ static int snd_rme9652_get_tc_valid(snd_kcontrol_t * kcontrol, snd_ctl_elem_valu ...@@ -1470,7 +1470,7 @@ static int snd_rme9652_get_tc_valid(snd_kcontrol_t * kcontrol, snd_ctl_elem_valu
return 0; return 0;
} }
#if ALSA_HAS_STANDARD_WAY_OF_RETURNING_TIMECODE #ifdef ALSA_HAS_STANDARD_WAY_OF_RETURNING_TIMECODE
/* FIXME: this routine needs a port to the new control API --jk */ /* FIXME: this routine needs a port to the new control API --jk */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment