]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
can: raw: raw_sock_no_ioctlcmd(): mark function as static
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 12 Aug 2019 13:49:04 +0000 (15:49 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 13 Aug 2019 15:32:20 +0000 (17:32 +0200)
This patch marks the raw_sock_no_ioctlcmd() function as static as it's
only used in this source file.

Fixes: 473d924d7d46 ("can: fix ioctl function removal")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
net/can/raw.c

index a28b285545e54f8b376bebd99dd266f3bffecf99..fdbc36140e9bc188318822e2f3ad80d8d1517a13 100644 (file)
@@ -835,8 +835,8 @@ static int raw_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
        return size;
 }
 
-int raw_sock_no_ioctlcmd(struct socket *sock, unsigned int cmd,
-                        unsigned long arg)
+static int raw_sock_no_ioctlcmd(struct socket *sock, unsigned int cmd,
+                               unsigned long arg)
 {
        /* no ioctls for socket layer -> hand it down to NIC layer */
        return -ENOIOCTLCMD;