* [PATCH][ATM]: [horizon] avoid warning about limited range of data type
@ 2004-01-21 1:24 chas williams
2004-01-22 6:15 ` David S. Miller
0 siblings, 1 reply; 3+ messages in thread
From: chas williams @ 2004-01-21 1:24 UTC (permalink / raw)
To: davem; +Cc: netdev, Randy.Dunlap, Daniele Venzano
this patch fixes the horizon driver so that it will compile
without a warning.
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1389 -> 1.1390
# drivers/atm/horizon.c 1.4 -> 1.5
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 04/01/20 chas@relax.cmf.nrl.navy.mil 1.1390
# [ATM]: [horizon] avoid warning about limited range of data type
# --------------------------------------------
#
diff -Nru a/drivers/atm/horizon.c b/drivers/atm/horizon.c
--- a/drivers/atm/horizon.c Tue Jan 20 19:57:59 2004
+++ b/drivers/atm/horizon.c Tue Jan 20 19:57:59 2004
@@ -359,8 +359,8 @@
static unsigned short debug = 0;
static unsigned short vpi_bits = 0;
-static unsigned short max_tx_size = 9000;
-static unsigned short max_rx_size = 9000;
+static int max_tx_size = 9000;
+static int max_rx_size = 9000;
static unsigned char pci_lat = 0;
/********** access functions **********/
@@ -2919,11 +2919,11 @@
PRINTK (KERN_ERR, "vpi_bits has been limited to %hu",
vpi_bits = HRZ_MAX_VPI);
- if (max_tx_size > TX_AAL5_LIMIT)
+ if (max_tx_size < 0 || max_tx_size > TX_AAL5_LIMIT)
PRINTK (KERN_NOTICE, "max_tx_size has been limited to %hu",
max_tx_size = TX_AAL5_LIMIT);
- if (max_rx_size > RX_AAL5_LIMIT)
+ if (max_rx_size < 0 || max_rx_size > RX_AAL5_LIMIT)
PRINTK (KERN_NOTICE, "max_rx_size has been limited to %hu",
max_rx_size = RX_AAL5_LIMIT);
@@ -2938,8 +2938,8 @@
MODULE_LICENSE("GPL");
MODULE_PARM(debug, "h");
MODULE_PARM(vpi_bits, "h");
-MODULE_PARM(max_tx_size, "h");
-MODULE_PARM(max_rx_size, "h");
+MODULE_PARM(max_tx_size, "i");
+MODULE_PARM(max_rx_size, "i");
MODULE_PARM(pci_lat, "b");
MODULE_PARM_DESC(debug, "debug bitmap, see .h file");
MODULE_PARM_DESC(vpi_bits, "number of bits (0..4) to allocate to VPIs");
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH][ATM]: [horizon] avoid warning about limited range of data type
2004-01-21 1:24 [PATCH][ATM]: [horizon] avoid warning about limited range of data type chas williams
@ 2004-01-22 6:15 ` David S. Miller
2004-01-22 12:52 ` chas williams
0 siblings, 1 reply; 3+ messages in thread
From: David S. Miller @ 2004-01-22 6:15 UTC (permalink / raw)
To: chas3; +Cc: chas, netdev, rddunlap, venza
On Tue, 20 Jan 2004 20:24:37 -0500
chas williams (contractor) <chas@cmf.nrl.navy.mil> wrote:
> this patch fixes the horizon driver so that it will compile
> without a warning.
Applied, I assumed this was meant for 2.6.x only.
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH][ATM]: [horizon] avoid warning about limited range of data type
2004-01-22 6:15 ` David S. Miller
@ 2004-01-22 12:52 ` chas williams
0 siblings, 0 replies; 3+ messages in thread
From: chas williams @ 2004-01-22 12:52 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev, rddunlap, venza
sorry i wasnt clear about that. the same patch applies to
2.4 and 2.6 without a problem. so if you would be so kind
as to patch 2.4 as well.
thanks
In message <20040121221531.10e4f8a2.davem@redhat.com>,"David S. Miller" writes:
>On Tue, 20 Jan 2004 20:24:37 -0500
>chas williams (contractor) <chas@cmf.nrl.navy.mil> wrote:
>
>> this patch fixes the horizon driver so that it will compile
>> without a warning.
>
>Applied, I assumed this was meant for 2.6.x only.
>
>Thanks.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-01-22 12:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-21 1:24 [PATCH][ATM]: [horizon] avoid warning about limited range of data type chas williams
2004-01-22 6:15 ` David S. Miller
2004-01-22 12:52 ` chas williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).