svn commit: r243814 - stable/9/sys/ofed/include/linux
Xin LI
delphij at FreeBSD.org
Mon Dec 3 18:16:37 UTC 2012
Author: delphij
Date: Mon Dec 3 18:16:36 2012
New Revision: 243814
URL: http://svnweb.freebsd.org/changeset/base/243814
Log:
MFC r242841:
Use %s when calling make_dev with a string pointer. This makes
clang happy.
Modified:
stable/9/sys/ofed/include/linux/cdev.h
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/ofed/include/linux/cdev.h
==============================================================================
--- stable/9/sys/ofed/include/linux/cdev.h Mon Dec 3 18:12:54 2012 (r243813)
+++ stable/9/sys/ofed/include/linux/cdev.h Mon Dec 3 18:16:36 2012 (r243814)
@@ -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-stable-9
mailing list