
When the aic7xxx driver is compiled in, you get the following warnings:

drivers/scsi/aic7xxx/aic7xxx_osm.c:439: warning: `aic7xxx' defined but not used
drivers/scsi/aic7xxx/aic7xxx_osm.c:445: warning: `dummy_buffer' defined but not used

I don't think you need aic7xxx or dummy_buffer unless it's a module, so
the attached patch #ifdef's the declarations as well.  Compile tested on
ppc64.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
---

 memhotplug1-dave/drivers/scsi/aic7xxx/aic7xxx_osm.c |    2 ++
 1 files changed, 2 insertions(+)

diff -puN drivers/scsi/aic7xxx/aic7xxx_osm.c~A9-aic7xxx-module-nowarn-2.6.8-rc2-mm2-0 drivers/scsi/aic7xxx/aic7xxx_osm.c
--- memhotplug1/drivers/scsi/aic7xxx/aic7xxx_osm.c~A9-aic7xxx-module-nowarn-2.6.8-rc2-mm2-0	2004-11-04 16:45:33.000000000 -0800
+++ memhotplug1-dave/drivers/scsi/aic7xxx/aic7xxx_osm.c	2004-11-04 16:45:33.000000000 -0800
@@ -423,6 +423,7 @@ static uint32_t aic7xxx_seltime;
  */
 uint32_t aic7xxx_periodic_otag;
 
+#ifdef MODULE
 /*
  * Module information and settable options.
  */
@@ -433,6 +434,7 @@ static char *aic7xxx = NULL;
  * write wild stuff into our code segment
  */
 static char dummy_buffer[60] = "Please don't trounce on me insmod!!\n";
+#endif
 
 MODULE_AUTHOR("Maintainer: Justin T. Gibbs <gibbs@scsiguy.com>");
 MODULE_DESCRIPTION("Adaptec Aic77XX/78XX SCSI Host Bus Adapter driver");
_
