Patchwork [net-next,v2,03/10] headers, pppol2tp: Use __kernel_pid_t in <linux/pppol2tp.h>

login
register
mail settings
Submitter Ben Hutchings
Date Aug. 25, 2011, 4:43 a.m.
Message ID <1314247430.27179.120.camel@deadeye>
Download mbox | patch
Permalink /patch/111443/
State Accepted
Delegated to: David Miller
Headers show

Comments

Ben Hutchings - Aug. 25, 2011, 4:43 a.m.
<linux/types.h> defines __kernel_pid_t for userland; pid_t is
defined elsewhere (and potentially differently).

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 include/linux/if_pppol2tp.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/include/linux/if_pppol2tp.h b/include/linux/if_pppol2tp.h
index 184bc55..23cefa1 100644
--- a/include/linux/if_pppol2tp.h
+++ b/include/linux/if_pppol2tp.h
@@ -39,7 +39,7 @@  struct pppol2tp_addr {
  * bits. So we need a different sockaddr structure.
  */
 struct pppol2tpv3_addr {
-	pid_t	pid;			/* pid that owns the fd.
+	__kernel_pid_t	pid;		/* pid that owns the fd.
 					 * 0 => current */
 	int	fd;			/* FD of UDP or IP socket to use */