Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Dec 2012 18:16:37 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r243814 - stable/9/sys/ofed/include/linux
Message-ID:  <201212031816.qB3IGbJ1000104@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212031816.qB3IGbJ1000104>