Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 304775 Details for
Bug 436686
tg3.c does not build on sparc with > 2.6.18-53.el5
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
rhel5-test2.patch
rhel5-test2.patch (text/plain), 1.57 KB, created by
Andy Gospodarek
on 2008-05-07 15:48:59 UTC
(
hide
)
Description:
rhel5-test2.patch
Filename:
MIME Type:
Creator:
Andy Gospodarek
Created:
2008-05-07 15:48:59 UTC
Size:
1.57 KB
patch
obsolete
>From: Andy Gospodarek <gospo@redhat.com> >Date: Wed, 7 May 2008 15:44:55 +0000 (-0400) >Subject: tg3: revert part of upstream SPARC fix > >tg3: revert part of upstream SPARC fix >RHBZ: 436686 > >This reverts part of the changes from the following upstream commit. I >kept the changes that changed the dependancy from CONFIG_SPARC64 to >CONFIG_SPARC but got rid of the changes that required >pci_device_to_OF_node since it is not available on SPARC. > >commit 49b6e95ff6d05722bcf7a52b00454566ce0c44eb >Author: David S. Miller <davem@sunset.davemloft.net> >Date: Thu Mar 29 01:38:42 2007 -0700 > > [TG3]: Use pci_device_to_OF_node() on sparc. > > And use CONFIG_SPARC instead of CONFIG_SPARC64 as the > test. >--- > >diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c >index c23fb64..69f85a7 100644 >--- a/drivers/net/tg3.c >+++ b/drivers/net/tg3.c >@@ -11808,15 +11808,19 @@ static int __devinit tg3_get_macaddr_sparc(struct tg3 *tp) > { > struct net_device *dev = tp->dev; > struct pci_dev *pdev = tp->pdev; >- struct device_node *dp = pci_device_to_OF_node(pdev); >- const unsigned char *addr; >- int len; >- >- addr = of_get_property(dp, "local-mac-address", &len); >- if (addr && len == 6) { >- memcpy(dev->dev_addr, addr, 6); >- memcpy(dev->perm_addr, dev->dev_addr, 6); >- return 0; >+ struct pcidev_cookie *pcp = pdev->sysdata; >+ >+ if (pcp != NULL) { >+ const unsigned char *addr; >+ int len; >+ >+ addr = of_get_property(pcp->prom_node, "local-mac-address", >+ &len); >+ if (addr && len == 6) { >+ memcpy(dev->dev_addr, addr, 6); >+ memcpy(dev->perm_addr, dev->dev_addr, 6); >+ return 0; >+ } > } > return -ENODEV; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 436686
: 304775