Messages in this thread | | | Date | Wed, 12 Jul 2006 15:54:36 +0200 | From | Petr Vandrovec <> | Subject | Re: [GIT *] Remove inclusion of obsolete <linux/config.h> |
| |
Arjan van de Ven wrote: > On Wed, 2006-07-12 at 13:00 +0200, Petr Vandrovec wrote: > >>Sam Ravnborg wrote: >> >>To make sure user is building modules for kernel it is really using. Without >>this test users were building modules for kernels they have run years ago, and >>then complained that modules do not fit to running kernel, or that kernel >>crashes when they do 'insmod -f ...'... So perl wrapper passes linux/version.h >>through C preprocessor and compares resulting UTS_RELEASE with `uname -r`, and >>complains loudly if they do not match. > > isn't this exactly what VERMAGIC is for instead?
In newer kernels only. We still support 2.2.x kernels, and to find kernel version you have to parse some kernel headers... And unfortunately vermagic mismatch is printed into `dmesg` only, so it takes several iterations until customer is able to pinpoint problem down (to 586/686 mismatch, for example). Petr
- 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/
| |