All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-stable-rc:linux-4.19.y 2415/3807] arch/riscv/include/asm/processor.h:82:2: error: implicit declaration of function 'barrier'
Date: Tue, 30 Mar 2021 14:32:24 +0800	[thread overview]
Message-ID: <202103301413.pU1Uf6JS-lkp@intel.com> (raw)

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

Hi Arvind,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head:   bbd08292bae4049381e5537588ba9f581456c4d5
commit: b207caff4176e3a6ba273243da2db2e595e4aad2 [2415/3807] compiler.h: fix barrier_data() on clang
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=b207caff4176e3a6ba273243da2db2e595e4aad2
        git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
        git fetch --no-tags linux-stable-rc linux-4.19.y
        git checkout b207caff4176e3a6ba273243da2db2e595e4aad2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv 

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/prefetch.h:15,
                    from drivers/net/ethernet/intel/i40e/i40e_txrx.c:4:
   arch/riscv/include/asm/processor.h: In function 'cpu_relax':
>> arch/riscv/include/asm/processor.h:82:2: error: implicit declaration of function 'barrier' [-Werror=implicit-function-declaration]
      82 |  barrier();
         |  ^~~~~~~
   In file included from include/linux/sctp.h:57,
                    from drivers/net/ethernet/intel/i40e/i40e.h:23,
                    from drivers/net/ethernet/intel/i40e/i40e_txrx.c:8:
   include/uapi/linux/sctp.h: At top level:
   include/uapi/linux/sctp.h:390:1: warning: alignment 4 of 'struct sctp_paddr_change' is less than 8 [-Wpacked-not-aligned]
     390 | } __attribute__((packed, aligned(4)));
         | ^
   include/uapi/linux/sctp.h:719:1: warning: alignment 4 of 'struct sctp_setpeerprim' is less than 8 [-Wpacked-not-aligned]
     719 | } __attribute__((packed, aligned(4)));
         | ^
   include/uapi/linux/sctp.h:718:26: warning: 'sspp_addr' offset 4 in 'struct sctp_setpeerprim' isn't aligned to 8 [-Wpacked-not-aligned]
     718 |  struct sockaddr_storage sspp_addr;
         |                          ^~~~~~~~~
   include/uapi/linux/sctp.h:732:1: warning: alignment 4 of 'struct sctp_prim' is less than 8 [-Wpacked-not-aligned]
     732 | } __attribute__((packed, aligned(4)));
         | ^
   include/uapi/linux/sctp.h:731:26: warning: 'ssp_addr' offset 4 in 'struct sctp_prim' isn't aligned to 8 [-Wpacked-not-aligned]
     731 |  struct sockaddr_storage ssp_addr;
         |                          ^~~~~~~~
   include/uapi/linux/sctp.h:783:1: warning: alignment 4 of 'struct sctp_paddrparams' is less than 8 [-Wpacked-not-aligned]
     783 | } __attribute__((packed, aligned(4)));
         | ^
   include/uapi/linux/sctp.h:775:26: warning: 'spp_address' offset 4 in 'struct sctp_paddrparams' isn't aligned to 8 [-Wpacked-not-aligned]
     775 |  struct sockaddr_storage spp_address;
         |                          ^~~~~~~~~~~
   include/uapi/linux/sctp.h:896:1: warning: alignment 4 of 'struct sctp_paddrinfo' is less than 8 [-Wpacked-not-aligned]
     896 | } __attribute__((packed, aligned(4)));
         | ^
   include/uapi/linux/sctp.h:890:26: warning: 'spinfo_address' offset 4 in 'struct sctp_paddrinfo' isn't aligned to 8 [-Wpacked-not-aligned]
     890 |  struct sockaddr_storage spinfo_address;
         |                          ^~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/barrier +82 arch/riscv/include/asm/processor.h

7db91e57a0acde Palmer Dabbelt 2017-07-10  73  
7db91e57a0acde Palmer Dabbelt 2017-07-10  74  
7db91e57a0acde Palmer Dabbelt 2017-07-10  75  static inline void cpu_relax(void)
7db91e57a0acde Palmer Dabbelt 2017-07-10  76  {
7db91e57a0acde Palmer Dabbelt 2017-07-10  77  #ifdef __riscv_muldiv
7db91e57a0acde Palmer Dabbelt 2017-07-10  78  	int dummy;
7db91e57a0acde Palmer Dabbelt 2017-07-10  79  	/* In lieu of a halt instruction, induce a long-latency stall. */
7db91e57a0acde Palmer Dabbelt 2017-07-10  80  	__asm__ __volatile__ ("div %0, %0, zero" : "=r" (dummy));
7db91e57a0acde Palmer Dabbelt 2017-07-10  81  #endif
7db91e57a0acde Palmer Dabbelt 2017-07-10 @82  	barrier();
7db91e57a0acde Palmer Dabbelt 2017-07-10  83  }
7db91e57a0acde Palmer Dabbelt 2017-07-10  84  

:::::: The code at line 82 was first introduced by commit
:::::: 7db91e57a0acde126a162ababfb1e0ab190130cb RISC-V: Task implementation

:::::: TO: Palmer Dabbelt <palmer@dabbelt.com>
:::::: CC: Palmer Dabbelt <palmer@dabbelt.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: 54799 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Arvind Sankar <nivedita@alum.mit.edu>
Cc: kbuild-all@lists.01.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Randy Dunlap <rdunlap@infradead.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>,
	Nick Desaulniers <ndesaulniers@google.com>,
	Kees Cook <keescook@chromium.org>
Subject: [linux-stable-rc:linux-4.19.y 2415/3807] arch/riscv/include/asm/processor.h:82:2: error: implicit declaration of function 'barrier'
Date: Tue, 30 Mar 2021 14:32:24 +0800	[thread overview]
Message-ID: <202103301413.pU1Uf6JS-lkp@intel.com> (raw)

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

Hi Arvind,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head:   bbd08292bae4049381e5537588ba9f581456c4d5
commit: b207caff4176e3a6ba273243da2db2e595e4aad2 [2415/3807] compiler.h: fix barrier_data() on clang
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=b207caff4176e3a6ba273243da2db2e595e4aad2
        git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
        git fetch --no-tags linux-stable-rc linux-4.19.y
        git checkout b207caff4176e3a6ba273243da2db2e595e4aad2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv 

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/prefetch.h:15,
                    from drivers/net/ethernet/intel/i40e/i40e_txrx.c:4:
   arch/riscv/include/asm/processor.h: In function 'cpu_relax':
>> arch/riscv/include/asm/processor.h:82:2: error: implicit declaration of function 'barrier' [-Werror=implicit-function-declaration]
      82 |  barrier();
         |  ^~~~~~~
   In file included from include/linux/sctp.h:57,
                    from drivers/net/ethernet/intel/i40e/i40e.h:23,
                    from drivers/net/ethernet/intel/i40e/i40e_txrx.c:8:
   include/uapi/linux/sctp.h: At top level:
   include/uapi/linux/sctp.h:390:1: warning: alignment 4 of 'struct sctp_paddr_change' is less than 8 [-Wpacked-not-aligned]
     390 | } __attribute__((packed, aligned(4)));
         | ^
   include/uapi/linux/sctp.h:719:1: warning: alignment 4 of 'struct sctp_setpeerprim' is less than 8 [-Wpacked-not-aligned]
     719 | } __attribute__((packed, aligned(4)));
         | ^
   include/uapi/linux/sctp.h:718:26: warning: 'sspp_addr' offset 4 in 'struct sctp_setpeerprim' isn't aligned to 8 [-Wpacked-not-aligned]
     718 |  struct sockaddr_storage sspp_addr;
         |                          ^~~~~~~~~
   include/uapi/linux/sctp.h:732:1: warning: alignment 4 of 'struct sctp_prim' is less than 8 [-Wpacked-not-aligned]
     732 | } __attribute__((packed, aligned(4)));
         | ^
   include/uapi/linux/sctp.h:731:26: warning: 'ssp_addr' offset 4 in 'struct sctp_prim' isn't aligned to 8 [-Wpacked-not-aligned]
     731 |  struct sockaddr_storage ssp_addr;
         |                          ^~~~~~~~
   include/uapi/linux/sctp.h:783:1: warning: alignment 4 of 'struct sctp_paddrparams' is less than 8 [-Wpacked-not-aligned]
     783 | } __attribute__((packed, aligned(4)));
         | ^
   include/uapi/linux/sctp.h:775:26: warning: 'spp_address' offset 4 in 'struct sctp_paddrparams' isn't aligned to 8 [-Wpacked-not-aligned]
     775 |  struct sockaddr_storage spp_address;
         |                          ^~~~~~~~~~~
   include/uapi/linux/sctp.h:896:1: warning: alignment 4 of 'struct sctp_paddrinfo' is less than 8 [-Wpacked-not-aligned]
     896 | } __attribute__((packed, aligned(4)));
         | ^
   include/uapi/linux/sctp.h:890:26: warning: 'spinfo_address' offset 4 in 'struct sctp_paddrinfo' isn't aligned to 8 [-Wpacked-not-aligned]
     890 |  struct sockaddr_storage spinfo_address;
         |                          ^~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/barrier +82 arch/riscv/include/asm/processor.h

7db91e57a0acde Palmer Dabbelt 2017-07-10  73  
7db91e57a0acde Palmer Dabbelt 2017-07-10  74  
7db91e57a0acde Palmer Dabbelt 2017-07-10  75  static inline void cpu_relax(void)
7db91e57a0acde Palmer Dabbelt 2017-07-10  76  {
7db91e57a0acde Palmer Dabbelt 2017-07-10  77  #ifdef __riscv_muldiv
7db91e57a0acde Palmer Dabbelt 2017-07-10  78  	int dummy;
7db91e57a0acde Palmer Dabbelt 2017-07-10  79  	/* In lieu of a halt instruction, induce a long-latency stall. */
7db91e57a0acde Palmer Dabbelt 2017-07-10  80  	__asm__ __volatile__ ("div %0, %0, zero" : "=r" (dummy));
7db91e57a0acde Palmer Dabbelt 2017-07-10  81  #endif
7db91e57a0acde Palmer Dabbelt 2017-07-10 @82  	barrier();
7db91e57a0acde Palmer Dabbelt 2017-07-10  83  }
7db91e57a0acde Palmer Dabbelt 2017-07-10  84  

:::::: The code at line 82 was first introduced by commit
:::::: 7db91e57a0acde126a162ababfb1e0ab190130cb RISC-V: Task implementation

:::::: TO: Palmer Dabbelt <palmer@dabbelt.com>
:::::: CC: Palmer Dabbelt <palmer@dabbelt.com>

---
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: 54799 bytes --]

             reply	other threads:[~2021-03-30  6:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-30  6:32 kernel test robot [this message]
2021-03-30  6:32 ` [linux-stable-rc:linux-4.19.y 2415/3807] arch/riscv/include/asm/processor.h:82:2: error: implicit declaration of function 'barrier' kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202103301413.pU1Uf6JS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.