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



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to