[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100706232222.GA29632@kroah.com>
Date: Tue, 6 Jul 2010 16:22:22 -0700
From: Greg KH <greg@...ah.com>
To: Narendra K <Narendra_K@...l.com>
Cc: netdev@...r.kernel.org, linux-hotplug@...r.kernel.org,
linux-pci@...r.kernel.org, matt_domsch@...l.com,
jordan_hargrave@...l.com, charles_rose@...l.com,
vijay_nijhawan@...l.com
Subject: Re: [PATCH 1/2] Export firmware assigned labels of network devices
to sysfs
On Tue, Jul 06, 2010 at 01:52:18PM -0500, Narendra K wrote:
> > -----Original Message-----
> > From: Greg KH [mailto:greg@...ah.com]
> > Sent: Wednesday, June 30, 2010 9:12 PM
> > To: K, Narendra
> > Cc: Domsch, Matt; netdev@...r.kernel.org; linux-hotplug@...r.kernel.org;
> > linux-pci@...r.kernel.org; Hargrave, Jordan; Rose, Charles; Nijhawan,
> > Vijay
> > Subject: Re: [PATCH 1/2] Export firmware assigned labels of network
> > devices to sysfs
> >
> > On Tue, Jun 29, 2010 at 11:28:18AM -0500, Narendra K wrote:
> > > --- a/drivers/pci/Makefile
> > > +++ b/drivers/pci/Makefile
> > > @@ -4,7 +4,7 @@
> > >
> > > obj-y += access.o bus.o probe.o remove.o pci.o \
> > > pci-driver.o search.o pci-sysfs.o rom.o
> > setup-res.o \
> > > - irq.o vpd.o
> > > + irq.o vpd.o pci-label.o
> >
> > No, only build this if CONFIG_DMI is set.
>
> I have corrected this to build pci-label.o if only if CONFIG_DMI is set.
>
>
> > > +pci_create_smbiosname_file(struct pci_dev *pdev)
> > > +{
> > > + if (smbios_attr_label.test && smbios_attr_label.test(&pdev->dev,
> > NULL, NULL)) {
> > > + if (sysfs_create_file(&pdev->dev.kobj,
> > &smbios_attr_label.attr))
> > > + return -1;
> >
> > What's wrong with the 'device_create_file' calls?
>
> 'device_create_file' takes 'struct device_attribute *' as a param which
> we have not used here because 'struct device_attribute' does not have .test
> member which we needed in this patch.
Why do you need it? What is calling that function? What am I missing
here?
> Please find the patch with the above change here -
Please always run your patches through scripts/checkpatch.pl and fix up
the issues it finds before sending it out and having everyone else point
them out to you :)
Also, a new thread is nice at times for new versions of patches...
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists