Re: aic7xxx 6.1.10 and 2.4.4-pre1

From: Justin T. Gibbs (gibbs@scsiguy.com)
Date: Sat Apr 07 2001 - 18:24:12 EST


> So I started again - installed redhat 7.0.9.
> took 2.4.4-pre1 and patched it with
> linux-aic7xxx-6.1.10-2.4.3.patch
>
> Patch applied cleanly but when I compile it complains a little:
>
> In file included from aic7xxx_linux.c:131:
> aic7xxx_osm.h: In function `ahc_pci_read_config':
> aic7xxx_osm.h:862: warning: control reaches end of non-void function
>
> (for several .c files but always refers to 'ahc_pci_read_config')

This is because panic() is not marked as a "no return" function. So,
GCC compains that, in the panic() case, we don't return a value from
this particular function. Since we will never return in that case,
it is, at least in the aic7xxx driver, a harmless warning.

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



This archive was generated by hypermail 2b29 : Sat Apr 07 2001 - 21:00:20 EST