From owner-svn-src-all@FreeBSD.ORG Fri Nov 9 21:41:07 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C112DE84; Fri, 9 Nov 2012 21:41:07 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id A54E68FC08; Fri, 9 Nov 2012 21:41:07 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qA9Lf7qM063209; Fri, 9 Nov 2012 21:41:07 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qA9Lf7eX063208; Fri, 9 Nov 2012 21:41:07 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201211092141.qA9Lf7eX063208@svn.freebsd.org> From: Xin LI Date: Fri, 9 Nov 2012 21:41:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242841 - head/sys/ofed/include/linux X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2012 21:41:07 -0000 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;