Allow a const char * to be passed as the process name to kproc_kthread_add()
without generating a warning. MFC after: 1 month
This commit is contained in:
parent
8b10473d30
commit
07969f1d4d
@ -418,7 +418,7 @@ kthread_suspend_check()
|
||||
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;
|
||||
|
@ -63,7 +63,7 @@ int kproc_kthread_add(void (*)(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 **,
|
||||
|
Loading…
Reference in New Issue
Block a user