public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Guo Ren <guoren@linux.alibaba.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	Liu Shaohua <liush@allwinnertech.com>
Subject: [csky-linux:linux-5.15-rc1-d1-v4 5/7] arch/riscv/errata/thead/errata.c:94:36: error: variable has incomplete type 'struct riscv_dma_cache_sync'
Date: Sat, 4 Sep 2021 21:32:24 +0800	[thread overview]
Message-ID: <202109042116.BPpm7cMr-lkp@intel.com> (raw)

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

tree:   https://github.com/c-sky/csky-linux linux-5.15-rc1-d1-v4
head:   88c6ea42e010e46e58be159efa07cda22d95a512
commit: 0142ec9445a1e45a7d91b6a202b6ad83614b432a [5/7] riscv: errata: Support T-HEAD custom dcache ops
config: riscv-randconfig-r042-20210904 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6fe2beba7d2a41964af658c8c59dd172683ef739)
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 riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://github.com/c-sky/csky-linux/commit/0142ec9445a1e45a7d91b6a202b6ad83614b432a
        git remote add csky-linux https://github.com/c-sky/csky-linux
        git fetch --no-tags csky-linux linux-5.15-rc1-d1-v4
        git checkout 0142ec9445a1e45a7d91b6a202b6ad83614b432a
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=riscv 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 >>):

>> arch/riscv/errata/thead/errata.c:94:36: error: variable has incomplete type 'struct riscv_dma_cache_sync'
   static struct riscv_dma_cache_sync c900_dma_cache_sync = {
                                      ^
   arch/riscv/errata/thead/errata.c:94:15: note: forward declaration of 'struct riscv_dma_cache_sync'
   static struct riscv_dma_cache_sync c900_dma_cache_sync = {
                 ^
>> arch/riscv/errata/thead/errata.c:103:2: error: implicit declaration of function 'riscv_dma_cache_sync_set' [-Werror,-Wimplicit-function-declaration]
           riscv_dma_cache_sync_set(&c900_dma_cache_sync);
           ^
   2 errors generated.


vim +94 arch/riscv/errata/thead/errata.c

    93	
  > 94	static struct riscv_dma_cache_sync c900_dma_cache_sync = {
    95		.cache_invalidate = c900_cache_invalidate,
    96		.cache_clean = c900_cache_clean,
    97		.cache_flush = c900_cache_flush,
    98	};
    99	
   100	void __init thead_errata_patch_func(struct alt_entry *begin, struct alt_entry *end,
   101					     unsigned long archid, unsigned long impid)
   102	{
 > 103		riscv_dma_cache_sync_set(&c900_dma_cache_sync);

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

                 reply	other threads:[~2021-09-04 13:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202109042116.BPpm7cMr-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=guoren@linux.alibaba.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liush@allwinnertech.com \
    --cc=llvm@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox