hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/phonet/socket.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * File: socket.c
34 *
....@@ -7,20 +8,6 @@
78 *
89 * Authors: Sakari Ailus <sakari.ailus@nokia.com>
910 * Rémi Denis-Courmont
10
- *
11
- * This program is free software; you can redistribute it and/or
12
- * modify it under the terms of the GNU General Public License
13
- * version 2 as published by the Free Software Foundation.
14
- *
15
- * This program is distributed in the hope that it will be useful, but
16
- * WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
- * General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; if not, write to the Free Software
22
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
23
- * 02110-1301 USA
2411 */
2512
2613 #include <linux/gfp.h>
....@@ -452,12 +439,6 @@
452439 .ioctl = pn_socket_ioctl,
453440 .listen = sock_no_listen,
454441 .shutdown = sock_no_shutdown,
455
- .setsockopt = sock_no_setsockopt,
456
- .getsockopt = sock_no_getsockopt,
457
-#ifdef CONFIG_COMPAT
458
- .compat_setsockopt = sock_no_setsockopt,
459
- .compat_getsockopt = sock_no_getsockopt,
460
-#endif
461442 .sendmsg = pn_socket_sendmsg,
462443 .recvmsg = sock_common_recvmsg,
463444 .mmap = sock_no_mmap,
....@@ -479,10 +460,6 @@
479460 .shutdown = sock_no_shutdown,
480461 .setsockopt = sock_common_setsockopt,
481462 .getsockopt = sock_common_getsockopt,
482
-#ifdef CONFIG_COMPAT
483
- .compat_setsockopt = compat_sock_common_setsockopt,
484
- .compat_getsockopt = compat_sock_common_getsockopt,
485
-#endif
486463 .sendmsg = pn_socket_sendmsg,
487464 .recvmsg = sock_common_recvmsg,
488465 .mmap = sock_no_mmap,
....@@ -607,7 +584,7 @@
607584 struct pn_sock *pn = pn_sk(sk);
608585
609586 seq_printf(seq, "%2d %04X:%04X:%02X %02X %08X:%08X %5d %lu "
610
- "%d %pK %d",
587
+ "%d %pK %u",
611588 sk->sk_protocol, pn->sobject, pn->dobject,
612589 pn->resource, sk->sk_state,
613590 sk_wmem_alloc_get(sk), sk_rmem_alloc_get(sk),