Thread (4 messages) 4 messages, 2 authors, 2008-05-30

Re: linux-next: sparc64 build failure

From: Greg KH <hidden>
Date: 2008-05-30 14:13:12

On Fri, May 30, 2008 at 03:38:47PM +1000, Stephen Rothwell wrote:
Hi Greg,

On Thu, 29 May 2008 15:01:58 -0700 Greg KH [off-list ref] wrote:
quoted
quoted
-	sprintf(pci_name(dev), "%04x:%02x:%02x.%d", pci_domain_nr(bus),
+	dev_set_name(&dev->dev, "%04x:%02x:%02x.%d", pci_domain_nr(bus),
 		dev->bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn));
It's wierd that we broke the build like this, I'll work to merge this in
so that it isn't broken.
It broke the build because arch/sparc64 is (mostly) built with -Werror.
Sorry, no, I realized that, I was confused as to why a warning was
created here.  Turns out that pci_name() was being changed to a const
string, and the compiler was rightfully saying that we can't be using
that for an assignment.

I've fixed it up correctly in my latest tree, which you should have
already.

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help