Commit def699d3 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] #if abuse in drivers/net/*

Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3c0a45b5
......@@ -4,7 +4,7 @@
* $Id: asstruct.h,v 1.1.1.1 1994/10/23 05:08:32 rick Exp $
*/
#if ASSEMBLER
#ifdef ASSEMBLER
# define MO(t,a) (a)
# define VMO(t,a) (a)
......
......@@ -95,7 +95,7 @@ typedef volatile struct
/************************************************************************/
typedef volatile struct _I596_RBD
{
#if INTEL_RETENTIVE
#ifdef INTEL_RETENTIVE
ushort count; /* Length of data in buf */
ushort offset;
#else
......@@ -103,7 +103,7 @@ typedef volatile struct _I596_RBD
#endif
vol struct _I596_RBD *next; /* Next buffer descriptor in list */
uchar *buf; /* Data buffer */
#if INTEL_RETENTIVE
#ifdef INTEL_RETENTIVE
ushort size; /* Size of buf (constant) */
ushort zero;
#else
......
......@@ -82,7 +82,7 @@ struct e1000_adapter;
#include "e1000_hw.h"
#if DBG
#ifdef DBG
#define E1000_DBG(args...) printk(KERN_DEBUG "e1000: " args)
#else
#define E1000_DBG(args...)
......
......@@ -63,7 +63,7 @@ typedef enum {
#define MSGOUT(S, A, B) printk(KERN_DEBUG S "\n", A, B)
#if DBG
#ifdef DBG
#define DEBUGOUT(S) printk(KERN_DEBUG S "\n")
#define DEBUGOUT1(S, A...) printk(KERN_DEBUG S "\n", A)
#else
......
......@@ -67,7 +67,7 @@ uint32_t ixgb_mac_reset(struct ixgb_hw *hw)
/* Delay a few ms just to allow the reset to complete */
msec_delay(IXGB_DELAY_AFTER_RESET);
ctrl_reg = IXGB_READ_REG(hw, CTRL0);
#if DBG
#ifdef DBG
/* Make sure the self-clearing global reset bit did self clear */
ASSERT(!(ctrl_reg & IXGB_CTRL0_RST));
#endif
......
......@@ -64,7 +64,7 @@ typedef enum {
#define ASSERT(x) if(!(x)) BUG()
#define MSGOUT(S, A, B) printk(KERN_DEBUG S "\n", A, B)
#if DBG
#ifdef DBG
#define DEBUGOUT(S) printk(KERN_DEBUG S "\n")
#define DEBUGOUT1(S, A...) printk(KERN_DEBUG S "\n", A)
#else
......
......@@ -1472,7 +1472,7 @@ updateCRC
Modified from Am79C90 data sheet.
---------------------------------------------------------------------------- */
#if BROKEN_MULTICAST
#ifdef BROKEN_MULTICAST
static void updateCRC(int *CRC, int bit)
{
......
......@@ -337,7 +337,7 @@ static irqreturn_t xircom_interrupt(int irq, void *dev_instance, struct pt_regs
spin_lock(&card->lock);
status = inl(card->io_port+CSR5);
#if DEBUG
#ifdef DEBUG
print_binary(status);
printk("tx status 0x%08x 0x%08x \n",card->tx_buffer[0],card->tx_buffer[4]);
printk("rx status 0x%08x 0x%08x \n",card->rx_buffer[0],card->rx_buffer[4]);
......
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