.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * File: socket.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
7 | 8 | * |
---|
8 | 9 | * Authors: Sakari Ailus <sakari.ailus@nokia.com> |
---|
9 | 10 | * 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 |
---|
24 | 11 | */ |
---|
25 | 12 | |
---|
26 | 13 | #include <linux/gfp.h> |
---|
.. | .. |
---|
452 | 439 | .ioctl = pn_socket_ioctl, |
---|
453 | 440 | .listen = sock_no_listen, |
---|
454 | 441 | .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 |
---|
461 | 442 | .sendmsg = pn_socket_sendmsg, |
---|
462 | 443 | .recvmsg = sock_common_recvmsg, |
---|
463 | 444 | .mmap = sock_no_mmap, |
---|
.. | .. |
---|
479 | 460 | .shutdown = sock_no_shutdown, |
---|
480 | 461 | .setsockopt = sock_common_setsockopt, |
---|
481 | 462 | .getsockopt = sock_common_getsockopt, |
---|
482 | | -#ifdef CONFIG_COMPAT |
---|
483 | | - .compat_setsockopt = compat_sock_common_setsockopt, |
---|
484 | | - .compat_getsockopt = compat_sock_common_getsockopt, |
---|
485 | | -#endif |
---|
486 | 463 | .sendmsg = pn_socket_sendmsg, |
---|
487 | 464 | .recvmsg = sock_common_recvmsg, |
---|
488 | 465 | .mmap = sock_no_mmap, |
---|
.. | .. |
---|
607 | 584 | struct pn_sock *pn = pn_sk(sk); |
---|
608 | 585 | |
---|
609 | 586 | seq_printf(seq, "%2d %04X:%04X:%02X %02X %08X:%08X %5d %lu " |
---|
610 | | - "%d %pK %d", |
---|
| 587 | + "%d %pK %u", |
---|
611 | 588 | sk->sk_protocol, pn->sobject, pn->dobject, |
---|
612 | 589 | pn->resource, sk->sk_state, |
---|
613 | 590 | sk_wmem_alloc_get(sk), sk_rmem_alloc_get(sk), |
---|