aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-07-02 14:44:19 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-02 14:44:19 -0400
commitfc76a258d41eea7953bb763397c3d1e589d3bb98 (patch)
treeef8c4b828f3011adf9fc9ef976b9d07c35628e81 /lib
parentfe3c22bd5cadd8e36977b218b27fbea821381ec8 (diff)
parentbfd63cd24df69120585c22e09fda78723772ee2a (diff)
Merge tag 'driver-core-3.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core updates from Greg KH: "Here's the big driver core merge for 3.11-rc1 Lots of little things, and larger firmware subsystem updates, all described in the shortlog. Nice thing here is that we finally get rid of CONFIG_HOTPLUG, after 10+ years, thanks to Stephen Rohtwell (it had been always on for a number of kernel releases, now it's just removed)" * tag 'driver-core-3.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (27 commits) driver core: device.h: fix doc compilation warnings firmware loader: fix another compile warning with PM_SLEEP unset build some drivers only when compile-testing firmware loader: fix compile warning with PM_SLEEP set kobject: sanitize argument for format string sysfs_notify is only possible on file attributes firmware loader: simplify holding module for request_firmware firmware loader: don't export cache_firmware and uncache_firmware drivers/base: Use attribute groups to create sysfs memory files firmware loader: fix compile warning firmware loader: fix build failure with !CONFIG_FW_LOADER_USER_HELPER Documentation: Updated broken link in HOWTO Finally eradicate CONFIG_HOTPLUG driver core: firmware loader: kill FW_ACTION_NOHOTPLUG requests before suspend driver core: firmware loader: don't cache FW_ACTION_NOHOTPLUG firmware Documentation: Tidy up some drivers/base/core.c kerneldoc content. platform_device: use a macro instead of platform_driver_register firmware: move EXPORT_SYMBOL annotations firmware: Avoid deadlock of usermodehelper lock at shutdown dell_rbu: Select CONFIG_FW_LOADER_USER_HELPER explicitly ...
Diffstat (limited to 'lib')
-rw-r--r--lib/fault-inject.c21
-rw-r--r--lib/kobject.c2
2 files changed, 1 insertions, 22 deletions
diff --git a/lib/fault-inject.c b/lib/fault-inject.c
index c5c7a762b850..d7d501ea856d 100644
--- a/lib/fault-inject.c
+++ b/lib/fault-inject.c
@@ -182,27 +182,6 @@ static struct dentry *debugfs_create_stacktrace_depth(
182 182
183#endif /* CONFIG_FAULT_INJECTION_STACKTRACE_FILTER */ 183#endif /* CONFIG_FAULT_INJECTION_STACKTRACE_FILTER */
184 184
185static int debugfs_atomic_t_set(void *data, u64 val)
186{
187 atomic_set((atomic_t *)data, val);
188 return 0;
189}
190
191static int debugfs_atomic_t_get(void *data, u64 *val)
192{
193 *val = atomic_read((atomic_t *)data);
194 return 0;
195}
196
197DEFINE_SIMPLE_ATTRIBUTE(fops_atomic_t, debugfs_atomic_t_get,
198 debugfs_atomic_t_set, "%lld\n");
199
200static struct dentry *debugfs_create_atomic_t(const char *name, umode_t mode,
201 struct dentry *parent, atomic_t *value)
202{
203 return debugfs_create_file(name, mode, parent, value, &fops_atomic_t);
204}
205
206struct dentry *fault_create_debugfs_attr(const char *name, 185struct dentry *fault_create_debugfs_attr(const char *name,
207 struct dentry *parent, struct fault_attr *attr) 186 struct dentry *parent, struct fault_attr *attr)
208{ 187{
diff --git a/lib/kobject.c b/lib/kobject.c
index b7e29a6056d3..4a1f33d43548 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -805,7 +805,7 @@ static struct kset *kset_create(const char *name,
805 kset = kzalloc(sizeof(*kset), GFP_KERNEL); 805 kset = kzalloc(sizeof(*kset), GFP_KERNEL);
806 if (!kset) 806 if (!kset)
807 return NULL; 807 return NULL;
808 retval = kobject_set_name(&kset->kobj, name); 808 retval = kobject_set_name(&kset->kobj, "%s", name);
809 if (retval) { 809 if (retval) {
810 kfree(kset); 810 kfree(kset);
811 return NULL; 811 return NULL;