public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: A Guy Called Tyketto <tyketto@wizard.com>
To: Miles Lane <miles@megapathdsl.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.5.21 -- sound/core/misc.c:93: `file' undeclared in function `snd_printd'
Date: Sun, 9 Jun 2002 01:12:23 -0700	[thread overview]
Message-ID: <20020609081223.GA2861@wizard.com> (raw)
In-Reply-To: <1023607742.5775.7.camel@turbulence.megapathdsl.net>

On Sun, Jun 09, 2002 at 12:29:02AM -0700, Miles Lane wrote:
>   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
+++ misc.c	3 May 2002 07:42:33 -0000	1.14
@@ -96,10 +96,10 @@
 	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);


-- 
Brad Littlejohn                         | Email:        tyketto@wizard.com
Unix Systems Administrator,             |           tyketto@ozemail.com.au
Web + NewsMaster, BOFH.. Smeghead! :)   |   http://www.wizard.com/~tyketto
  PGP: 1024D/E319F0BF 6980 AAD6 7329 E9E6 D569  F620 C819 199A E319 F0BF


      reply	other threads:[~2002-06-09  8:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-09  7:29 2.5.21 -- sound/core/misc.c:93: `file' undeclared in function `snd_printd' Miles Lane
2002-06-09  8:12 ` A Guy Called Tyketto [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020609081223.GA2861@wizard.com \
    --to=tyketto@wizard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miles@megapathdsl.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox