compat_ioctl: ppp: move simple commands into ppp_generic.c
authorArnd Bergmann <arnd@arndb.de>
Fri, 26 Jul 2019 13:21:39 +0000 (15:21 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 23 Oct 2019 15:23:47 +0000 (17:23 +0200)
commit8f5d9f2ce3020be1a7924b4cc4a1f51164f2c0b7
tree52c0077167c36c3805c233237410c331333d7ec2
parent17c7e7f407085f510a815c0c99b3fd25d5b13110
compat_ioctl: ppp: move simple commands into ppp_generic.c

All ppp commands that are not already handled in ppp_compat_ioctl()
are compatible, so they can now handled by calling the native
ppp_ioctl() directly.

Without CONFIG_BLOCK, the generic compat_ioctl table is now empty,
so add a check to avoid a build failure in the looking function for
that configuration.

Cc: netdev@vger.kernel.org
Cc: linux-ppp@vger.kernel.org
Cc: Paul Mackerras <paulus@samba.org>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/net/ppp/ppp_generic.c
fs/compat_ioctl.c