From: Mikko Rapeli Date: Tue, 16 Jul 2019 23:28:07 +0000 (-0700) Subject: uapi linux/coda.h: use __kernel_pid_t for userspace X-Git-Tag: v5.15~5916^2~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=694a58e29ef27c4c26f103a9decfd053f94dd34c;p=platform%2Fkernel%2Flinux-starfive.git uapi linux/coda.h: use __kernel_pid_t for userspace Part of a patch by Mikko Rapeli, as Arnd Bergman commented on the original patch. pid_t might differ between libc and the kernel, so the kernel interface has to use types that the kernel defines. Link: http://lkml.kernel.org/r/f374a71f4d351bc8c8b3ac18ad7765c88d806d10.1558117389.git.jaharkes@cs.cmu.edu Signed-off-by: Mikko Rapeli Signed-off-by: Jan Harkes Cc: Arnd Bergmann Cc: Colin Ian King Cc: Dan Carpenter Cc: David Howells Cc: Fabian Frederick Cc: Sam Protsenko Cc: Yann Droneaud Cc: Zhouyang Jia Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/uapi/linux/coda.h b/include/uapi/linux/coda.h index 695fade..ed8cb26 100644 --- a/include/uapi/linux/coda.h +++ b/include/uapi/linux/coda.h @@ -295,8 +295,8 @@ struct coda_statfs { struct coda_in_hdr { u_int32_t opcode; u_int32_t unique; /* Keep multiple outstanding msgs distinct */ - pid_t pid; - pid_t pgid; + __kernel_pid_t pid; + __kernel_pid_t pgid; vuid_t uid; };