The patch titled PCI: handle pci_name() being const has been added to the -mm tree. Its filename is pci-handle-pci_name-being-const.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: PCI: handle pci_name() being const From: Greg Kroah-Hartman <gregkh@xxxxxxx> This changes pci_setup_device to handle pci_name() now returning a constant string. Cc: Jesse Barns <jbarnes@xxxxxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/pci/probe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -puN drivers/pci/probe.c~pci-handle-pci_name-being-const drivers/pci/probe.c --- a/drivers/pci/probe.c~pci-handle-pci_name-being-const +++ a/drivers/pci/probe.c @@ -711,8 +711,9 @@ static int pci_setup_device(struct pci_d { u32 class; - sprintf(pci_name(dev), "%04x:%02x:%02x.%d", pci_domain_nr(dev->bus), - dev->bus->number, PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); + dev_set_name(&dev->dev, "%04x:%02x:%02x.%d", pci_domain_nr(dev->bus), + dev->bus->number, PCI_SLOT(dev->devfn), + PCI_FUNC(dev->devfn)); pci_read_config_dword(dev, PCI_CLASS_REVISION, &class); dev->revision = class & 0xff; _ Patches currently in -mm which might be from gregkh@xxxxxxx are sisusbvga-fix-oops-on-disconnect.patch linux-next.patch fix-kobject-fix-kobject_rename-and-config_sysfs.patch usb-fix-possible-memory-leak-in-pxa27x_udc.patch hugetlb-new-sysfs-interface.patch checkpatch-usb_free_urb-can-take-null.patch firmware-use-memory_read_from_buffer.patch edac-core-fix-to-use-dynamic-kobject.patch mtd-handle-pci_name-being-const.patch pci-handle-pci_name-being-const.patch 3c59x-handle-pci_name-being-const.patch usb-handle-pci_name-being-const.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html