Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
7d2e3cb7
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看板
提交
7d2e3cb7
编写于
5月 13, 2008
作者:
J
Jeff Garzik
提交者:
Jeff Garzik
5月 13, 2008
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[netdrvr] Trim trailing whitespace for several drivers
Signed-off-by:
N
Jeff Garzik
<
jgarzik@redhat.com
>
上级
3f8cb098
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
26 addition
and
26 deletion
+26
-26
drivers/net/cpmac.c
drivers/net/cpmac.c
+1
-1
drivers/net/dm9000.c
drivers/net/dm9000.c
+3
-3
drivers/net/gianfar.c
drivers/net/gianfar.c
+1
-1
drivers/net/natsemi.c
drivers/net/natsemi.c
+2
-2
drivers/net/niu.h
drivers/net/niu.h
+1
-1
drivers/net/pcnet32.c
drivers/net/pcnet32.c
+3
-3
drivers/net/qla3xxx.c
drivers/net/qla3xxx.c
+2
-2
drivers/net/s2io.c
drivers/net/s2io.c
+2
-2
drivers/net/s2io.h
drivers/net/s2io.h
+1
-1
drivers/net/sb1250-mac.c
drivers/net/sb1250-mac.c
+1
-1
drivers/net/sis190.c
drivers/net/sis190.c
+1
-1
drivers/net/sis900.c
drivers/net/sis900.c
+1
-1
drivers/net/sky2.c
drivers/net/sky2.c
+1
-1
drivers/net/spider_net.c
drivers/net/spider_net.c
+2
-2
drivers/net/tsi108_eth.c
drivers/net/tsi108_eth.c
+2
-2
drivers/net/ucc_geth_ethtool.c
drivers/net/ucc_geth_ethtool.c
+2
-2
未找到文件。
drivers/net/cpmac.c
浏览文件 @
7d2e3cb7
...
...
@@ -708,7 +708,7 @@ static void cpmac_tx_timeout(struct net_device *dev)
spin_unlock
(
&
priv
->
lock
);
if
(
netif_msg_tx_err
(
priv
)
&&
net_ratelimit
())
printk
(
KERN_WARNING
"%s: transmit timeout
\n
"
,
dev
->
name
);
/*
/*
* FIXME: waking up random queue is not the best thing to
* do... on the other hand why we got here at all?
*/
...
...
drivers/net/dm9000.c
浏览文件 @
7d2e3cb7
...
...
@@ -696,7 +696,7 @@ dm9000_probe(struct platform_device *pdev)
if
(
!
is_valid_ether_addr
(
ndev
->
dev_addr
))
{
/* try reading from mac */
mac_src
=
"chip"
;
for
(
i
=
0
;
i
<
6
;
i
++
)
ndev
->
dev_addr
[
i
]
=
ior
(
db
,
i
+
DM9000_PAR
);
...
...
@@ -746,7 +746,7 @@ dm9000_open(struct net_device *dev)
dev_warn
(
db
->
dev
,
"WARNING: no IRQ resource flags set.
\n
"
);
irqflags
=
DEFAULT_TRIGGER
;
}
irqflags
|=
IRQF_SHARED
;
if
(
request_irq
(
dev
->
irq
,
&
dm9000_interrupt
,
irqflags
,
dev
->
name
,
dev
))
...
...
@@ -1089,7 +1089,7 @@ static int dm9000_wait_eeprom(board_info_t *db)
/* The DM9000 data sheets say we should be able to
* poll the ERRE bit in EPCR to wait for the EEPROM
* operation. From testing several chips, this bit
* does not seem to work.
* does not seem to work.
*
* We attempt to use the bit, but fall back to the
* timeout (which is why we do not return an error
...
...
drivers/net/gianfar.c
浏览文件 @
7d2e3cb7
...
...
@@ -925,7 +925,7 @@ int startup_gfar(struct net_device *dev)
tx_irq_fail:
free_irq
(
priv
->
interruptError
,
dev
);
err_irq_fail:
err_rxalloc_fail:
err_rxalloc_fail:
rx_skb_fail:
free_skb_resources
(
priv
);
tx_skb_fail:
...
...
drivers/net/natsemi.c
浏览文件 @
7d2e3cb7
...
...
@@ -664,7 +664,7 @@ static ssize_t natsemi_show_##_name(struct device *dev, \
NATSEMI_ATTR
(
dspcfg_workaround
);
static
ssize_t
natsemi_show_dspcfg_workaround
(
struct
device
*
dev
,
struct
device_attribute
*
attr
,
struct
device_attribute
*
attr
,
char
*
buf
)
{
struct
netdev_private
*
np
=
netdev_priv
(
to_net_dev
(
dev
));
...
...
@@ -687,7 +687,7 @@ static ssize_t natsemi_set_dspcfg_workaround(struct device *dev,
||
!
strncmp
(
"0"
,
buf
,
count
-
1
))
new_setting
=
0
;
else
return
count
;
return
count
;
spin_lock_irqsave
(
&
np
->
lock
,
flags
);
...
...
drivers/net/niu.h
浏览文件 @
7d2e3cb7
...
...
@@ -281,7 +281,7 @@
#define XMAC_ADDR1 0x000a8UL
#define XMAC_ADDR1_ADDR1 0x000000000000ffffULL
#define XMAC_ADDR2 0x000b0UL
#define XMAC_ADDR2 0x000b0UL
#define XMAC_ADDR2_ADDR2 0x000000000000ffffULL
#define XMAC_ADDR_CMPEN 0x00208UL
...
...
drivers/net/pcnet32.c
浏览文件 @
7d2e3cb7
...
...
@@ -2006,7 +2006,7 @@ pcnet32_probe1(unsigned long ioaddr, int shared, struct pci_dev *pdev)
err_free_ring:
pcnet32_free_ring
(
dev
);
err_free_consistent:
pci_free_consistent
(
lp
->
pci_dev
,
sizeof
(
*
lp
->
init_block
),
pci_free_consistent
(
lp
->
pci_dev
,
sizeof
(
*
lp
->
init_block
),
lp
->
init_block
,
lp
->
init_dma_addr
);
err_free_netdev:
free_netdev
(
dev
);
...
...
@@ -3006,7 +3006,7 @@ static void __devexit pcnet32_remove_one(struct pci_dev *pdev)
unregister_netdev
(
dev
);
pcnet32_free_ring
(
dev
);
release_region
(
dev
->
base_addr
,
PCNET32_TOTAL_SIZE
);
pci_free_consistent
(
lp
->
pci_dev
,
sizeof
(
*
lp
->
init_block
),
pci_free_consistent
(
lp
->
pci_dev
,
sizeof
(
*
lp
->
init_block
),
lp
->
init_block
,
lp
->
init_dma_addr
);
free_netdev
(
dev
);
pci_disable_device
(
pdev
);
...
...
@@ -3089,7 +3089,7 @@ static void __exit pcnet32_cleanup_module(void)
unregister_netdev
(
pcnet32_dev
);
pcnet32_free_ring
(
pcnet32_dev
);
release_region
(
pcnet32_dev
->
base_addr
,
PCNET32_TOTAL_SIZE
);
pci_free_consistent
(
lp
->
pci_dev
,
sizeof
(
*
lp
->
init_block
),
pci_free_consistent
(
lp
->
pci_dev
,
sizeof
(
*
lp
->
init_block
),
lp
->
init_block
,
lp
->
init_dma_addr
);
free_netdev
(
pcnet32_dev
);
pcnet32_dev
=
next_dev
;
...
...
drivers/net/qla3xxx.c
浏览文件 @
7d2e3cb7
...
...
@@ -1437,9 +1437,9 @@ static void ql_phy_start_neg_ex(struct ql3_adapter *qdev)
reg
&=
~
PHY_GIG_ALL_PARAMS
;
if
(
portConfiguration
&
PORT_CONFIG_1000MB_SPEED
)
{
if
(
portConfiguration
&
PORT_CONFIG_FULL_DUPLEX_ENABLED
)
if
(
portConfiguration
&
PORT_CONFIG_FULL_DUPLEX_ENABLED
)
reg
|=
PHY_GIG_ADV_1000F
;
else
else
reg
|=
PHY_GIG_ADV_1000H
;
}
...
...
drivers/net/s2io.c
浏览文件 @
7d2e3cb7
...
...
@@ -2547,7 +2547,7 @@ static int fill_rx_buffers(struct ring_info *ring)
if
(
block_no
)
rxd_index
+=
(
block_no
*
ring
->
rxd_count
);
if
((
block_no
==
block_no1
)
&&
if
((
block_no
==
block_no1
)
&&
(
off
==
ring
->
rx_curr_get_info
.
offset
)
&&
(
rxdp
->
Host_Control
))
{
DBG_PRINT
(
INTR_DBG
,
"%s: Get and Put"
,
...
...
@@ -2593,7 +2593,7 @@ static int fill_rx_buffers(struct ring_info *ring)
first_rxdp
->
Control_1
|=
RXD_OWN_XENA
;
}
stats
->
mem_alloc_fail_cnt
++
;
return
-
ENOMEM
;
}
stats
->
mem_allocated
+=
skb
->
truesize
;
...
...
drivers/net/s2io.h
浏览文件 @
7d2e3cb7
...
...
@@ -747,7 +747,7 @@ struct ring_info {
/* interface MTU value */
unsigned
mtu
;
/* Buffer Address store. */
struct
buffAdd
**
ba
;
...
...
drivers/net/sb1250-mac.c
浏览文件 @
7d2e3cb7
...
...
@@ -1063,7 +1063,7 @@ static void sbmac_netpoll(struct net_device *netdev)
((
M_MAC_INT_EOP_COUNT
|
M_MAC_INT_EOP_TIMER
)
<<
S_MAC_RX_CH0
),
sc
->
sbm_imr
);
#else
__raw_writeq
((
M_MAC_INT_CHANNEL
<<
S_MAC_TX_CH0
)
|
__raw_writeq
((
M_MAC_INT_CHANNEL
<<
S_MAC_TX_CH0
)
|
(
M_MAC_INT_CHANNEL
<<
S_MAC_RX_CH0
),
sc
->
sbm_imr
);
#endif
}
...
...
drivers/net/sis190.c
浏览文件 @
7d2e3cb7
...
...
@@ -1656,7 +1656,7 @@ static inline void sis190_init_rxfilter(struct net_device *dev)
SIS_PCI_COMMIT
();
}
static
int
__devinit
sis190_get_mac_addr
(
struct
pci_dev
*
pdev
,
static
int
__devinit
sis190_get_mac_addr
(
struct
pci_dev
*
pdev
,
struct
net_device
*
dev
)
{
int
rc
;
...
...
drivers/net/sis900.c
浏览文件 @
7d2e3cb7
...
...
@@ -1766,7 +1766,7 @@ static int sis900_rx(struct net_device *net_dev)
skb
=
sis_priv
->
rx_skbuff
[
entry
];
net_dev
->
stats
.
rx_dropped
++
;
goto
refill_rx_ring
;
}
}
/* This situation should never happen, but due to
some unknow bugs, it is possible that
...
...
drivers/net/sky2.c
浏览文件 @
7d2e3cb7
...
...
@@ -3369,7 +3369,7 @@ static void sky2_led(struct sky2_port *sky2, enum led_mode mode)
gm_phy_write
(
hw
,
port
,
PHY_MARV_EXT_ADR
,
pg
);
}
else
gm_phy_write
(
hw
,
port
,
PHY_MARV_LED_OVER
,
gm_phy_write
(
hw
,
port
,
PHY_MARV_LED_OVER
,
PHY_M_LED_MO_DUP
(
mode
)
|
PHY_M_LED_MO_10
(
mode
)
|
PHY_M_LED_MO_100
(
mode
)
|
...
...
drivers/net/spider_net.c
浏览文件 @
7d2e3cb7
...
...
@@ -1704,7 +1704,7 @@ spider_net_poll_controller(struct net_device *netdev)
*
* spider_net_enable_interrupt enables several interrupts
*/
static
void
static
void
spider_net_enable_interrupts
(
struct
spider_net_card
*
card
)
{
spider_net_write_reg
(
card
,
SPIDER_NET_GHIINT0MSK
,
...
...
@@ -1721,7 +1721,7 @@ spider_net_enable_interrupts(struct spider_net_card *card)
*
* spider_net_disable_interrupts disables all the interrupts
*/
static
void
static
void
spider_net_disable_interrupts
(
struct
spider_net_card
*
card
)
{
spider_net_write_reg
(
card
,
SPIDER_NET_GHIINT0MSK
,
0
);
...
...
drivers/net/tsi108_eth.c
浏览文件 @
7d2e3cb7
...
...
@@ -1526,7 +1526,7 @@ static int tsi108_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
struct
tsi108_prv_data
*
data
=
netdev_priv
(
dev
);
unsigned
long
flags
;
int
rc
;
spin_lock_irqsave
(
&
data
->
txlock
,
flags
);
rc
=
mii_ethtool_gset
(
&
data
->
mii_if
,
cmd
);
spin_unlock_irqrestore
(
&
data
->
txlock
,
flags
);
...
...
@@ -1543,7 +1543,7 @@ static int tsi108_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)
spin_lock_irqsave
(
&
data
->
txlock
,
flags
);
rc
=
mii_ethtool_sset
(
&
data
->
mii_if
,
cmd
);
spin_unlock_irqrestore
(
&
data
->
txlock
,
flags
);
return
rc
;
}
...
...
drivers/net/ucc_geth_ethtool.c
浏览文件 @
7d2e3cb7
...
...
@@ -5,7 +5,7 @@
*
* Author: Li Yang <leoli@freescale.com>
*
* Limitation:
* Limitation:
* Can only get/set setttings of the first queue.
* Need to re-open the interface manually after changing some paramters.
*
...
...
@@ -165,7 +165,7 @@ uec_set_pauseparam(struct net_device *netdev,
ugeth
->
ug_info
->
receiveFlowControl
=
pause
->
rx_pause
;
ugeth
->
ug_info
->
transmitFlowControl
=
pause
->
tx_pause
;
if
(
ugeth
->
phydev
->
autoneg
)
{
if
(
netif_running
(
netdev
))
{
/* FIXME: automatically restart */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录