2.5.21 -- sound/core/misc.c:93: `file' undeclared in function `snd_printd'

2.5.21 -- sound/core/misc.c:93: `file' undeclared in function `snd_printd'

Post by Miles Lan » Mon, 10 Jun 2002 16:40:05



  gcc -Wp,-MD,.misc.o.d -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon  -nostdinc -iwithprefix include -DMODULE   -DKBUILD_BASENAME=misc   -c -o misc.o misc.c
misc.c: In function `snd_printd':
misc.c:93: `file' undeclared (first use in this function)
misc.c:93: (Each undeclared identifier is reported only once
misc.c:93: for each function it appears in.)
misc.c:93: `line' undeclared (first use in this function)
make[2]: *** [misc.o] Error 1
make[2]: Leaving directory `/usr/src/linux/sound/core'

CONFIG_SOUND=y

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_RTCTIMER=m
CONFIG_SND_DEBUG=y
CONFIG_SND_DEBUG_MEMORY=y
CONFIG_SND_DEBUG_DETECT=y

#
# PCI devices
#
CONFIG_SND_EMU10K1=m

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.21 -- sound/core/misc.c:93: `file' undeclared in function `snd_printd'

Post by A Guy Called Tykett » Mon, 10 Jun 2002 17:20:08



>   gcc -Wp,-MD,.misc.o.d -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon  -nostdinc -iwithprefix include -DMODULE   -DKBUILD_BASENAME=misc   -c -o misc.o misc.c
> misc.c: In function `snd_printd':
> misc.c:93: `file' undeclared (first use in this function)
> misc.c:93: (Each undeclared identifier is reported only once
> misc.c:93: for each function it appears in.)
> misc.c:93: `line' undeclared (first use in this function)
> make[2]: *** [misc.o] Error 1
> make[2]: Leaving directory `/usr/src/linux/sound/core'

        Known problem since 2.5.13. Jaroslav's patch below fixes this.

                                                        BL.

This patch fixes the problem:

--- misc.c      29 Apr 2002 15:57:08 -0000      1.13

        if (format[0] == '<' && format[1] >= '0' && format[1] <= '9' && format[2] == '>') {
                char tmp[] = "<0>";
                tmp[1] = format[1];
-               printk("%sALSA %s:%d: ", tmp, file, line);
+               printk("%sALSA: ", tmp);
                format += 3;
        } else {
-               printk(KERN_DEBUG "ALSA %s:%d: ", file, line);
+               printk(KERN_DEBUG "ALSA: ");
        }
        va_start(args, format);
        vsnprintf(tmpbuf, sizeof(tmpbuf)-1, format, args);

--


Web + NewsMaster, BOFH.. Smeghead! :)   |   http://www.wizard.com/~tyketto
  PGP: 1024D/E319F0BF 6980 AAD6 7329 E9E6 D569  F620 C819 199A E319 F0BF

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. 2.5.21 -- aty128fb.c: aty128fb.c:1775: `con' undeclared

        I'll throw one in too:

make[2]: Entering directory `/usr/src/linux-2.5.20/drivers/video'
  gcc -Wp,-MD,.aty128fb.o.d -D__KERNEL__ -I/usr/src/linux-2.5.20/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686 -malign-functions=4  -nostdinc -iwithprefix include    
-DKBUILD_BASENAME=aty128fb   -c -o aty128fb.o aty128fb.c
aty128fb.c: In function `aty128_init':
aty128fb.c:1775: `con' undeclared (first use in this function)
aty128fb.c:1775: (Each undeclared identifier is reported only once
aty128fb.c:1775: for each function it appears in.)
aty128fb.c:1776: incompatible type for argument 1 of `fb_alloc_cmap'
aty128fb.c:1662: warning: `size' might be used uninitialized in this function
make[2]: *** [aty128fb.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.5.20/drivers/video'
make[1]: *** [_subdir_video] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.20/drivers'
make: *** [drivers] Error 2

        lines 1775-1776 are:

    size = (fb_display[con].var.bits_per_pixel <= 8) ? 256 : 32;
    fb_alloc_cmap(info->fb_info.cmap, size, 0);

        fb_display[] seems to be the culprit. It's an array, in which has the
'con' field, which is of type int. In all other functions where this array is
used, 'con' is passed to the function as type int. It seems to be missing for
this one.

        Backing out of the change seems to work, as this was added in the
2.5.21 patch, but I'd rather like to know what the proper solution is..

                                                        BL.

        Relevant parts of config below.

CONFIG_FB=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_VIDEO_SELECT=y
CONFIG_FB_ATY=y
CONFIG_FB_ATY_CT=y
CONFIG_FB_RADEON=y
CONFIG_FB_ATY128=y
CONFIG_FBCON_ADVANCED=y
CONFIG_FBCON_CFB8=y
CONFIG_FBCON_CFB16=y
CONFIG_FBCON_CFB24=y
CONFIG_FBCON_CFB32=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y

--


Web + NewsMaster, BOFH.. Smeghead! :)   |   http://www.wizard.com/~tyketto
  PGP: 1024D/E319F0BF 6980 AAD6 7329 E9E6 D569  F620 C819 199A E319 F0BF

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. SSH and X11

3. 2.5.20 -- mpparse.c:1123: `mp_ioapic_routing' undeclared [ ... on 2.5.21]

4. slow netatalk

5. [2.5.21]new xpram driver (was [REVERT] 2.5.21 s390/block/xpram.c)

6. PCL Prepend on LPD Printers

7. 2.5.21: fixdep starts spitting out 'unaligned traps'

8. 3rd party monitors

9. 2.5.19 - 2.5.21 don't boot with devfs

10. Multi-threaded core dumps for 2.5.21.

11. [2.5] reiserfs changeset 9 of 15 for 2.5.21

12. suspend-to-{ram/disk} cleanups/fixes for 2.5.21

13. 2.5.21 - end_request warning.