All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: arch/riscv/include/asm/irqflags.h:22:9: sparse: sparse: context imbalance in 'split_huge_page_to_list' - different lock contexts for basic block
Date: Sun, 11 Jul 2021 04:26:04 +0800	[thread overview]
Message-ID: <202107110455.inxBXGKc-lkp@intel.com> (raw)

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Nanyong Sun <sunnanyong@huawei.com>
CC: Palmer Dabbelt <palmerdabbelt@google.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   af4cf6a5689a9ecc21722cb2bb6220dcaee89c6e
commit: e88b333142e4aba7410d6d3292ad97b3a8588bfe riscv: mm: add THP support on 64-bit
date:   7 weeks ago
:::::: branch date: 3 hours ago
:::::: commit date: 7 weeks ago
config: riscv-randconfig-s032-20210710 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e88b333142e4aba7410d6d3292ad97b3a8588bfe
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout e88b333142e4aba7410d6d3292ad97b3a8588bfe
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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>


sparse warnings: (new ones prefixed by >>)
   mm/huge_memory.c:1639:20: sparse: sparse: context imbalance in 'madvise_free_huge_pmd' - unexpected unlock
   mm/huge_memory.c:1676:28: sparse: sparse: context imbalance in 'zap_huge_pmd' - unexpected unlock
   mm/huge_memory.c:1786:28: sparse: sparse: context imbalance in 'move_huge_pmd' - unexpected unlock
   mm/huge_memory.c:1890:20: sparse: sparse: context imbalance in 'change_huge_pmd' - unexpected unlock
   mm/huge_memory.c:1900:12: sparse: sparse: context imbalance in '__pmd_trans_huge_lock' - wrong count at exit
   mm/huge_memory.c:2510:29: sparse: sparse: context imbalance in '__split_huge_page' - unexpected unlock
   mm/huge_memory.c: note: in included file (through include/linux/irqflags.h, arch/riscv/include/asm/bitops.h, include/linux/bitops.h, ...):
>> arch/riscv/include/asm/irqflags.h:22:9: sparse: sparse: context imbalance in 'split_huge_page_to_list' - different lock contexts for basic block

vim +/split_huge_page_to_list +22 arch/riscv/include/asm/irqflags.h

6d60b6ee0c9777 Palmer Dabbelt    2017-07-10  18  
6d60b6ee0c9777 Palmer Dabbelt    2017-07-10  19  /* unconditionally enable interrupts */
6d60b6ee0c9777 Palmer Dabbelt    2017-07-10  20  static inline void arch_local_irq_enable(void)
6d60b6ee0c9777 Palmer Dabbelt    2017-07-10  21  {
a4c3733d32a72f Christoph Hellwig 2019-10-28 @22  	csr_set(CSR_STATUS, SR_IE);
6d60b6ee0c9777 Palmer Dabbelt    2017-07-10  23  }
6d60b6ee0c9777 Palmer Dabbelt    2017-07-10  24  

:::::: The code at line 22 was first introduced by commit
:::::: a4c3733d32a72f11dee86d0731d7565aa6ebe22d riscv: abstract out CSR names for supervisor vs machine mode

:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Paul Walmsley <paul.walmsley@sifive.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: 30474 bytes --]

                 reply	other threads:[~2021-07-10 20:26 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=202107110455.inxBXGKc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@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.