login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
5
Re: [PATCH 33/54] driver core: remove fields from struct bus_type
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Greg KH
Subject:
Re: [PATCH 33/54] driver core: remove fields from struct bus_type
Date: Monday, November 5, 2007 - 10:00 am
On Mon, Nov 05, 2007 at 11:33:19AM +0100, Cornelia Huck wrote:
quoted text
> On Fri, 2 Nov 2007 16:59:11 -0700, > Greg Kroah-Hartman <gregkh@suse.de> wrote: > > > struct bus_type is static everywhere in the kernel. This moves the > > kobject in the structure out of it, and a bunch of other private only to > > the driver core fields are now moved to a private structure. This lets > > us dynamically create the backing kobject properly and gives us the > > chance to be able to document to users exactly how to use the struct > > bus_type as there are no fields they can improperly access. > > > > Cc: Kay Sievers <kay.sievers@vrfy.org> > > Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> > > --- > > drivers/base/base.h | 30 +++++++++++- > > drivers/base/bus.c | 120 ++++++++++++++++++++++++++-------------------- > > drivers/base/core.c | 6 +- > > drivers/base/dd.c | 4 +- > > drivers/base/driver.c | 2 +- > > drivers/base/platform.c | 4 +- > > include/linux/device.h | 12 +---- > > 7 files changed, 107 insertions(+), 71 deletions(-) > > > > drivers/base/bus.c: In function 'make_deprecated_bus_links': > drivers/base/bus.c:428: error: 'struct bus_type' has no member named 'subsys' > > Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> > > --- > drivers/base/bus.c | 2 +- > 1 files changed, 1 insertion(+), 1 deletion(-) > > Index: linux-2.6/drivers/base/bus.c > =================================================================== > --- linux-2.6.orig/drivers/base/bus.c 2007-11-05 11:12:49.000000000 +0100 > +++ linux-2.6/drivers/base/bus.c 2007-11-05 11:30:28.000000000 +0100 > @@ -425,7 +425,7 @@ static void device_remove_attrs(struct b > static int make_deprecated_bus_links(struct device *dev) > { > return sysfs_create_link(&dev->kobj, > - &dev->bus->subsys.kobj, "bus"); > + &dev->bus->p->subsys.kobj, "bus"); > } > > static void remove_deprecated_bus_links(struct device *dev)
Thanks, Kay beat you to this by sending me a patch for it yesterday :) greg -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC] kobject and kset core changes and cleanups
, Greg KH
, (Fri Nov 2, 4:57 pm)
[PATCH 01/54] ecryptfs: clean up attribute mess
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 02/54] KOBJECT: remove struct kobj_type from struct ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 03/54] KOBJECT: remove kobj_set_kset_s as no one is ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 04/54] kset: add kset_create_and_register function
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 05/54] kset: convert fuse to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 06/54] kset: convert securityfs to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 07/54] kset: convert debugfs to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 08/54] kset: convert configfs to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 09/54] kset: convert ecryptfs to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 10/54] kset: convert main fs kset to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 11/54] kset: convert gfs2 to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 12/54] kset: convert gfs2 dlm to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 13/54] kset: convert dlm to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 14/54] kset: convert pci hotplug to use kset_create ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 15/54] kset: remove decl_subsys_name
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 16/54] kset: convert kernel_subsys to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 17/54] kset: convert drivers/base/bus.c kset_create ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 18/54] kset: convert drivers/base/class.c kset_crea ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 19/54] kset: convert drivers/base/firmware.c kset_c ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 20/54] kset: convert /sys/devices to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 21/54] kset: convert /sys/hypervisor to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:58 pm)
[PATCH 22/54] kset: convert /sys/devices/system to use kse ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 23/54] kset: convert slub to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 24/54] kset: move /sys/slab to /sys/kernel/slab
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 25/54] kset: convert /sys/module to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 26/54] kset: convert /sys/power to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 27/54] kset: convert s390 hypervisor kset to use ks ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 28/54] kset: convert struct bus_device->devices to ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 29/54] kset: convert struct bus_device->drivers to ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 30/54] driver core: remove owner field from struct ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 31/54] driver core: add way to get to bus kset
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 32/54] driver core: add way to get to bus device klist
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 33/54] driver core: remove fields from struct bus_type
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 34/54] Driver Core: add kobj_attribute handling
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 35/54] Driver Core: switch all dynamic ksets to kob ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 36/54] fix struct user_info export's sysfs interaction
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 37/54] ecryptfs: remove version_str file from sysfs
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 38/54] efivars: remove new_var and del_var files fr ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 39/54] kobject: convert efivars to kobj_attr interface
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 40/54] firmware: export firmware_kset so that peopl ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 41/54] kset: convert efivars to use kset_create for ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 42/54] kset: convert efivars to use kset_create for ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 43/54] kobject: convert arm/mach-omap1/pm.c to kobj ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 44/54] kobject: convert pseries/power.c to kobj_att ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 45/54] kobject: convert s390 ipl.c to kobj_attr int ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 46/54] kset: convert s390 ipl.c to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 47/54] kobject: convert parisc/pdc_stable to kobj_a ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 48/54] kset: convert parisc/pdc_stable.c to use kse ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 49/54] Driver Core: kill subsys_attribute and defau ...
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 50/54] kset: convert edd to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 51/54] kset: convert acpi to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 52/54] firmware: remove firmware_(un)register()
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 53/54] kset: convert ocfs2 to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
[PATCH 54/54] kset: remove decl_subsys macro
, Greg Kroah-Hartman
, (Fri Nov 2, 4:59 pm)
Re: [PATCH 46/54] kset: convert s390 ipl.c to use kset_create
, Cornelia Huck
, (Mon Nov 5, 3:27 am)
Re: [PATCH 33/54] driver core: remove fields from struct b ...
, Cornelia Huck
, (Mon Nov 5, 3:33 am)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Cornelia Huck
, (Mon Nov 5, 5:42 am)
Re: [PATCH 27/54] kset: convert s390 hypervisor kset to us ...
, Cornelia Huck
, (Mon Nov 5, 6:18 am)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Kay Sievers
, (Mon Nov 5, 9:23 am)
Re: [PATCH 33/54] driver core: remove fields from struct b ...
, Greg KH
, (Mon Nov 5, 10:00 am)
Re: [PATCH 46/54] kset: convert s390 ipl.c to use kset_create
, Greg KH
, (Mon Nov 5, 10:05 am)
Re: [PATCH 27/54] kset: convert s390 hypervisor kset to us ...
, Greg KH
, (Mon Nov 5, 10:06 am)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Greg KH
, (Mon Nov 5, 10:11 am)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Kay Sievers
, (Mon Nov 5, 10:25 am)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Cornelia Huck
, (Mon Nov 5, 10:43 am)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Kay Sievers
, (Mon Nov 5, 11:07 am)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use ...
, Cornelia Huck
, (Mon Nov 5, 11:11 am)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Cornelia Huck
, (Mon Nov 5, 11:17 am)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Kay Sievers
, (Mon Nov 5, 11:39 am)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Greg KH
, (Mon Nov 5, 11:46 am)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use ...
, Greg KH
, (Mon Nov 5, 11:58 am)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Cornelia Huck
, (Mon Nov 5, 11:59 am)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use ...
, Cornelia Huck
, (Mon Nov 5, 12:11 pm)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Greg KH
, (Mon Nov 5, 1:01 pm)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use ...
, Greg KH
, (Mon Nov 5, 1:03 pm)
Re: [RFC] kobject and kset core changes and cleanups
, Andrew Morton
, (Mon Nov 5, 11:25 pm)
Re: [RFC] kobject and kset core changes and cleanups
, Andrew Morton
, (Tue Nov 6, 12:11 am)
Re: [RFC] kobject and kset core changes and cleanups
, Andrew Morton
, (Tue Nov 6, 1:04 am)
Re: [RFC] kobject and kset core changes and cleanups
, Stephane Eranian
, (Tue Nov 6, 1:14 am)
Re: [RFC] kobject and kset core changes and cleanups
, Greg KH
, (Tue Nov 6, 2:15 pm)
Re: [RFC] kobject and kset core changes and cleanups
, Stephane Eranian
, (Tue Nov 6, 2:33 pm)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use ...
, Andrew Morton
, (Tue Nov 13, 4:14 pm)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use ...
, Andrew Morton
, (Tue Nov 13, 5:01 pm)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use ...
, Greg KH
, (Tue Nov 13, 5:35 pm)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use ...
, Andrew Morton
, (Wed Nov 14, 12:35 am)
Re: [PATCH 38/54] efivars: remove new_var and del_var file ...
, Matt Domsch
, (Fri Nov 16, 8:01 am)
Re: [PATCH 38/54] efivars: remove new_var and del_var file ...
, Greg KH
, (Mon Nov 26, 10:47 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()