mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Eyal Lebedinsky <eyal@eyal.emu.id.au>
To: Adrian Bunk <bunk@fs.tum.de>
Cc: dbrownell@users.sourceforge.net, linux-kernel@vger.kernel.org,
	greg@kroah.com, linux-usb-devel@lists.sourceforge.net
Subject: Re: 2.4.25-pre8: usb/gadget/file_storage.c doesn't compile with gcc 2.95  [patch]
Date: Fri, 30 Jan 2004 22:34:40 +1100	[thread overview]
Message-ID: <401A4150.684A6C76@eyal.emu.id.au> (raw)
In-Reply-To: <20040130024350.GD3004@fs.tum.de>

[-- Attachment #1: Type: text/plain, Size: 1410 bytes --]

Adrian Bunk wrote:
> 
> On Thu, Jan 29, 2004 at 06:41:52PM -0200, Marcelo Tosatti wrote:
> >...
> > Summary of changes from v2.4.25-pre7 to v2.4.25-pre8
> > ============================================
> >...
> > David Brownell:
> >...
> >   o USB gadget: add file_storage gadget driver [2/7]
> >...
> 
> I'm getting the following compile error with gcc 2.95:
> 
> <--  snip  -->
> 
> ...
> gcc-2.95 -D__KERNEL__
> -I/home/bunk/linux/kernel-2.4/linux-2.4.25-pre8-modular/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6
> -DMODULE -DMODVERSIONS -include
> /home/bunk/linux/kernel-2.4/linux-2.4.25-pre8-modular/include/linux/modversions.h
> -nostdinc -iwithprefix include -DKBUILD_BASENAME=file_storage  -c -o
> file_storage.o file_storage.c
> file_storage.c: In function `received_cbi_adsc':
> file_storage.c:1385: parse error before `;'
> file_storage.c: In function `check_parameters':
> file_storage.c:3767: parse error before `;'
> file_storage.c: In function `fsg_bind':
> file_storage.c:3912: parse error before `;'
> make[2]: *** [file_storage.o] Error 1
> make[2]: Leaving directory
> `/home/bunk/linux/kernel-2.4/linux-2.4.25-pre8-modular/drivers/usb/gadget'

One way to get past this problem, at least for Debian (gcc 2.95.4).

--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>

[-- Attachment #2: 2.4.25-pre8.file_storage.patch --]
[-- Type: text/plain, Size: 421 bytes --]

--- linux/drivers/usb/gadget/file_storage.c.orig	Fri Jan 30 20:35:35 2004
+++ linux/drivers/usb/gadget/file_storage.c	Fri Jan 30 21:13:10 2004
@@ -3909,7 +3909,7 @@
 		goto out;
 	fsg->thread_pid = rc;
 
-	INFO(fsg, DRIVER_DESC ", version: " DRIVER_VERSION "\n");
+	INFO(fsg, DRIVER_DESC ", version: " DRIVER_VERSION "\n", "");
 	INFO(fsg, "Number of LUNs=%d\n", fsg->nluns);
 
 	pathbuf = kmalloc(PATH_MAX, GFP_KERNEL);

      reply	other threads:[~2004-01-30 11:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-29 20:41 Linux 2.4.25-pre8 Marcelo Tosatti
2004-01-30  2:43 ` 2.4.25-pre8: usb/gadget/file_storage.c doesn't compile with gcc 2.95 Adrian Bunk
2004-01-30 11:34   ` Eyal Lebedinsky [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=401A4150.684A6C76@eyal.emu.id.au \
    --to=eyal@eyal.emu.id.au \
    --cc=bunk@fs.tum.de \
    --cc=dbrownell@users.sourceforge.net \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.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

all inboxes | Powered by JetHome®