Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
6716de09
Commit
6716de09
authored
Jan 21, 2004
by
Chas Williams
Committed by
Linus Torvalds
Jan 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ATM]: [horizon] avoid warning about limited range of data type
parent
77e54f16
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/atm/horizon.c
drivers/atm/horizon.c
+6
-6
No files found.
drivers/atm/horizon.c
View file @
6716de09
...
@@ -359,8 +359,8 @@ static struct timer_list housekeeping;
...
@@ -359,8 +359,8 @@ static struct timer_list housekeeping;
static
unsigned
short
debug
=
0
;
static
unsigned
short
debug
=
0
;
static
unsigned
short
vpi_bits
=
0
;
static
unsigned
short
vpi_bits
=
0
;
static
unsigned
shor
t
max_tx_size
=
9000
;
static
in
t
max_tx_size
=
9000
;
static
unsigned
shor
t
max_rx_size
=
9000
;
static
in
t
max_rx_size
=
9000
;
static
unsigned
char
pci_lat
=
0
;
static
unsigned
char
pci_lat
=
0
;
/********** access functions **********/
/********** access functions **********/
...
@@ -2898,11 +2898,11 @@ static void __init hrz_check_args (void) {
...
@@ -2898,11 +2898,11 @@ static void __init hrz_check_args (void) {
PRINTK
(
KERN_ERR
,
"vpi_bits has been limited to %hu"
,
PRINTK
(
KERN_ERR
,
"vpi_bits has been limited to %hu"
,
vpi_bits
=
HRZ_MAX_VPI
);
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"
,
PRINTK
(
KERN_NOTICE
,
"max_tx_size has been limited to %hu"
,
max_tx_size
=
TX_AAL5_LIMIT
);
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"
,
PRINTK
(
KERN_NOTICE
,
"max_rx_size has been limited to %hu"
,
max_rx_size
=
RX_AAL5_LIMIT
);
max_rx_size
=
RX_AAL5_LIMIT
);
...
@@ -2914,8 +2914,8 @@ MODULE_DESCRIPTION(description_string);
...
@@ -2914,8 +2914,8 @@ MODULE_DESCRIPTION(description_string);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
debug
,
"h"
);
MODULE_PARM
(
debug
,
"h"
);
MODULE_PARM
(
vpi_bits
,
"h"
);
MODULE_PARM
(
vpi_bits
,
"h"
);
MODULE_PARM
(
max_tx_size
,
"
h
"
);
MODULE_PARM
(
max_tx_size
,
"
i
"
);
MODULE_PARM
(
max_rx_size
,
"
h
"
);
MODULE_PARM
(
max_rx_size
,
"
i
"
);
MODULE_PARM
(
pci_lat
,
"b"
);
MODULE_PARM
(
pci_lat
,
"b"
);
MODULE_PARM_DESC
(
debug
,
"debug bitmap, see .h file"
);
MODULE_PARM_DESC
(
debug
,
"debug bitmap, see .h file"
);
MODULE_PARM_DESC
(
vpi_bits
,
"number of bits (0..4) to allocate to VPIs"
);
MODULE_PARM_DESC
(
vpi_bits
,
"number of bits (0..4) to allocate to VPIs"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment