public inbox for [email protected]
 help / color / mirror / Atom feed
From: kernel test robot <[email protected]>
To: Heiko Stuebner <[email protected]>
Cc: [email protected], [email protected],
	GNU/Weeb Mailing List <[email protected]>,
	[email protected],
	Palmer Dabbelt <[email protected]>
Subject: [ammarfaizi2-block:palmer/linux/riscv-d1-merge 19/20] arch/riscv/errata/thead/errata.c:61:6: warning: variable 'cpu_apply_errata' set but not used
Date: Mon, 21 Mar 2022 17:39:47 +0800	[thread overview]
Message-ID: <[email protected]> (raw)

tree:   https://github.com/ammarfaizi2/linux-block palmer/linux/riscv-d1-merge
head:   93a6d3583d613a2ff1c6d28060c78af8631e0d21
commit: 5acf4c1828afd2b357b001c796fbbbaad5461ba4 [19/20] riscv: add memory-type errata for T-Head
config: riscv-randconfig-c006-20220321 (https://download.01.org/0day-ci/archive/20220321/[email protected]/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 85e9b2687a13d1908aa86d1b89c5ce398a06cd39)
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/ammarfaizi2/linux-block/commit/5acf4c1828afd2b357b001c796fbbbaad5461ba4
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block palmer/linux/riscv-d1-merge
        git checkout 5acf4c1828afd2b357b001c796fbbbaad5461ba4
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

>> arch/riscv/errata/thead/errata.c:61:6: warning: variable 'cpu_apply_errata' set but not used [-Wunused-but-set-variable]
           u32 cpu_apply_errata = 0;
               ^
   1 warning generated.


vim +/cpu_apply_errata +61 arch/riscv/errata/thead/errata.c

    54	
    55	void __init_or_module thead_errata_patch_func(struct alt_entry *begin, struct alt_entry *end,
    56						      unsigned long archid, unsigned long impid,
    57						      unsigned int stage)
    58	{
    59		struct alt_entry *alt;
    60		u32 cpu_req_errata = thead_errata_probe(stage, archid, impid);
  > 61		u32 cpu_apply_errata = 0;

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-03-21  9:40 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 \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /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