Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
cba0516d
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
6
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cba0516d
编写于
11月 23, 2007
作者:
J
Jeff Garzik
提交者:
David S. Miller
1月 28, 2008
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[netdrvr] checkpatch cleanups
Signed-off-by:
N
Jeff Garzik
<
jgarzik@redhat.com
>
上级
93a3b607
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
18 addition
and
16 deletion
+18
-16
drivers/net/3c507.c
drivers/net/3c507.c
+8
-5
drivers/net/at1700.c
drivers/net/at1700.c
+3
-2
drivers/net/bnx2x.c
drivers/net/bnx2x.c
+1
-2
drivers/net/e1000/e1000_ethtool.c
drivers/net/e1000/e1000_ethtool.c
+1
-1
drivers/net/eexpress.c
drivers/net/eexpress.c
+2
-3
drivers/net/lp486e.c
drivers/net/lp486e.c
+1
-1
drivers/net/tulip/de4x5.c
drivers/net/tulip/de4x5.c
+2
-2
未找到文件。
drivers/net/3c507.c
浏览文件 @
cba0516d
...
...
@@ -832,10 +832,11 @@ static void el16_rx(struct net_device *dev)
if
(
rfd_cmd
!=
0
||
data_buffer_addr
!=
rx_head
+
22
||
(
pkt_len
&
0xC000
)
!=
0xC000
)
{
printk
(
"%s: Rx frame at %#x corrupted, status %04x cmd %04x "
"next %04x data-buf @%04x %04x.
\n
"
,
dev
->
name
,
rx_head
,
frame_status
,
rfd_cmd
,
next_rx_frame
,
data_buffer_addr
,
pkt_len
);
printk
(
KERN_ERR
"%s: Rx frame at %#x corrupted, "
"status %04x cmd %04x next %04x "
"data-buf @%04x %04x.
\n
"
,
dev
->
name
,
rx_head
,
frame_status
,
rfd_cmd
,
next_rx_frame
,
data_buffer_addr
,
pkt_len
);
}
else
if
((
frame_status
&
0x2000
)
==
0
)
{
/* Frame Rxed, but with error. */
dev
->
stats
.
rx_errors
++
;
...
...
@@ -851,7 +852,9 @@ static void el16_rx(struct net_device *dev)
pkt_len
&=
0x3fff
;
skb
=
dev_alloc_skb
(
pkt_len
+
2
);
if
(
skb
==
NULL
)
{
printk
(
"%s: Memory squeeze, dropping packet.
\n
"
,
dev
->
name
);
printk
(
KERN_ERR
"%s: Memory squeeze, "
"dropping packet.
\n
"
,
dev
->
name
);
dev
->
stats
.
rx_dropped
++
;
break
;
}
...
...
drivers/net/at1700.c
浏览文件 @
cba0516d
...
...
@@ -465,8 +465,9 @@ static int __init at1700_probe1(struct net_device *dev, int ioaddr)
/* Snarf the interrupt vector now. */
ret
=
request_irq
(
irq
,
&
net_interrupt
,
0
,
DRV_NAME
,
dev
);
if
(
ret
)
{
printk
(
" AT1700 at %#3x is unusable due to a conflict on "
"IRQ %d.
\n
"
,
ioaddr
,
irq
);
printk
(
KERN_ERR
"AT1700 at %#3x is unusable due to a "
"conflict on IRQ %d.
\n
"
,
ioaddr
,
irq
);
goto
err_mca
;
}
...
...
drivers/net/bnx2x.c
浏览文件 @
cba0516d
...
...
@@ -8788,8 +8788,7 @@ static int __devinit bnx2x_init_board(struct pci_dev *pdev,
INIT_WORK
(
&
bp
->
reset_task
,
bnx2x_reset_task
);
INIT_WORK
(
&
bp
->
sp_task
,
bnx2x_sp_task
);
dev
->
base_addr
=
dev
->
mem_start
=
pci_resource_start
(
pdev
,
0
);
dev
->
mem_end
=
pci_resource_end
(
pdev
,
0
);
dev
->
base_addr
=
pci_resource_start
(
pdev
,
0
);
dev
->
irq
=
pdev
->
irq
;
...
...
drivers/net/e1000/e1000_ethtool.c
浏览文件 @
cba0516d
...
...
@@ -743,7 +743,7 @@ static bool reg_pattern_test(struct e1000_adapter *adapter, uint64_t *data,
if
(
read
!=
(
write
&
test
[
i
]
&
mask
))
{
DPRINTK
(
DRV
,
ERR
,
"pattern test reg %04X failed: "
"got 0x%08X expected 0x%08X
\n
"
,
reg
,
read
,
(
write
&
test
[
i
]
&
mask
));
reg
,
read
,
(
write
&
test
[
i
]
&
mask
));
*
data
=
reg
;
return
true
;
}
...
...
drivers/net/eexpress.c
浏览文件 @
cba0516d
...
...
@@ -784,8 +784,7 @@ static irqreturn_t eexp_irq(int dummy, void *dev_info)
old_read_ptr
=
inw
(
ioaddr
+
READ_PTR
);
old_write_ptr
=
inw
(
ioaddr
+
WRITE_PTR
);
outb
(
SIRQ_dis
|
irqrmap
[
dev
->
irq
],
ioaddr
+
SET_IRQ
);
outb
(
SIRQ_dis
|
irqrmap
[
dev
->
irq
],
ioaddr
+
SET_IRQ
);
status
=
scb_status
(
dev
);
...
...
@@ -852,7 +851,7 @@ static irqreturn_t eexp_irq(int dummy, void *dev_info)
eexp_cmd_clear
(
dev
);
outb
(
SIRQ_en
|
irqrmap
[
dev
->
irq
],
ioaddr
+
SET_IRQ
);
outb
(
SIRQ_en
|
irqrmap
[
dev
->
irq
],
ioaddr
+
SET_IRQ
);
#if NET_DEBUG > 6
printk
(
"%s: leaving eexp_irq()
\n
"
,
dev
->
name
);
...
...
drivers/net/lp486e.c
浏览文件 @
cba0516d
...
...
@@ -1144,7 +1144,7 @@ i596_handle_CU_completion(struct net_device *dev,
}
static
irqreturn_t
i596_interrupt
(
int
irq
,
void
*
dev_instance
)
i596_interrupt
(
int
irq
,
void
*
dev_instance
)
{
struct
net_device
*
dev
=
dev_instance
;
struct
i596_private
*
lp
=
dev
->
priv
;
...
...
drivers/net/tulip/de4x5.c
浏览文件 @
cba0516d
...
...
@@ -4168,7 +4168,7 @@ de4x5_bad_srom(struct de4x5_private *lp)
{
int
i
,
status
=
0
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
enet_det
);
i
++
)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
enet_det
);
i
++
)
{
if
(
!
de4x5_strncmp
((
char
*
)
&
lp
->
srom
,
(
char
*
)
&
enet_det
[
i
],
3
)
&&
!
de4x5_strncmp
((
char
*
)
&
lp
->
srom
+
0x10
,
(
char
*
)
&
enet_det
[
i
],
3
))
{
if
(
i
==
0
)
{
...
...
@@ -4188,7 +4188,7 @@ de4x5_strncmp(char *a, char *b, int n)
{
int
ret
=
0
;
for
(;
n
&&
!
ret
;
n
--
)
{
for
(;
n
&&
!
ret
;
n
--
)
{
ret
=
*
a
++
-
*
b
++
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录