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.14.y 9784/9999] arch/powerpc/platforms/cell/spufs/file.c:2076:6: error: variable 'wbox_stat' set but not used
Date: Wed, 26 May 2021 06:23:29 +0800	[thread overview]
Message-ID: <202105260616.bASck23g-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.14.y
head:   1c6114e2593492f39e02c775d117c95d86f9ae83
commit: 2de3b1d513e50b0b26dd90410842968118a6f46f [9784/9999] powerpc/spufs: fix copy_to_user while atomic
config: powerpc64-defconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.5.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=2de3b1d513e50b0b26dd90410842968118a6f46f
        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.14.y
        git checkout 2de3b1d513e50b0b26dd90410842968118a6f46f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=powerpc64 

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 arch/powerpc/include/asm/book3s/64/mmu-hash.h:24:0,
                    from arch/powerpc/include/asm/book3s/64/mmu.h:30,
                    from arch/powerpc/include/asm/mmu.h:305,
                    from arch/powerpc/include/asm/lppaca.h:36,
                    from arch/powerpc/include/asm/paca.h:21,
                    from arch/powerpc/include/asm/hw_irq.h:43,
                    from arch/powerpc/include/asm/irqflags.h:12,
                    from include/linux/irqflags.h:16,
                    from include/linux/spinlock.h:54,
                    from include/linux/wait.h:9,
                    from include/linux/wait_bit.h:8,
                    from include/linux/fs.h:6,
                    from arch/powerpc/platforms/cell/spufs/file.c:25:
   arch/powerpc/include/asm/book3s/64/pgtable.h:1203:15: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
    static inline const int pud_pfn(pud_t pud)
                  ^~~~~
   arch/powerpc/platforms/cell/spufs/file.c: In function '__spufs_wbox_info_read':
>> arch/powerpc/platforms/cell/spufs/file.c:2076:6: error: variable 'wbox_stat' set but not used [-Werror=unused-but-set-variable]
     u32 wbox_stat;
         ^~~~~~~~~
   cc1: all warnings being treated as errors


vim +/wbox_stat +2076 arch/powerpc/platforms/cell/spufs/file.c

2de3b1d513e50b Jeremy Kerr            2020-05-05  2070  
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23  2071  static ssize_t __spufs_wbox_info_read(struct spu_context *ctx,
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23  2072  			char __user *buf, size_t len, loff_t *pos)
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20  2073  {
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20  2074  	int i, cnt;
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20  2075  	u32 data[4];
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 @2076  	u32 wbox_stat;
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20  2077  
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23  2078  	wbox_stat = ctx->csa.prob.mb_stat_R;
2de3b1d513e50b Jeremy Kerr            2020-05-05  2079  	cnt = spufs_wbox_info_cnt(ctx);
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23  2080  	for (i = 0; i < cnt; i++) {
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23  2081  		data[i] = ctx->csa.spu_mailbox_data[i];
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23  2082  	}
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23  2083  
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23  2084  	return simple_read_from_buffer(buf, len, pos, &data,
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23  2085  				cnt * sizeof(u32));
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23  2086  }
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23  2087  

:::::: The code at line 2076 was first introduced by commit
:::::: 69a2f00ce5d3a19a70b36f08eaf9049677277710 [POWERPC] spufs: Implement /mbox_info, /ibox_info, and /wbox_info.

:::::: TO: Dwayne Grant McConnell <decimal@us.ibm.com>
:::::: CC: Paul Mackerras <paulus@samba.org>

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

                 reply	other threads:[~2021-05-25 22:23 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=202105260616.bASck23g-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.