alsa-driver: Added CONFIG_HAVE_INIT_UTSNAME test
A message that is not in the archive (sent off-list or not yet received): [email protected]
At Mon, 21 Jan 2008 11:48:06 +0100 (CET),
Quoted 32 lines · Jaroslav Kysela
changeset: 3491:94a0c6eeb244 tag: tip user: perex date: Mon Jan 21 11:48:04 2008 +0100 files: acore/info_oss.c configure.in include/config.h.indescription:
AddedCONFIG_HAVE_INIT_UTSNAMEtestdiff -r
f8ead0afa48d-r94a0c6eeb244acore/info_oss.cacore/info_oss.c +1
-1@@ -1,6 +1,6 @@#define __NO_VERSION__#include <linux/version.h> -#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,19 ) +#ifdef CONFIG_HAVE_INIT_UTSNAME #define init_utsname () (&system_utsname)#endif #include "adriver.h" diff -r
f8ead0afa48d-r94a0c6eeb244configure.inconfigure.in +4
-0@@ -2566,6 +2566,32 @@ if test "$CONFIG_HAVE_GFP_T" = "1"; then AC_DEFINE(CONFIG_HAVE_GFP_T) fi +dnl Check for init_utsname... +AC_MSG_CHECKING(for init_utsname) +gfp_t="0" +ac_save_CFLAGS="$CFLAGS"
configure.in if test "$CONFIG_HAVE_GFP_T" = "1"; then · line 2582
Quoted 10 lines
configure.in +10
-0+ac_save_CC="$CC" +CFLAGS="$KERNEL_CHECK_CFLAGS" +CC=$KCC +AC_TRY_COMPILE([ +#define __KERNEL__ +#include <linux/config.h> +#include <linux/utsname.h> +],[ + void *x = init_utsname(); +],
I'm afraid it won't work. In C, it's fine to call undeclared functions. It's supposed to be an int function.
Takashi
Quoted 4 lines · Takashi Iwai
Quoted 1 line
+ void *x =
init_utsname();I'm afraid it won't work. In C, it's fine to call undeclared functions. It's supposed to be an int function.
Yep, fortunately -Werror helps here ;-) Thanks for notice. I though I tested it, but old configure script was left in my testing case.
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.