All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Dobson <colpatch@us.ibm.com>
To: Trivial Patch Monkey <trivial@rustcorp.com.au>,
	linux-kernel@vger.kernel.org
Subject: [trivial][patch] no more warnings [3/3] ide_scan_direction
Date: Thu, 10 Jul 2003 16:52:06 -0700	[thread overview]
Message-ID: <3F0DFC26.3050501@us.ibm.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 262 bytes --]

ide_scan_direction is defined in general, but only ever referenced in 
code wrapped by CONFIG_BLK_DEV_IDEPCI.  This wraps the definition of 
ide_scan_direction in CONFIG_BLK_DEV_IDEPCI, too, to silence warnings 
about being defined and not used.

Cheers!

-Matt

[-- Attachment #2: ide-warning.patch --]
[-- Type: text/plain, Size: 585 bytes --]

diff -Nurp --exclude-from=/home/mcd/.dontdiff linux-2.5.74-vanilla/drivers/ide/ide.c linux-2.5.74-warnings/drivers/ide/ide.c
--- linux-2.5.74-vanilla/drivers/ide/ide.c	Wed Jul  2 13:43:59 2003
+++ linux-2.5.74-warnings/drivers/ide/ide.c	Thu Jul 10 14:47:24 2003
@@ -180,7 +180,9 @@ static int initializing;	/* set while in
 DECLARE_MUTEX(ide_cfg_sem);
 spinlock_t ide_lock __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
 
+#ifdef CONFIG_BLK_DEV_IDEPCI
 static int ide_scan_direction; /* THIS was formerly 2.2.x pci=reverse */
+#endif
 
 #ifdef CONFIG_IDEDMA_AUTO
 int noautodma = 0;

                 reply	other threads:[~2003-07-10 23:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F0DFC26.3050501@us.ibm.com \
    --to=colpatch@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.