Re: v2.3.17pre1 - Patches, Complaints, Questions and Jubilations

list.kernel@iahastie.clara.net
5 Sep 1999 11:58:02 +0100


alan@lxorguk.ukuu.org.uk (Alan Cox) writes:
> > 8390.c: In function `NS8390_trigger_send':
> > 8390.c:1092: warning: unused variable `ei_local'
>
> Not this one again. Its not a bug, its used on some non x86 builds ;)

Perhaps the following patch should be applied -- at least then the
compiler warning won't cause people to attempt to `fix' it.

--- 8390.c~ Sun Sep 5 11:48:50 1999
+++ 8390.c Sun Sep 5 11:55:15 1999
@@ -1090,6 +1090,9 @@
{
int e8390_base = dev->base_addr;
struct ei_device *ei_local = (struct ei_device *) dev->priv;
+
+ /* Suppress compiler warning. See EI_SHIFT in 8390.h for details */
+ (void)ei_local;

outb_p(E8390_NODMA+E8390_PAGE0, e8390_base+E8390_CMD);

-- 
 `O O'  | Home: Nick.Holloway@alfie.demon.co.uk  http://www.alfie.demon.co.uk/
// ^ \\ | Work: Nick.Holloway@parallax.co.uk

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/