All of lore.kernel.org
 help / color / mirror / Atom feed
* [ti:ti-linux-5.4.y 9521/13425] net/socket.c:847:5: error: 'SCM_RED_TIMESTAMPING' undeclared
@ 2021-03-23 20:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-23 20:11 UTC (permalink / raw)
  To: kbuild-all

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

Hi Grygorii,

First bad commit (maybe != root cause):

tree:   git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.4.y
head:   ca222ae72ea37d74141ed53deaa0a07263ef34e8
commit: 93fac9fa368d4c49b62745b6f324d019fb42ecc4 [9521/13425] HACK: scripts: headers_install: fix allmodconfig builds
config: parisc-defconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
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
        git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
        git fetch --no-tags ti ti-linux-5.4.y
        git checkout 93fac9fa368d4c49b62745b6f324d019fb42ecc4
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc 

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 include/linux/mm.h:99,
                    from net/socket.c:55:
   include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
   arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
      91 |   pte_t old_pte;     \
         |         ^~~~~~~
   arch/parisc/include/asm/pgtable.h:316:34: note: in expansion of macro 'set_pte_at'
     316 | #define pte_clear(mm, addr, xp)  set_pte_at(mm, addr, xp, __pte(0))
         |                                  ^~~~~~~~~~
   include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
     201 |  pte_clear(mm, address, ptep);
         |  ^~~~~~~~~
   include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
   arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
      91 |   pte_t old_pte;     \
         |         ^~~~~~~
   include/asm-generic/pgtable.h:629:2: note: in expansion of macro 'set_pte_at'
     629 |  set_pte_at(vma->vm_mm, addr, ptep, pte);
         |  ^~~~~~~~~~
   In file included from include/net/cls_cgroup.h:14,
                    from net/socket.c:95:
   include/net/sock.h: In function 'sock_recv_redundant_info':
   include/net/sock.h:2461:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
    2461 |   put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
         |                             ^~~~~~~~~~~~~
   include/net/sock.h:2461:29: note: each undeclared identifier is reported only once for each function it appears in
   net/socket.c: In function '__sock_recv_redinfo_timestamp':
>> net/socket.c:847:5: error: 'SCM_RED_TIMESTAMPING' undeclared (first use in this function)
     847 |     SCM_RED_TIMESTAMPING, sizeof(tss), &tss);
         |     ^~~~~~~~~~~~~~~~~~~~
   net/socket.c: In function '__sys_getsockopt':
   net/socket.c:2132:6: warning: variable 'max_optlen' set but not used [-Wunused-but-set-variable]
    2132 |  int max_optlen;
         |      ^~~~~~~~~~


vim +/SCM_RED_TIMESTAMPING +847 net/socket.c

7c81fd8bfbaa97 Arnaldo Carvalho de Melo 2007-03-10  831  
70e28ef2c9afeb WingMan Kwok             2018-03-02  832  void __sock_recv_redinfo_timestamp(struct msghdr *msg, struct sock *sk,
70e28ef2c9afeb WingMan Kwok             2018-03-02  833  				   struct sk_buff *skb)
70e28ef2c9afeb WingMan Kwok             2018-03-02  834  {
70e28ef2c9afeb WingMan Kwok             2018-03-02  835  	struct scm_timestamping tss;
70e28ef2c9afeb WingMan Kwok             2018-03-02  836  	int empty = 1;
70e28ef2c9afeb WingMan Kwok             2018-03-02  837  	struct skb_shared_hwtstamps *red_shhwtstamps =
70e28ef2c9afeb WingMan Kwok             2018-03-02  838  		skb_redinfo_hwtstamps(skb);
70e28ef2c9afeb WingMan Kwok             2018-03-02  839  
70e28ef2c9afeb WingMan Kwok             2018-03-02  840  	if (red_shhwtstamps &&
70e28ef2c9afeb WingMan Kwok             2018-03-02  841  	    (sk->sk_tsflags & SOF_TIMESTAMPING_RAW_HARDWARE) &&
70e28ef2c9afeb WingMan Kwok             2018-03-02  842  	    ktime_to_timespec_cond(red_shhwtstamps->hwtstamp, tss.ts + 2))
70e28ef2c9afeb WingMan Kwok             2018-03-02  843  		empty = 0;
70e28ef2c9afeb WingMan Kwok             2018-03-02  844  
70e28ef2c9afeb WingMan Kwok             2018-03-02  845  	if (!empty)
70e28ef2c9afeb WingMan Kwok             2018-03-02  846  		put_cmsg(msg, SOL_SOCKET,
70e28ef2c9afeb WingMan Kwok             2018-03-02 @847  			 SCM_RED_TIMESTAMPING, sizeof(tss), &tss);
70e28ef2c9afeb WingMan Kwok             2018-03-02  848  }
70e28ef2c9afeb WingMan Kwok             2018-03-02  849  EXPORT_SYMBOL_GPL(__sock_recv_redinfo_timestamp);
70e28ef2c9afeb WingMan Kwok             2018-03-02  850  

:::::: The code at line 847 was first introduced by commit
:::::: 70e28ef2c9afebab74651ba7aca5895ca4d922d4 net: socket: forward extra timestamp of received skb to user space

:::::: TO: WingMan Kwok <w-kwok2@ti.com>
:::::: CC: Lokesh Vutla <lokeshvutla@ti.com>

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

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

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

only message in thread, other threads:[~2021-03-23 20:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23 20:11 [ti:ti-linux-5.4.y 9521/13425] net/socket.c:847:5: error: 'SCM_RED_TIMESTAMPING' undeclared kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.