Skip to content

Commit 694a58e

Browse files
mcfrisktorvalds
authored andcommitted
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 <mikko.rapeli@iki.fi> Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Colin Ian King <colin.king@canonical.com> Cc: Dan Carpenter <dan.carpenter@oracle.com> Cc: David Howells <dhowells@redhat.com> Cc: Fabian Frederick <fabf@skynet.be> Cc: Sam Protsenko <semen.protsenko@linaro.org> Cc: Yann Droneaud <ydroneaud@opteya.com> Cc: Zhouyang Jia <jiazhouyang09@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 7fa0a1d commit 694a58e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/uapi/linux/coda.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ struct coda_statfs {
295295
struct coda_in_hdr {
296296
u_int32_t opcode;
297297
u_int32_t unique; /* Keep multiple outstanding msgs distinct */
298-
pid_t pid;
299-
pid_t pgid;
298+
__kernel_pid_t pid;
299+
__kernel_pid_t pgid;
300300
vuid_t uid;
301301
};
302302

0 commit comments

Comments
 (0)