From owner-svn-src-all@FreeBSD.ORG Wed Dec 25 23:15:13 2013 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3ED3669C; Wed, 25 Dec 2013 23:15:13 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0F6051B23; Wed, 25 Dec 2013 23:15:12 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1VvxQX-00018J-QK; Wed, 25 Dec 2013 22:59:45 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id rBPMxhVf007116; Wed, 25 Dec 2013 15:59:43 -0700 (MST) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18n2oky8YWULJmf1WJrbGsX Subject: Re: svn commit: r259893 - head/sys/vm From: Ian Lepore To: Dimitry Andric In-Reply-To: <201312252232.rBPMWZ6a042376@svn.freebsd.org> References: <201312252232.rBPMWZ6a042376@svn.freebsd.org> Content-Type: text/plain; charset="us-ascii" Date: Wed, 25 Dec 2013 15:59:42 -0700 Message-ID: <1388012382.1158.128.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 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: Wed, 25 Dec 2013 23:15:13 -0000 On Wed, 2013-12-25 at 22:32 +0000, Dimitry Andric wrote: > Author: dim > Date: Wed Dec 25 22:32:34 2013 > New Revision: 259893 > URL: http://svnweb.freebsd.org/changeset/base/259893 > > Log: > In sys/vm/vm_pageout.c, since vm_pageout_worker() takes a void * as > argument, cast the incoming 0 argument to void *, to silence a warning > from clang 3.4 ("expression which evaluates to zero treated as a null > pointer constant of type 'void *' [-Wnon-literal-null-conversion]"). > > MFC after: 3 days > > Modified: > head/sys/vm/vm_pageout.c > > Modified: head/sys/vm/vm_pageout.c > ============================================================================== > --- head/sys/vm/vm_pageout.c Wed Dec 25 22:14:42 2013 (r259892) > +++ head/sys/vm/vm_pageout.c Wed Dec 25 22:32:34 2013 (r259893) > @@ -1699,7 +1699,7 @@ vm_pageout(void) > } > } > #endif > - vm_pageout_worker((uintptr_t)0); > + vm_pageout_worker((void *)(uintptr_t)0); > } > > /* Why isn't the fix for this just vm_pageout_worker(NULL); ? -- Ian