* [patch 12/18] e1000: #if 0 two functions
@ 2007-08-10 21:05 akpm
2007-08-14 5:36 ` Jeff Garzik
0 siblings, 1 reply; 4+ messages in thread
From: akpm @ 2007-08-10 21:05 UTC (permalink / raw)
To: jeff; +Cc: netdev, akpm, bunk, auke-jan.h.kok
From: Adrian Bunk <bunk@stusta.de>
e1000_{read,write}_pci_cfg() are no longer used.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/net/e1000/e1000_hw.h | 2 --
drivers/net/e1000/e1000_main.c | 4 ++++
2 files changed, 4 insertions(+), 2 deletions(-)
diff -puN drivers/net/e1000/e1000_hw.h~e1000-if-0-two-functions drivers/net/e1000/e1000_hw.h
--- a/drivers/net/e1000/e1000_hw.h~e1000-if-0-two-functions
+++ a/drivers/net/e1000/e1000_hw.h
@@ -421,8 +421,6 @@ void e1000_tbi_adjust_stats(struct e1000
void e1000_get_bus_info(struct e1000_hw *hw);
void e1000_pci_set_mwi(struct e1000_hw *hw);
void e1000_pci_clear_mwi(struct e1000_hw *hw);
-void e1000_read_pci_cfg(struct e1000_hw *hw, uint32_t reg, uint16_t * value);
-void e1000_write_pci_cfg(struct e1000_hw *hw, uint32_t reg, uint16_t * value);
int32_t e1000_read_pcie_cap_reg(struct e1000_hw *hw, uint32_t reg, uint16_t *value);
void e1000_pcix_set_mmrbc(struct e1000_hw *hw, int mmrbc);
int e1000_pcix_get_mmrbc(struct e1000_hw *hw);
diff -puN drivers/net/e1000/e1000_main.c~e1000-if-0-two-functions drivers/net/e1000/e1000_main.c
--- a/drivers/net/e1000/e1000_main.c~e1000-if-0-two-functions
+++ a/drivers/net/e1000/e1000_main.c
@@ -4890,6 +4890,8 @@ e1000_pci_clear_mwi(struct e1000_hw *hw)
pci_clear_mwi(adapter->pdev);
}
+#if 0
+
void
e1000_read_pci_cfg(struct e1000_hw *hw, uint32_t reg, uint16_t *value)
{
@@ -4906,6 +4908,8 @@ e1000_write_pci_cfg(struct e1000_hw *hw,
pci_write_config_word(adapter->pdev, reg, *value);
}
+#endif /* 0 */
+
int
e1000_pcix_get_mmrbc(struct e1000_hw *hw)
{
_
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch 12/18] e1000: #if 0 two functions
2007-08-10 21:05 [patch 12/18] e1000: #if 0 two functions akpm
@ 2007-08-14 5:36 ` Jeff Garzik
2007-08-14 21:14 ` Kok, Auke
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 2007-08-14 5:36 UTC (permalink / raw)
To: akpm, auke-jan.h.kok; +Cc: netdev, bunk
akpm@linux-foundation.org wrote:
> From: Adrian Bunk <bunk@stusta.de>
>
> e1000_{read,write}_pci_cfg() are no longer used.
>
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
> Cc: Auke Kok <auke-jan.h.kok@intel.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> drivers/net/e1000/e1000_hw.h | 2 --
> drivers/net/e1000/e1000_main.c | 4 ++++
> 2 files changed, 4 insertions(+), 2 deletions(-)
if it's truly dead code in upstream, we should just remove it from e1000
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch 12/18] e1000: #if 0 two functions
2007-08-14 5:36 ` Jeff Garzik
@ 2007-08-14 21:14 ` Kok, Auke
2007-08-14 21:18 ` Kok, Auke
0 siblings, 1 reply; 4+ messages in thread
From: Kok, Auke @ 2007-08-14 21:14 UTC (permalink / raw)
To: Jeff Garzik; +Cc: akpm, netdev, bunk
Jeff Garzik wrote:
> akpm@linux-foundation.org wrote:
>> From: Adrian Bunk <bunk@stusta.de>
>>
>> e1000_{read,write}_pci_cfg() are no longer used.
>>
>> Signed-off-by: Adrian Bunk <bunk@stusta.de>
>> Cc: Auke Kok <auke-jan.h.kok@intel.com>
>> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
>> ---
>>
>> drivers/net/e1000/e1000_hw.h | 2 --
>> drivers/net/e1000/e1000_main.c | 4 ++++
>> 2 files changed, 4 insertions(+), 2 deletions(-)
>
> if it's truly dead code in upstream, we should just remove it from e1000
if I apply this to #master and compile, it blows up: the two functions are still
in use there. I also don't see any difference with current #upstream....
so, I don't know what is in -mm at the moment, but we do not want this in jeff's
tree.
Auke
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch 12/18] e1000: #if 0 two functions
2007-08-14 21:14 ` Kok, Auke
@ 2007-08-14 21:18 ` Kok, Auke
0 siblings, 0 replies; 4+ messages in thread
From: Kok, Auke @ 2007-08-14 21:18 UTC (permalink / raw)
To: Jeff Garzik; +Cc: akpm, netdev, bunk
Kok, Auke wrote:
> Jeff Garzik wrote:
>> akpm@linux-foundation.org wrote:
>>> From: Adrian Bunk <bunk@stusta.de>
>>>
>>> e1000_{read,write}_pci_cfg() are no longer used.
>>>
>>> Signed-off-by: Adrian Bunk <bunk@stusta.de>
>>> Cc: Auke Kok <auke-jan.h.kok@intel.com>
>>> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
>>> ---
>>>
>>> drivers/net/e1000/e1000_hw.h | 2 --
>>> drivers/net/e1000/e1000_main.c | 4 ++++
>>> 2 files changed, 4 insertions(+), 2 deletions(-)
>> if it's truly dead code in upstream, we should just remove it from e1000
>
> if I apply this to #master and compile, it blows up: the two functions are still
> in use there. I also don't see any difference with current #upstream....
>
> so, I don't know what is in -mm at the moment, but we do not want this in jeff's
> tree.
whoops, I fail to correlate this with the mmrbc patch I just acked 5 minutes
ago, which removes the need for these functions.
I'll push a patch to remove these functions once I hear what the plan is for the
mmrbc patch.
Cheers,
Auke
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-14 21:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-10 21:05 [patch 12/18] e1000: #if 0 two functions akpm
2007-08-14 5:36 ` Jeff Garzik
2007-08-14 21:14 ` Kok, Auke
2007-08-14 21:18 ` Kok, Auke
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).