svn commit: r242841 - head/sys/ofed/include/linux
Xin LI
delphij at FreeBSD.org
Fri Nov 9 21:41:07 UTC 2012
Author: delphij
Date: Fri Nov 9 21:41:07 2012
New Revision: 242841
URL: http://svnweb.freebsd.org/changeset/base/242841
Log:
Use %s when calling make_dev with a string pointer. This makes
clang happy.
MFC after: 2 weeks
Modified:
head/sys/ofed/include/linux/cdev.h
Modified: head/sys/ofed/include/linux/cdev.h
==============================================================================
--- head/sys/ofed/include/linux/cdev.h Fri Nov 9 20:19:56 2012 (r242840)
+++ head/sys/ofed/include/linux/cdev.h Fri Nov 9 21:41:07 2012 (r242841)
@@ -107,7 +107,7 @@ cdev_add(struct linux_cdev *cdev, dev_t
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;
More information about the svn-src-all
mailing list