public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Mehrmann <daniel.mehrmann@gmx.de>
To: Marcelo Tosatti <marcelo@conectiva.com.br>
Cc: lkm <linux-kernel@vger.kernel.org>
Subject: [PATCH] [2.4.20-rc1] compiler fix drivers/ide/pdc202xx.c
Date: Sun, 10 Nov 2002 22:11:10 +0100	[thread overview]
Message-ID: <200211102211.10277.daniel.mehrmann@gmx.de> (raw)

Hello Marcelo,

i fix a compiler warning from pdc202xx.c.
The "default:" value in the switch was empty. Gcc don`t like
this. We don`t need this one. 

error:
gcc -D__KERNEL__ -I/usr/src/bk/work-2.4/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing 
-fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 
-march=athlon-tbird    -nostdinc -iwithprefix include 
-DKBUILD_BASENAME=pdc202xx  -c -o pdc202xx.o pdc202xx.c
pdc202xx.c: In function `pdc202xx_new_tune_chipset':
pdc202xx.c:636: warning: deprecated use of label at end of compound 
statement

patch:
daniel@deepblue:/usr/src/bk/linux-2.4/drivers/ide$ diff -Pu 
pdc202xx.c pdc202xx.c.fine
--- pdc202xx.c  2002-11-03 04:55:30.000000000 +0100
+++ pdc202xx.c.fine     2002-11-10 21:55:43.000000000 +0100
@@ -632,11 +632,10 @@
                                        OUT_BYTE((0x13 + adj), 
indexreg);
                                        OUT_BYTE(0xac, datareg);
                                        break;
-                               default:
                        }
                }
        }
       return err;
 }

greetings,
Daniel



             reply	other threads:[~2002-11-10 21:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-10 21:11 Daniel Mehrmann [this message]
2002-11-11 11:49 ` [PATCH] [2.4.20-rc1] compiler fix drivers/ide/pdc202xx.c Henning P. Schmiedehausen
2002-11-11 15:02   ` Horst von Brand
2002-11-11 23:14     ` Henning P. Schmiedehausen

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=200211102211.10277.daniel.mehrmann@gmx.de \
    --to=daniel.mehrmann@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /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