[pkg-nvidia-devel] need patch for 190.32 (beta) support
Andreas Beckmann
debian at abeckmann.de
Tue Sep 22 16:16:13 UTC 2009
Hi,
I just tried the NVIDIA 190.32 beta driver and found the following new
part in conftest.sh that needs to be ported to Debian's conftest.h:
> + INIT_WORK)
> + #
> + # Determine how many arguments INIT_WORK() macro
> + # takes.
> + #
> + echo "$CONFTEST_PREAMBLE
> + #include <linux/workqueue.h>
> + void conftest_INIT_WORK(void) {
> + INIT_WORK((struct work_struct *)NULL, NULL, NULL);
> + }" > conftest$$.c
> +
> + #$CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
> + $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
> + rm -f conftest$$.c
> +
> + if [ -f conftest$$.o ]; then
> + echo "#define NV_INIT_WORK_PRESENT" >> conftest.h
> + echo "#define NV_INIT_WORK_ARGUMENT_COUNT 3" >> conftest.h
> + rm -f conftest$$.o
> + return
> + fi
> +
> + echo "$CONFTEST_PREAMBLE
> + #include <linux/workqueue.h>
> + void conftest_INIT_WORK(void) {
> + INIT_WORK((struct work_struct *)NULL, NULL);
> + }" > conftest$$.c
> +
> + $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
> + rm -f conftest$$.c
> +
> + if [ -f conftest$$.o ]; then
> + echo "#define NV_INIT_WORK_PRESENT" >> conftest.h
> + echo "#define NV_INIT_WORK_ARGUMENT_COUNT 2" >> conftest.h
> + rm -f conftest$$.o
> + return
> + else
> + echo "#error INIT_WORK() conftest failed!" >> conftest.h
> + return
> + fi
> + ;;
My suggested patch for conftest.h is to append the following lines:
/* Implement conftest.sh function INIT_WORK */
#define NV_INIT_WORK_PRESENT
#define NV_INIT_WORK_ARGUMENT_COUNT 2
I checked 2.6.26, 2.6.29, 2.6.30, 2.6.31, all of them have a
two-argument INIT_WORK() macro in linux/workqueue.h.
If this is OK, I'll prepare a patch for the package.
Andreas
PS: Module compiled successfully with 2.6.30-2, will be tested later
tonight.
More information about the Pkg-nvidia-devel
mailing list