Commit 382ec2b0 authored by Stephen Hemminger's avatar Stephen Hemminger

[PATCH] [sparse] get rid of warnings about #if DEBUG

Several drivers use '#if DEBUG' which is a warning under the sparse checker.
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
parent 5d878e83
......@@ -1634,7 +1634,7 @@ static void ace_tasklet(unsigned long dev)
cur_size = atomic_read(&ap->cur_rx_bufs);
if ((cur_size < RX_LOW_STD_THRES) &&
!test_and_set_bit(0, &ap->std_refill_busy)) {
#if DEBUG
#ifdef DEBUG
printk("refilling buffers (current %i)\n", cur_size);
#endif
ace_load_std_rx_ring(ap, RX_RING_SIZE - cur_size);
......@@ -1644,7 +1644,7 @@ static void ace_tasklet(unsigned long dev)
cur_size = atomic_read(&ap->cur_mini_bufs);
if ((cur_size < RX_LOW_MINI_THRES) &&
!test_and_set_bit(0, &ap->mini_refill_busy)) {
#if DEBUG
#ifdef DEBUG
printk("refilling mini buffers (current %i)\n",
cur_size);
#endif
......@@ -1655,7 +1655,7 @@ static void ace_tasklet(unsigned long dev)
cur_size = atomic_read(&ap->cur_jumbo_bufs);
if (ap->jumbo && (cur_size < RX_LOW_JUMBO_THRES) &&
!test_and_set_bit(0, &ap->jumbo_refill_busy)) {
#if DEBUG
#ifdef DEBUG
printk("refilling jumbo buffers (current %i)\n", cur_size);
#endif
ace_load_jumbo_rx_ring(ap, RX_JUMBO_SIZE - cur_size);
......@@ -2255,7 +2255,7 @@ static irqreturn_t ace_interrupt(int irq, void *dev_id, struct pt_regs *ptregs)
if (cur_size < RX_LOW_STD_THRES) {
if ((cur_size < RX_PANIC_STD_THRES) &&
!test_and_set_bit(0, &ap->std_refill_busy)) {
#if DEBUG
#ifdef DEBUG
printk("low on std buffers %i\n", cur_size);
#endif
ace_load_std_rx_ring(ap,
......@@ -2270,7 +2270,7 @@ static irqreturn_t ace_interrupt(int irq, void *dev_id, struct pt_regs *ptregs)
if ((cur_size < RX_PANIC_MINI_THRES) &&
!test_and_set_bit(0,
&ap->mini_refill_busy)) {
#if DEBUG
#ifdef DEBUG
printk("low on mini buffers %i\n",
cur_size);
#endif
......@@ -2286,7 +2286,7 @@ static irqreturn_t ace_interrupt(int irq, void *dev_id, struct pt_regs *ptregs)
if ((cur_size < RX_PANIC_JUMBO_THRES) &&
!test_and_set_bit(0,
&ap->jumbo_refill_busy)){
#if DEBUG
#ifdef DEBUG
printk("low on jumbo buffers %i\n",
cur_size);
#endif
......
......@@ -77,7 +77,7 @@ struct ixgb_adapter;
#include "ixgb_ee.h"
#include "ixgb_ids.h"
#if _DEBUG_DRIVER_
#ifdef _DEBUG_DRIVER_
#define IXGB_DBG(args...) printk(KERN_DEBUG "ixgb: " args)
#else
#define IXGB_DBG(args...)
......
......@@ -6,7 +6,7 @@
#ifndef SBNI_H
#define SBNI_H
#if SBNI_DEBUG
#ifdef SBNI_DEBUG
#define DP( A ) A
#else
#define DP( A )
......
......@@ -65,7 +65,7 @@ static int mtu;
static int bogus_rx;
static int dma_ctrl = 0x004A0263; /* Constrained by errata */
static int fifo_cfg = 0x0020; /* Bypass external Tx FIFO. */
#elif YF_NEW /* A future perfect board :->. */
#elif defined(YF_NEW) /* A future perfect board :->. */
static int dma_ctrl = 0x00CAC277; /* Override when loading module! */
static int fifo_cfg = 0x0028;
#else
......
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