Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jun 2010 18:00:20 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r209476 - in stable/8/sys: kern sys
Message-ID:  <201006231800.o5NI0KjP039236@svn.freebsd.org>

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



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