Generic Linux architectural discussions
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: chengang@emindsoft.com.cn
Cc: kbuild-all@01.org, akpm@linux-foundation.org, minchan@kernel.org,
	vbabka@suse.cz, gi-oh.kim@profitbricks.com,
	iamjoonsoo.kim@lge.com, hillf.zj@alibaba-inc.com,
	mgorman@techsingularity.net, mhocko@suse.com,
	rientjes@google.com, linux-kernel@vger.kernel.org,
	rth@twiddle.net, ink@jurassic.park.msu.ru, mattst88@gmail.com,
	vgupta@synopsys.com, linux@armlinux.org.uk,
	catalin.marinas@arm.com, will.deacon@arm.com,
	hskinnemoen@gmail.com, egtvedt@samfundet.no, realmz6@gmail.com,
	ysato@users.sourceforge.jp, rkuo@codeaurora.org,
	tony.luck@intel.com, fenghua.yu@intel.com, geert@linux-m68k.org,
	james.hogan@imgtec.com, ralf@linux-mips.org, dhowells@redhat.com,
	deller@gmx.de, benh@kernel.crashing.org, paulus@samba.org,
	mpe@ellerman.id.au, schwidefsky@de.ibm.com,
	heiko.carstens@de.ibm.com, dalias@l
Subject: Re: [PATCH] arch: all: include: asm: bitops: Use bool instead of int for all bit test functions
Date: Sun, 28 Aug 2016 15:10:29 +0800	[thread overview]
Message-ID: <201608281559.Y8PTpF4L%fengguang.wu@intel.com> (raw)
In-Reply-To: <1472362755-26776-1-git-send-email-chengang@emindsoft.com.cn>

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

Hi Chen,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.8-rc3 next-20160825]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    https://github.com/0day-ci/linux/commits/chengang-emindsoft-com-cn/arch-all-include-asm-bitops-Use-bool-instead-of-int-for-all-bit-test-functions/20160828-134633
config: arm-at91_dt_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.4.0-6) 5.4.0 20160609
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

   In file included from include/linux/bitops.h:36:0,
                    from include/linux/kernel.h:10,
                    from include/linux/list.h:8,
                    from include/linux/module.h:9,
                    from net/sunrpc/clnt.c:21:
   include/linux/sunrpc/xprt.h: In function 'xprt_set_bound':
>> arch/arm/include/asm/bitops.h:180:55: warning: value computed is not used [-Wunused-value]
     (__builtin_constant_p(nr) ? ____atomic_##name(nr, p) : _##name(nr,p))
                                                          ^
>> arch/arm/include/asm/bitops.h:191:33: note: in expansion of macro 'ATOMIC_BITOP'
    #define test_and_set_bit(nr,p)  ATOMIC_BITOP(test_and_set_bit,nr,p)
                                    ^
   include/linux/sunrpc/xprt.h:433:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(XPRT_BOUND, &xprt->state);
     ^

vim +180 arch/arm/include/asm/bitops.h

^1da177e include/asm-arm/bitops.h      Linus Torvalds 2005-04-16  174  
e7ec0293 include/asm-arm/bitops.h      Russell King   2005-07-28  175  #ifndef CONFIG_SMP
^1da177e include/asm-arm/bitops.h      Linus Torvalds 2005-04-16  176  /*
^1da177e include/asm-arm/bitops.h      Linus Torvalds 2005-04-16  177   * The __* form of bitops are non-atomic and may be reordered.
^1da177e include/asm-arm/bitops.h      Linus Torvalds 2005-04-16  178   */
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  179  #define ATOMIC_BITOP(name,nr,p)			\
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16 @180  	(__builtin_constant_p(nr) ? ____atomic_##name(nr, p) : _##name(nr,p))
e7ec0293 include/asm-arm/bitops.h      Russell King   2005-07-28  181  #else
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  182  #define ATOMIC_BITOP(name,nr,p)		_##name(nr,p)
e7ec0293 include/asm-arm/bitops.h      Russell King   2005-07-28  183  #endif
^1da177e include/asm-arm/bitops.h      Linus Torvalds 2005-04-16  184  
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  185  /*
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  186   * Native endian atomic definitions.
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  187   */
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  188  #define set_bit(nr,p)			ATOMIC_BITOP(set_bit,nr,p)
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  189  #define clear_bit(nr,p)			ATOMIC_BITOP(clear_bit,nr,p)
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  190  #define change_bit(nr,p)		ATOMIC_BITOP(change_bit,nr,p)
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16 @191  #define test_and_set_bit(nr,p)		ATOMIC_BITOP(test_and_set_bit,nr,p)
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  192  #define test_and_clear_bit(nr,p)	ATOMIC_BITOP(test_and_clear_bit,nr,p)
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  193  #define test_and_change_bit(nr,p)	ATOMIC_BITOP(test_and_change_bit,nr,p)
^1da177e include/asm-arm/bitops.h      Linus Torvalds 2005-04-16  194  

:::::: The code at line 180 was first introduced by commit
:::::: 6323f0ccedf756dfe5f46549cec69a2d6d97937b ARM: bitops: switch set/clear/change bitops to use ldrex/strex

:::::: TO: Russell King <rmk+kernel@arm.linux.org.uk>
:::::: CC: Russell King <rmk+kernel@arm.linux.org.uk>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 21569 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kbuild test robot <lkp@intel.com>
To: chengang@emindsoft.com.cn
Cc: kbuild-all@01.org, akpm@linux-foundation.org, minchan@kernel.org,
	vbabka@suse.cz, gi-oh.kim@profitbricks.com,
	iamjoonsoo.kim@lge.com, hillf.zj@alibaba-inc.com,
	mgorman@techsingularity.net, mhocko@suse.com,
	rientjes@google.com, linux-kernel@vger.kernel.org,
	rth@twiddle.net, ink@jurassic.park.msu.ru, mattst88@gmail.com,
	vgupta@synopsys.com, linux@armlinux.org.uk,
	catalin.marinas@arm.com, will.deacon@arm.com,
	hskinnemoen@gmail.com, egtvedt@samfundet.no, realmz6@gmail.com,
	ysato@users.sourceforge.jp, rkuo@codeaurora.org,
	tony.luck@intel.com, fenghua.yu@intel.com, geert@linux-m68k.org,
	james.hogan@imgtec.com, ralf@linux-mips.org, dhowells@redhat.com,
	deller@gmx.de, benh@kernel.crashing.org, paulus@samba.org,
	mpe@ellerman.id.au, schwidefsky@de.ibm.com,
	heiko.carstens@de.ibm.com, dalias@libc.org, davem@davemloft.net,
	cmetcalf@mellanox.com, chris@zankel.net, jcmvbkbc@gmail.com,
	arnd@arndb.de, noamc@ezchip.com, brueckner@linux.vnet.ibm.com,
	mingo@kernel.org, peterz@infradead.org,
	linux-arch@vger.kernel.org, Chen Gang <gang.chen.5i5j@gmail.com>
Subject: Re: [PATCH] arch: all: include: asm: bitops: Use bool instead of int for all bit test functions
Date: Sun, 28 Aug 2016 15:10:29 +0800	[thread overview]
Message-ID: <201608281559.Y8PTpF4L%fengguang.wu@intel.com> (raw)
Message-ID: <20160828071029.oT9P0GMZPvJGAF51JthJLJfxGz25UUbId1LyBAFymeA@z> (raw)
In-Reply-To: <1472362755-26776-1-git-send-email-chengang@emindsoft.com.cn>

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

Hi Chen,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.8-rc3 next-20160825]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    https://github.com/0day-ci/linux/commits/chengang-emindsoft-com-cn/arch-all-include-asm-bitops-Use-bool-instead-of-int-for-all-bit-test-functions/20160828-134633
config: arm-at91_dt_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.4.0-6) 5.4.0 20160609
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

   In file included from include/linux/bitops.h:36:0,
                    from include/linux/kernel.h:10,
                    from include/linux/list.h:8,
                    from include/linux/module.h:9,
                    from net/sunrpc/clnt.c:21:
   include/linux/sunrpc/xprt.h: In function 'xprt_set_bound':
>> arch/arm/include/asm/bitops.h:180:55: warning: value computed is not used [-Wunused-value]
     (__builtin_constant_p(nr) ? ____atomic_##name(nr, p) : _##name(nr,p))
                                                          ^
>> arch/arm/include/asm/bitops.h:191:33: note: in expansion of macro 'ATOMIC_BITOP'
    #define test_and_set_bit(nr,p)  ATOMIC_BITOP(test_and_set_bit,nr,p)
                                    ^
   include/linux/sunrpc/xprt.h:433:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(XPRT_BOUND, &xprt->state);
     ^

vim +180 arch/arm/include/asm/bitops.h

^1da177e include/asm-arm/bitops.h      Linus Torvalds 2005-04-16  174  
e7ec0293 include/asm-arm/bitops.h      Russell King   2005-07-28  175  #ifndef CONFIG_SMP
^1da177e include/asm-arm/bitops.h      Linus Torvalds 2005-04-16  176  /*
^1da177e include/asm-arm/bitops.h      Linus Torvalds 2005-04-16  177   * The __* form of bitops are non-atomic and may be reordered.
^1da177e include/asm-arm/bitops.h      Linus Torvalds 2005-04-16  178   */
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  179  #define ATOMIC_BITOP(name,nr,p)			\
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16 @180  	(__builtin_constant_p(nr) ? ____atomic_##name(nr, p) : _##name(nr,p))
e7ec0293 include/asm-arm/bitops.h      Russell King   2005-07-28  181  #else
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  182  #define ATOMIC_BITOP(name,nr,p)		_##name(nr,p)
e7ec0293 include/asm-arm/bitops.h      Russell King   2005-07-28  183  #endif
^1da177e include/asm-arm/bitops.h      Linus Torvalds 2005-04-16  184  
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  185  /*
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  186   * Native endian atomic definitions.
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  187   */
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  188  #define set_bit(nr,p)			ATOMIC_BITOP(set_bit,nr,p)
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  189  #define clear_bit(nr,p)			ATOMIC_BITOP(clear_bit,nr,p)
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  190  #define change_bit(nr,p)		ATOMIC_BITOP(change_bit,nr,p)
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16 @191  #define test_and_set_bit(nr,p)		ATOMIC_BITOP(test_and_set_bit,nr,p)
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  192  #define test_and_clear_bit(nr,p)	ATOMIC_BITOP(test_and_clear_bit,nr,p)
6323f0cc arch/arm/include/asm/bitops.h Russell King   2011-01-16  193  #define test_and_change_bit(nr,p)	ATOMIC_BITOP(test_and_change_bit,nr,p)
^1da177e include/asm-arm/bitops.h      Linus Torvalds 2005-04-16  194  

:::::: The code at line 180 was first introduced by commit
:::::: 6323f0ccedf756dfe5f46549cec69a2d6d97937b ARM: bitops: switch set/clear/change bitops to use ldrex/strex

:::::: TO: Russell King <rmk+kernel@arm.linux.org.uk>
:::::: CC: Russell King <rmk+kernel@arm.linux.org.uk>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 21569 bytes --]

  parent reply	other threads:[~2016-08-28  7:12 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-28  5:39 [PATCH] arch: all: include: asm: bitops: Use bool instead of int for all bit test functions chengang
2016-08-28  5:39 ` chengang
2016-08-28  7:02 ` kbuild test robot
2016-08-28  7:02   ` kbuild test robot
2016-08-28  7:10 ` kbuild test robot [this message]
2016-08-28  7:10   ` kbuild test robot
2016-08-28  7:10 ` kbuild test robot
2016-08-28  7:10   ` kbuild test robot
2016-08-28 14:54   ` Chen Gang
2016-08-28 14:54     ` Chen Gang
2016-08-29  8:45 ` Michal Hocko
2016-08-29  8:45   ` Michal Hocko
2016-08-29 13:03 ` Arnd Bergmann
2016-08-29 13:03   ` Arnd Bergmann
2016-08-29 13:46   ` Peter Zijlstra
2016-08-29 13:46     ` Peter Zijlstra
2016-08-29 13:54     ` Geert Uytterhoeven
2016-08-29 13:54       ` Geert Uytterhoeven
2016-08-29 22:01   ` Chen Gang
2016-08-29 22:01     ` Chen Gang

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=201608281559.Y8PTpF4L%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=benh@kernel.crashing.org \
    --cc=catalin.marinas@arm.com \
    --cc=chengang@emindsoft.com.cn \
    --cc=dalias@l \
    --cc=deller@gmx.de \
    --cc=dhowells@redhat.com \
    --cc=egtvedt@samfundet.no \
    --cc=fenghua.yu@intel.com \
    --cc=geert@linux-m68k.org \
    --cc=gi-oh.kim@profitbricks.com \
    --cc=heiko.carstens@de.ibm.com \
    --cc=hillf.zj@alibaba-inc.com \
    --cc=hskinnemoen@gmail.com \
    --cc=iamjoonsoo.kim@lge.com \
    --cc=ink@jurassic.park.msu.ru \
    --cc=james.hogan@imgtec.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mattst88@gmail.com \
    --cc=mgorman@techsingularity.net \
    --cc=mhocko@suse.com \
    --cc=minchan@kernel.org \
    --cc=mpe@ellerman.id.au \
    --cc=paulus@samba.org \
    --cc=ralf@linux-mips.org \
    --cc=realmz6@gmail.com \
    --cc=rientjes@google.com \
    --cc=rkuo@codeaurora.org \
    --cc=rth@twiddle.net \
    --cc=schwidefsky@de.ibm.com \
    --cc=tony.luck@intel.com \
    --cc=vbabka@suse.cz \
    --cc=vgupta@synopsys.com \
    --cc=will.deacon@arm.com \
    --cc=ysato@users.sourceforge.jp \
    /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