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
be2b28ed
Commit
be2b28ed
authored
Oct 04, 2005
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e1000: fix warnings
parent
a7990ba6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
drivers/net/e1000/e1000_main.c
drivers/net/e1000/e1000_main.c
+9
-6
No files found.
drivers/net/e1000/e1000_main.c
View file @
be2b28ed
...
...
@@ -777,12 +777,12 @@ e1000_remove(struct pci_dev *pdev)
struct
e1000_adapter
*
adapter
=
netdev_priv
(
netdev
);
uint32_t
ctrl_ext
;
uint32_t
manc
,
swsm
;
flush_scheduled_work
();
#ifdef CONFIG_E1000_NAPI
int
i
;
#endif
flush_scheduled_work
();
if
(
adapter
->
hw
.
mac_type
>=
e1000_82540
&&
adapter
->
hw
.
media_type
==
e1000_media_type_copper
)
{
manc
=
E1000_READ_REG
(
&
adapter
->
hw
,
MANC
);
...
...
@@ -3100,7 +3100,9 @@ e1000_intr(int irq, void *data, struct pt_regs *regs)
struct
e1000_adapter
*
adapter
=
netdev_priv
(
netdev
);
struct
e1000_hw
*
hw
=
&
adapter
->
hw
;
uint32_t
icr
=
E1000_READ_REG
(
hw
,
ICR
);
#ifdef CONFIG_E1000_MQ
int
i
;
#endif
if
(
unlikely
(
!
icr
))
return
IRQ_NONE
;
/* Not our interrupt */
...
...
@@ -3128,13 +3130,14 @@ e1000_intr(int irq, void *data, struct pt_regs *regs)
}
else
{
printk
(
"call_data.count == %u
\n
"
,
atomic_read
(
&
adapter
->
rx_sched_call_data
.
count
));
}
#else
#else
/* if !CONFIG_E1000_MQ */
if
(
likely
(
netif_rx_schedule_prep
(
&
adapter
->
polling_netdev
[
0
])))
__netif_rx_schedule
(
&
adapter
->
polling_netdev
[
0
]);
else
e1000_irq_enable
(
adapter
);
#endif
#else
#endif
/* CONFIG_E1000_MQ */
#else
/* if !CONFIG_E1000_NAPI */
/* Writing IMC and IMS is needed for 82547.
Due to Hub Link bus being occupied, an interrupt
de-assertion message is not able to be sent.
...
...
@@ -3158,7 +3161,7 @@ e1000_intr(int irq, void *data, struct pt_regs *regs)
if
(
hw
->
mac_type
==
e1000_82547
||
hw
->
mac_type
==
e1000_82547_rev_2
)
e1000_irq_enable
(
adapter
);
#endif
#endif
/* CONFIG_E1000_NAPI */
return
IRQ_HANDLED
;
}
...
...
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