From owner-svn-src-all@FreeBSD.ORG Wed Jun 23 18:00:20 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CE281065678; Wed, 23 Jun 2010 18:00:20 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3B41C8FC19; Wed, 23 Jun 2010 18:00:20 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o5NI0Kdk039239; Wed, 23 Jun 2010 18:00:20 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o5NI0KjP039236; Wed, 23 Jun 2010 18:00:20 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201006231800.o5NI0KjP039236@svn.freebsd.org> From: John Baldwin Date: Wed, 23 Jun 2010 18:00:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r209476 - in stable/8/sys: kern sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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, 23 Jun 2010 18:00:20 -0000 Author: jhb Date: Wed Jun 23 18:00:19 2010 New Revision: 209476 URL: http://svn.freebsd.org/changeset/base/209476 Log: MFC 208390: Allow a const char * to be passed as the process name to kproc_kthread_add() without generating a warning. Modified: stable/8/sys/kern/kern_kthread.c stable/8/sys/sys/kthread.h Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) stable/8/sys/dev/ixgbe/ (props changed) stable/8/sys/dev/xen/xenpci/ (props changed) stable/8/sys/geom/sched/ (props changed) Modified: stable/8/sys/kern/kern_kthread.c ============================================================================== --- stable/8/sys/kern/kern_kthread.c Wed Jun 23 17:56:51 2010 (r209475) +++ stable/8/sys/kern/kern_kthread.c Wed Jun 23 18:00:19 2010 (r209476) @@ -386,7 +386,7 @@ kthread_suspend_check(struct thread *td) int kproc_kthread_add(void (*func)(void *), void *arg, struct proc **procptr, struct thread **tdptr, - int flags, int pages, char * procname, const char *fmt, ...) + int flags, int pages, const char *procname, const char *fmt, ...) { int error; va_list ap; Modified: stable/8/sys/sys/kthread.h ============================================================================== --- stable/8/sys/sys/kthread.h Wed Jun 23 17:56:51 2010 (r209475) +++ stable/8/sys/sys/kthread.h Wed Jun 23 18:00:19 2010 (r209476) @@ -63,7 +63,7 @@ int kproc_kthread_add(void (*)(void struct proc **, struct thread **, int flags, int pages, - char * procname, const char *, ...) __printflike(8, 9); + const char *procname, const char *, ...) __printflike(8, 9); int kthread_add(void (*)(void *), void *, struct proc *, struct thread **,