summaryrefslogtreecommitdiffstats
path: root/sys/ofed/include/linux/cdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ofed/include/linux/cdev.h')
-rw-r--r--sys/ofed/include/linux/cdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ofed/include/linux/cdev.h b/sys/ofed/include/linux/cdev.h
index cc77495..ea48334 100644
--- a/sys/ofed/include/linux/cdev.h
+++ b/sys/ofed/include/linux/cdev.h
@@ -107,7 +107,7 @@ cdev_add(struct linux_cdev *cdev, dev_t dev, unsigned count)
if (count != 1)
panic("cdev_add: Unsupported count: %d", count);
cdev->cdev = make_dev(&linuxcdevsw, MINOR(dev), 0, 0, 0700,
- kobject_name(&cdev->kobj));
+ "%s", kobject_name(&cdev->kobj));
cdev->dev = dev;
cdev->cdev->si_drv1 = cdev;
OpenPOWER on IntegriCloud