mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-24 11:25:43 +00:00
Move COMPAT_ATM_ADDPARTY to net/atm/svc.c
This used to be behind an #ifdef COMPAT_COMPAT, so most of userspace wouldn't have seen the definition before. Unfortunately this header file became visible to userspace, so the definition has instead been moved to net/atm/svc.c (the only user). Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com> Reviewed-by: Andrew Waterman <waterman@eecs.berkeley.edu> Reviewed-by: Albert Ou <aou@eecs.berkeley.edu> Message-Id: <1447119071-19392-4-git-send-email-palmer@dabbelt.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
fe15c26ee2
commit
5fe5a7586c
2 changed files with 5 additions and 4 deletions
|
@ -101,10 +101,6 @@ struct atm_dev_stats {
|
||||||
/* use backend to make new if */
|
/* use backend to make new if */
|
||||||
#define ATM_ADDPARTY _IOW('a', ATMIOC_SPECIAL+4,struct atm_iobuf)
|
#define ATM_ADDPARTY _IOW('a', ATMIOC_SPECIAL+4,struct atm_iobuf)
|
||||||
/* add party to p2mp call */
|
/* add party to p2mp call */
|
||||||
#ifdef CONFIG_COMPAT
|
|
||||||
/* It actually takes struct sockaddr_atmsvc, not struct atm_iobuf */
|
|
||||||
#define COMPAT_ATM_ADDPARTY _IOW('a', ATMIOC_SPECIAL+4,struct compat_atm_iobuf)
|
|
||||||
#endif
|
|
||||||
#define ATM_DROPPARTY _IOW('a', ATMIOC_SPECIAL+5,int)
|
#define ATM_DROPPARTY _IOW('a', ATMIOC_SPECIAL+5,int)
|
||||||
/* drop party from p2mp call */
|
/* drop party from p2mp call */
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,11 @@
|
||||||
#include "signaling.h"
|
#include "signaling.h"
|
||||||
#include "addr.h"
|
#include "addr.h"
|
||||||
|
|
||||||
|
#ifdef CONFIG_COMPAT
|
||||||
|
/* It actually takes struct sockaddr_atmsvc, not struct atm_iobuf */
|
||||||
|
#define COMPAT_ATM_ADDPARTY _IOW('a', ATMIOC_SPECIAL + 4, struct compat_atm_iobuf)
|
||||||
|
#endif
|
||||||
|
|
||||||
static int svc_create(struct net *net, struct socket *sock, int protocol,
|
static int svc_create(struct net *net, struct socket *sock, int protocol,
|
||||||
int kern);
|
int kern);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue