All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: arch/mips/include/asm/irqflags.h:101:9: sparse: sparse: context imbalance in 'split_huge_page_to_list' - different lock contexts for basic block
Date: Wed, 17 Mar 2021 03:22:48 +0800	[thread overview]
Message-ID: <202103170344.kY0nhNKc-lkp@intel.com> (raw)

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Alex Shi <alex.shi@linux.alibaba.com>
CC: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1df27313f50a57497c1faeb6a6ae4ca939c85a7d
commit: b6769834aac1d467fa1c71277d15688efcbb4d76 mm/thp: narrow lru locking
date:   3 months ago
:::::: branch date: 2 hours ago
:::::: commit date: 3 months ago
config: mips-randconfig-s032-20210316 (attached as .config)
compiler: mips64el-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-277-gc089cd2d-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b6769834aac1d467fa1c71277d15688efcbb4d76
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout b6769834aac1d467fa1c71277d15688efcbb4d76
        # 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__' ARCH=mips 

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 >>)
   command-line: note: in included file:
   builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined
   builtin:0:0: sparse: this was the original definition
   builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined
   builtin:0:0: sparse: this was the original definition
   builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined
   builtin:0:0: sparse: this was the original definition
   builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined
   builtin:0:0: sparse: this was the original definition
   mm/huge_memory.c:1640:20: sparse: sparse: context imbalance in 'madvise_free_huge_pmd' - unexpected unlock
   mm/huge_memory.c:1677:28: sparse: sparse: context imbalance in 'zap_huge_pmd' - unexpected unlock
   mm/huge_memory.c:1787:28: sparse: sparse: context imbalance in 'move_huge_pmd' - unexpected unlock
   mm/huge_memory.c:1891:20: sparse: sparse: context imbalance in 'change_huge_pmd' - unexpected unlock
   mm/huge_memory.c:1901: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/mips/include/asm/atomic.h, include/linux/atomic.h, ...):
>> arch/mips/include/asm/irqflags.h:101:9: sparse: sparse: context imbalance in 'split_huge_page_to_list' - different lock contexts for basic block

vim +/split_huge_page_to_list +101 arch/mips/include/asm/irqflags.h

02b849f7613003 Ralf Baechle 2013-02-08   98  
02b849f7613003 Ralf Baechle 2013-02-08   99  static inline void arch_local_irq_enable(void)
02b849f7613003 Ralf Baechle 2013-02-08  100  {
02b849f7613003 Ralf Baechle 2013-02-08 @101  	__asm__ __volatile__(
e97c5b609880d9 Jim Quinlan  2012-09-06  102  	"	.set	push						\n"
e97c5b609880d9 Jim Quinlan  2012-09-06  103  	"	.set	reorder						\n"
e97c5b609880d9 Jim Quinlan  2012-09-06  104  	"	.set	noat						\n"
ba9196d2e005a0 Jiaxun Yang  2020-01-13  105  #if defined(CONFIG_CPU_HAS_DIEI)
e97c5b609880d9 Jim Quinlan  2012-09-06  106  	"	ei							\n"
e97c5b609880d9 Jim Quinlan  2012-09-06  107  #else
e97c5b609880d9 Jim Quinlan  2012-09-06  108  	"	mfc0	$1,$12						\n"
e97c5b609880d9 Jim Quinlan  2012-09-06  109  	"	ori	$1,0x1f						\n"
e97c5b609880d9 Jim Quinlan  2012-09-06  110  	"	xori	$1,0x1e						\n"
e97c5b609880d9 Jim Quinlan  2012-09-06  111  	"	mtc0	$1,$12						\n"
e97c5b609880d9 Jim Quinlan  2012-09-06  112  #endif
02b849f7613003 Ralf Baechle 2013-02-08  113  	"	" __stringify(__irq_enable_hazard) "			\n"
e97c5b609880d9 Jim Quinlan  2012-09-06  114  	"	.set	pop						\n"
e97c5b609880d9 Jim Quinlan  2012-09-06  115  	: /* no outputs */
e97c5b609880d9 Jim Quinlan  2012-09-06  116  	: /* no inputs */
e97c5b609880d9 Jim Quinlan  2012-09-06  117  	: "memory");
e97c5b609880d9 Jim Quinlan  2012-09-06  118  }
e97c5b609880d9 Jim Quinlan  2012-09-06  119  

:::::: The code at line 101 was first introduced by commit
:::::: 02b849f7613003fe5f9e58bf233d49b0ebd4a5e8 MIPS: Get rid of the use of .macro in C code.

:::::: TO: Ralf Baechle <ralf@linux-mips.org>
:::::: CC: Ralf Baechle <ralf@linux-mips.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: 34430 bytes --]

             reply	other threads:[~2021-03-16 19:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-16 19:22 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-06-08 17:42 arch/mips/include/asm/irqflags.h:101:9: sparse: sparse: context imbalance in 'split_huge_page_to_list' - different lock contexts for basic block kernel test robot
2021-06-26 19:20 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=202103170344.kY0nhNKc-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.