[PATCH TRIVIAL] forgotten include in char/epca.c

Maciej Soltysiak (solt@dns.toxicfilms.tv)
Fri, 21 Feb 2003 17:56:24 +0100 (CET)


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-5677-1045846744-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

this simple patch eliminates gcc warnings in epca.c:

drivers/char/epca.c: In function `pc_close':
drivers/char/epca.c:522: warning: implicit declaration of function
`save_flags'
drivers/char/epca.c:523: warning: implicit declaration of function `cli'
drivers/char/epca.c:527: warning: implicit declaration of function
`restore_flags'
drivers/char/epca.c:506: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `shutdown':
drivers/char/epca.c:620: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `pc_hangup':
drivers/char/epca.c:683: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `pc_write':
drivers/char/epca.c:723: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `pc_write_room':
drivers/char/epca.c:1024: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `pc_chars_in_buffer':
drivers/char/epca.c:1075: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `pc_flush_buffer':
drivers/char/epca.c:1143: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `pc_flush_chars':
drivers/char/epca.c:1191: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `block_til_ready':
drivers/char/epca.c:1217: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `pc_open':
drivers/char/epca.c:1371: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `pc_init':
drivers/char/epca.c:1634: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `epcapoll':
drivers/char/epca.c:2210: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `pc_ioctl':
drivers/char/epca.c:2964: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `pc_set_termios':
drivers/char/epca.c:3365: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `pc_stop':
drivers/char/epca.c:3437: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `pc_start':
drivers/char/epca.c:3485: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `pc_throttle':
drivers/char/epca.c:3530: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `pc_unthrottle':
drivers/char/epca.c:3564: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `digi_send_break':
drivers/char/epca.c:3602: warning: `flags' might be used uninitialized in
this function
drivers/char/epca.c: In function `setup_empty_event':
drivers/char/epca.c:3629: warning: `flags' might be used uninitialized in
this function

Regards,
Maciej Soltysiak

ps. why have my spelling patches not been included ? i have seen other
people's typo patches since bk3-bk4. Please look for my two simple
spelling patches.

--- linux-2.5.60/drivers/char/epca.c~ 2003-02-20 14:36:56.000000000 +0100
+++ linux-2.5.60/drivers/char/epca.c 2003-02-21 17:40:01.000000000 +0100
@@ -41,6 +41,7 @@
#include <linux/slab.h>
#include <linux/ioport.h>
#include <asm/uaccess.h>
+#include <linux/interrupt.h>
#include <asm/io.h>

#ifdef CONFIG_PCI
--=_courier-5677-1045846744-0001-2
Content-Type: text/plain; name="epca.c.diff"; charset=iso-8859-1
Content-Transfer-Encoding: base64
Content-ID: <Pine.LNX.4.51.0302211756240.1303@dns.toxicfilms.tv>
Content-Description: epca.c.diff
Content-Disposition: attachment; filename="epca.c.diff"

LS0tIGxpbnV4LTIuNS42MC9kcml2ZXJzL2NoYXIvZXBjYS5jfgkyMDAzLTAy
LTIwIDE0OjM2OjU2LjAwMDAwMDAwMCArMDEwMA0KKysrIGxpbnV4LTIuNS42
MC9kcml2ZXJzL2NoYXIvZXBjYS5jCTIwMDMtMDItMjEgMTc6NDA6MDEuMDAw
MDAwMDAwICswMTAwDQpAQCAtNDEsNiArNDEsNyBAQA0KICNpbmNsdWRlIDxs
aW51eC9zbGFiLmg+DQogI2luY2x1ZGUgPGxpbnV4L2lvcG9ydC5oPg0KICNp
bmNsdWRlIDxhc20vdWFjY2Vzcy5oPg0KKyNpbmNsdWRlIDxsaW51eC9pbnRl
cnJ1cHQuaD4NCiAjaW5jbHVkZSA8YXNtL2lvLmg+DQogDQogI2lmZGVmIENP
TkZJR19QQ0kNCg==

--=_courier-5677-1045846744-0001-2--