Re: 2.2.6, sg.c, scsi_logging_level and a versioned kernel

Olaf Titz (olaf@bigred.inka.de)
Sat, 17 Apr 1999 23:16:06 +0200


> The reason for it is that the new sg driver (in 2.2.6) uses the
> SCSI_LOG_TIMEOUT macro provided by the SCSI mid-level. That
> macro uses scsi_logging_level which is an EXPORT_SYMBOL in
> scsi_syms.c when CONFIG_SCSI_LOGGING is active. It should
> work ... [there is probably some tweak needed in the
> Makefile in the SCSI directory].

Whenever a configuration change adds a new kernel symbol to the list
of versioned symbols, a "make dep" run is necessary to update the
symbol versions in include/linux/modules. If the symbol was previously
not used, your first "make dep" had missed it and thus generated no
version.

Conclusion: "make dep" after each config change is necessary and
(should be) sufficient. If not,
rm -rf include/linux/modules include/linux/modversions.h ; make dep

Olaf

-
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/