Date: Fri, 9 Nov 2012 21:41:07 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242841 - head/sys/ofed/include/linux Message-ID: <201211092141.qA9Lf7eX063208@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211092141.qA9Lf7eX063208>