Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
def699d3
Commit
def699d3
authored
Jul 26, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jul 26, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] #if abuse in drivers/net/*
Signed-off-by:
Linus Torvalds
<
torvalds@osdl.org
>
parent
3c0a45b5
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
9 deletions
+9
-9
drivers/net/dgrs_asstruct.h
drivers/net/dgrs_asstruct.h
+1
-1
drivers/net/dgrs_i82596.h
drivers/net/dgrs_i82596.h
+2
-2
drivers/net/e1000/e1000.h
drivers/net/e1000/e1000.h
+1
-1
drivers/net/e1000/e1000_osdep.h
drivers/net/e1000/e1000_osdep.h
+1
-1
drivers/net/ixgb/ixgb_hw.c
drivers/net/ixgb/ixgb_hw.c
+1
-1
drivers/net/ixgb/ixgb_osdep.h
drivers/net/ixgb/ixgb_osdep.h
+1
-1
drivers/net/pcmcia/nmclan_cs.c
drivers/net/pcmcia/nmclan_cs.c
+1
-1
drivers/net/tulip/xircom_cb.c
drivers/net/tulip/xircom_cb.c
+1
-1
No files found.
drivers/net/dgrs_asstruct.h
View file @
def699d3
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* $Id: asstruct.h,v 1.1.1.1 1994/10/23 05:08:32 rick Exp $
* $Id: asstruct.h,v 1.1.1.1 1994/10/23 05:08:32 rick Exp $
*/
*/
#if ASSEMBLER
#if
def
ASSEMBLER
# define MO(t,a) (a)
# define MO(t,a) (a)
# define VMO(t,a) (a)
# define VMO(t,a) (a)
...
...
drivers/net/dgrs_i82596.h
View file @
def699d3
...
@@ -95,7 +95,7 @@ typedef volatile struct
...
@@ -95,7 +95,7 @@ typedef volatile struct
/************************************************************************/
/************************************************************************/
typedef
volatile
struct
_I596_RBD
typedef
volatile
struct
_I596_RBD
{
{
#if INTEL_RETENTIVE
#if
def
INTEL_RETENTIVE
ushort
count
;
/* Length of data in buf */
ushort
count
;
/* Length of data in buf */
ushort
offset
;
ushort
offset
;
#else
#else
...
@@ -103,7 +103,7 @@ typedef volatile struct _I596_RBD
...
@@ -103,7 +103,7 @@ typedef volatile struct _I596_RBD
#endif
#endif
vol
struct
_I596_RBD
*
next
;
/* Next buffer descriptor in list */
vol
struct
_I596_RBD
*
next
;
/* Next buffer descriptor in list */
uchar
*
buf
;
/* Data buffer */
uchar
*
buf
;
/* Data buffer */
#if INTEL_RETENTIVE
#if
def
INTEL_RETENTIVE
ushort
size
;
/* Size of buf (constant) */
ushort
size
;
/* Size of buf (constant) */
ushort
zero
;
ushort
zero
;
#else
#else
...
...
drivers/net/e1000/e1000.h
View file @
def699d3
...
@@ -82,7 +82,7 @@ struct e1000_adapter;
...
@@ -82,7 +82,7 @@ struct e1000_adapter;
#include "e1000_hw.h"
#include "e1000_hw.h"
#if DBG
#if
def
DBG
#define E1000_DBG(args...) printk(KERN_DEBUG "e1000: " args)
#define E1000_DBG(args...) printk(KERN_DEBUG "e1000: " args)
#else
#else
#define E1000_DBG(args...)
#define E1000_DBG(args...)
...
...
drivers/net/e1000/e1000_osdep.h
View file @
def699d3
...
@@ -63,7 +63,7 @@ typedef enum {
...
@@ -63,7 +63,7 @@ typedef enum {
#define MSGOUT(S, A, B) printk(KERN_DEBUG S "\n", A, B)
#define MSGOUT(S, A, B) printk(KERN_DEBUG S "\n", A, B)
#if DBG
#if
def
DBG
#define DEBUGOUT(S) printk(KERN_DEBUG S "\n")
#define DEBUGOUT(S) printk(KERN_DEBUG S "\n")
#define DEBUGOUT1(S, A...) printk(KERN_DEBUG S "\n", A)
#define DEBUGOUT1(S, A...) printk(KERN_DEBUG S "\n", A)
#else
#else
...
...
drivers/net/ixgb/ixgb_hw.c
View file @
def699d3
...
@@ -67,7 +67,7 @@ uint32_t ixgb_mac_reset(struct ixgb_hw *hw)
...
@@ -67,7 +67,7 @@ uint32_t ixgb_mac_reset(struct ixgb_hw *hw)
/* Delay a few ms just to allow the reset to complete */
/* Delay a few ms just to allow the reset to complete */
msec_delay
(
IXGB_DELAY_AFTER_RESET
);
msec_delay
(
IXGB_DELAY_AFTER_RESET
);
ctrl_reg
=
IXGB_READ_REG
(
hw
,
CTRL0
);
ctrl_reg
=
IXGB_READ_REG
(
hw
,
CTRL0
);
#if DBG
#if
def
DBG
/* Make sure the self-clearing global reset bit did self clear */
/* Make sure the self-clearing global reset bit did self clear */
ASSERT
(
!
(
ctrl_reg
&
IXGB_CTRL0_RST
));
ASSERT
(
!
(
ctrl_reg
&
IXGB_CTRL0_RST
));
#endif
#endif
...
...
drivers/net/ixgb/ixgb_osdep.h
View file @
def699d3
...
@@ -64,7 +64,7 @@ typedef enum {
...
@@ -64,7 +64,7 @@ typedef enum {
#define ASSERT(x) if(!(x)) BUG()
#define ASSERT(x) if(!(x)) BUG()
#define MSGOUT(S, A, B) printk(KERN_DEBUG S "\n", A, B)
#define MSGOUT(S, A, B) printk(KERN_DEBUG S "\n", A, B)
#if DBG
#if
def
DBG
#define DEBUGOUT(S) printk(KERN_DEBUG S "\n")
#define DEBUGOUT(S) printk(KERN_DEBUG S "\n")
#define DEBUGOUT1(S, A...) printk(KERN_DEBUG S "\n", A)
#define DEBUGOUT1(S, A...) printk(KERN_DEBUG S "\n", A)
#else
#else
...
...
drivers/net/pcmcia/nmclan_cs.c
View file @
def699d3
...
@@ -1472,7 +1472,7 @@ updateCRC
...
@@ -1472,7 +1472,7 @@ updateCRC
Modified from Am79C90 data sheet.
Modified from Am79C90 data sheet.
---------------------------------------------------------------------------- */
---------------------------------------------------------------------------- */
#if BROKEN_MULTICAST
#if
def
BROKEN_MULTICAST
static
void
updateCRC
(
int
*
CRC
,
int
bit
)
static
void
updateCRC
(
int
*
CRC
,
int
bit
)
{
{
...
...
drivers/net/tulip/xircom_cb.c
View file @
def699d3
...
@@ -337,7 +337,7 @@ static irqreturn_t xircom_interrupt(int irq, void *dev_instance, struct pt_regs
...
@@ -337,7 +337,7 @@ static irqreturn_t xircom_interrupt(int irq, void *dev_instance, struct pt_regs
spin_lock
(
&
card
->
lock
);
spin_lock
(
&
card
->
lock
);
status
=
inl
(
card
->
io_port
+
CSR5
);
status
=
inl
(
card
->
io_port
+
CSR5
);
#if DEBUG
#if
def
DEBUG
print_binary
(
status
);
print_binary
(
status
);
printk
(
"tx status 0x%08x 0x%08x
\n
"
,
card
->
tx_buffer
[
0
],
card
->
tx_buffer
[
4
]);
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
]);
printk
(
"rx status 0x%08x 0x%08x
\n
"
,
card
->
rx_buffer
[
0
],
card
->
rx_buffer
[
4
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment