* [brauner-vfs:work.coredump.socket 11/17] net/socket.c:3606:14: error: use of undeclared identifier 'SOCK_COREDUMP'; did you mean 'SOCK_STREAM'?
@ 2025-05-11 15:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-11 15:00 UTC (permalink / raw)
To: Christian Brauner; +Cc: llvm, oe-kbuild-all, Christian Brauner
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git work.coredump.socket
head: a6db84ba07f7137a473dace5a769551ee0ae3415
commit: fae7938dfe0ba5302ee34640a53a85c6305ad99c [11/17] coredump: add coredump socket
config: mips-ci20_defconfig (https://download.01.org/0day-ci/archive/20250511/202505112251.o8vQJy7U-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250511/202505112251.o8vQJy7U-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505112251.o8vQJy7U-lkp@intel.com/
All errors (new ones prefixed by >>):
>> net/socket.c:3606:14: error: use of undeclared identifier 'SOCK_COREDUMP'; did you mean 'SOCK_STREAM'?
3606 | if (flags & SOCK_COREDUMP)
| ^~~~~~~~~~~~~
| SOCK_STREAM
arch/mips/include/asm/socket.h:31:2: note: 'SOCK_STREAM' declared here
31 | SOCK_STREAM = 2,
| ^
1 error generated.
vim +3606 net/socket.c
3587
3588 /**
3589 * kernel_connect - connect a socket (kernel space)
3590 * @sock: socket
3591 * @addr: address
3592 * @addrlen: address length
3593 * @flags: flags (O_NONBLOCK, ...)
3594 *
3595 * For datagram sockets, @addr is the address to which datagrams are sent
3596 * by default, and the only address from which datagrams are received.
3597 * For stream sockets, attempts to connect to @addr.
3598 * Returns 0 or an error code.
3599 */
3600
3601 int kernel_connect(struct socket *sock, struct sockaddr *addr, int addrlen,
3602 int flags)
3603 {
3604 struct sockaddr_storage address;
3605
> 3606 if (flags & SOCK_COREDUMP)
3607 memcpy(&address, addr, addrlen + sizeof(sock->sk->sk_cookie));
3608 else
3609 memcpy(&address, addr, addrlen);
3610
3611 return READ_ONCE(sock->ops)->connect(sock, (struct sockaddr *)&address,
3612 addrlen, flags);
3613 }
3614 EXPORT_SYMBOL(kernel_connect);
3615
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-11 15:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-11 15:00 [brauner-vfs:work.coredump.socket 11/17] net/socket.c:3606:14: error: use of undeclared identifier 'SOCK_COREDUMP'; did you mean 'SOCK_STREAM'? kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox