[pkg-nvidia-devel] Bug#523727: Bug#523727: nvidia-kernel-source: does not build against kernels older than 2.6.29

Lennart Sorensen lsorense at csclub.uwaterloo.ca
Tue Apr 14 14:05:48 UTC 2009


On Tue, Apr 14, 2009 at 09:02:05AM +0200, Sven Joachim wrote:
> In 2.6.27 through 2.6.29, it's 
> 
> int smp_call_function(void(*func)(void *info), void *info, int wait);
> 
> > Perhaps I am looking at the wrong one.  It could be some architectures
> > use their own variant somehow.  If so, changing the check to 2.6.27
> > instead of 2.6.29 should fix it.
> 
> You mean like the following patch?
> 
> --8<---------------cut here---------------start------------->8---
> --- conftest.h~	2009-04-13 07:43:50.000000000 +0200
> +++ conftest.h	2009-04-14 08:50:30.980322038 +0200
> @@ -160,7 +160,7 @@
>  /* Only kernels sometime before 2.4.0 don't have this function, and who */
>  /* cares anymore */
>  #define NV_SMP_CALL_FUNCTION_PRESENT
> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)
> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
>   #define NV_SMP_CALL_FUNCTION_ARGUMENT_COUNT 3
>  #else
>   #define NV_SMP_CALL_FUNCTION_ARGUMENT_COUNT 4
> --8<---------------cut here---------------end--------------->8---
> 
> That does indeed work for me. :-)

Yeah exactly.  I am just still puzzled why looking at the sources from
kernel.org it looks like 2.6.29 was the right point for the change.
I will look at it again.

-- 
Len Sorensen





More information about the Pkg-nvidia-devel mailing list