linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ti:ti-rt-linux-5.10.y 7474/10054] net/socket.c:861:5: error: use of undeclared identifier 'SCM_RED_TIMESTAMPING'
@ 2021-10-19 14:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-19 14:41 UTC (permalink / raw)
  To: WingMan Kwok
  Cc: llvm, kbuild-all, linux-kernel, Vignesh Raghavendra,
	Murali Karicheri, Lokesh Vutla, Kishon Vijay Abraham I

[-- Attachment #1: Type: text/plain, Size: 2757 bytes --]

tree:   git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head:   890b86772cff397e32c66ea6528fe8702d7e44a5
commit: b98f7ec080e0de442e0be84994ec8d26bdc39eeb [7474/10054] net: socket: Forward extra timestamp of received skb to user space
config: mips-randconfig-r012-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d245f2e8597bfb52c34810a328d42b990e4af1a4)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
        git fetch --no-tags ti ti-rt-linux-5.10.y
        git checkout b98f7ec080e0de442e0be84994ec8d26bdc39eeb
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from net/socket.c:95:
   In file included from include/net/cls_cgroup.h:14:
   include/net/sock.h:2525:29: error: use of undeclared identifier 'SCM_REDUNDANT'
                   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
                                             ^
>> net/socket.c:861:5: error: use of undeclared identifier 'SCM_RED_TIMESTAMPING'
                            SCM_RED_TIMESTAMPING, sizeof(tss), &tss);
                            ^
   net/socket.c:2174:6: warning: variable 'max_optlen' set but not used [-Wunused-but-set-variable]
           int max_optlen;
               ^
   1 warning and 2 errors generated.


vim +/SCM_RED_TIMESTAMPING +861 net/socket.c

   845	
   846	void __sock_recv_redinfo_timestamp(struct msghdr *msg, struct sock *sk,
   847					   struct sk_buff *skb)
   848	{
   849		struct scm_timestamping_internal tss;
   850		int empty = 1;
   851		struct skb_shared_hwtstamps *red_shhwtstamps =
   852			skb_redinfo_hwtstamps(skb);
   853	
   854		if (red_shhwtstamps &&
   855		    (sk->sk_tsflags & SOF_TIMESTAMPING_RAW_HARDWARE) &&
   856		    ktime_to_timespec64_cond(red_shhwtstamps->hwtstamp, tss.ts + 2))
   857			empty = 0;
   858	
   859		if (!empty)
   860			put_cmsg(msg, SOL_SOCKET,
 > 861				 SCM_RED_TIMESTAMPING, sizeof(tss), &tss);
   862	}
   863	EXPORT_SYMBOL_GPL(__sock_recv_redinfo_timestamp);
   864	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32042 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-19 14:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19 14:41 [ti:ti-rt-linux-5.10.y 7474/10054] net/socket.c:861:5: error: use of undeclared identifier 'SCM_RED_TIMESTAMPING' 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;
as well as URLs for NNTP newsgroup(s).