Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1475806

Re: [PATCH v2] arch: all: include: asm: bitops: Use bool instead of int for all bit test functions

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2] arch: all: include: asm: bitops: Use bool instead of int for all bit test functions
Date Sun, 04 Sep 2016 02:20:01 +0200
Message-ID <sdtkd-3K2-3@gated-at.bofh.it> (permalink)
References <sb9SG-3jM-15@gated-at.bofh.it>
X-Original-To chengang@emindsoft.com.cn
X-Extloop1 1
X-Ironport-Av E=Sophos;i="5.30,277,1470726000"; d="gz'50?scan'50,208,50";a="1045374976"
MIME-Version 1.0
Content-Type multipart/mixed; boundary="7JfCtLOvnd9MIVvH"
Content-Disposition inline
User-Agent Mutt/1.5.23 (2014-03-12)
X-Sa-Exim-Connect-IP <locally generated>
X-Sa-Exim-Mail-From fengguang.wu@intel.com
X-Sa-Exim-Scanned No (on bee); SAEximRunCond expanded to false
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 310
Organization linux.* mail to news gateway
X-Original-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>
X-Original-Date Sun, 4 Sep 2016 08:07:30 +0800
X-Original-Message-ID <201609040800.5IcW0UrX%fengguang.wu@intel.com>
X-Original-References <1472396129-28665-1-git-send-email-chengang@emindsoft.com.cn>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1475806

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Chen,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.8-rc4 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-230301
config: powerpc-makalu_defconfig (attached as .config)
compiler: powerpc-linux-gnu-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=powerpc 

All errors (new ones prefixed by >>):

   In file included from include/linux/bitops.h:36:0,
                    from include/linux/radix-tree.h:24,
                    from kernel/memremap.c:13:
>> arch/powerpc/include/asm/bitops.h:103:19: error: unknown type name 'bool'
    static __inline__ bool fn(    \
                      ^
   arch/powerpc/include/asm/bitops.h:123:1: note: in expansion of macro 'DEFINE_TESTOP'
    DEFINE_TESTOP(test_and_set_bits, or, PPC_ATOMIC_ENTRY_BARRIER,
    ^
>> arch/powerpc/include/asm/bitops.h:103:19: error: unknown type name 'bool'
    static __inline__ bool fn(    \
                      ^
   arch/powerpc/include/asm/bitops.h:125:1: note: in expansion of macro 'DEFINE_TESTOP'
    DEFINE_TESTOP(test_and_set_bits_lock, or, "",
    ^
>> arch/powerpc/include/asm/bitops.h:103:19: error: unknown type name 'bool'
    static __inline__ bool fn(    \
                      ^
   arch/powerpc/include/asm/bitops.h:127:1: note: in expansion of macro 'DEFINE_TESTOP'
    DEFINE_TESTOP(test_and_clear_bits, andc, PPC_ATOMIC_ENTRY_BARRIER,
    ^
>> arch/powerpc/include/asm/bitops.h:103:19: error: unknown type name 'bool'
    static __inline__ bool fn(    \
                      ^
   arch/powerpc/include/asm/bitops.h:129:1: note: in expansion of macro 'DEFINE_TESTOP'
    DEFINE_TESTOP(test_and_change_bits, xor, PPC_ATOMIC_ENTRY_BARRIER,
    ^
   arch/powerpc/include/asm/bitops.h:132:19: error: unknown type name 'bool'
    static __inline__ bool test_and_set_bit(unsigned long nr,
                      ^
   arch/powerpc/include/asm/bitops.h:138:19: error: unknown type name 'bool'
    static __inline__ bool test_and_set_bit_lock(unsigned long nr,
                      ^
   arch/powerpc/include/asm/bitops.h:145:19: error: unknown type name 'bool'
    static __inline__ bool test_and_clear_bit(unsigned long nr,
                      ^
   arch/powerpc/include/asm/bitops.h:151:19: error: unknown type name 'bool'
    static __inline__ bool test_and_change_bit(unsigned long nr,
                      ^
   In file included from arch/powerpc/include/asm/bitops.h:157:0,
                    from include/linux/bitops.h:36,
                    from include/linux/radix-tree.h:24,
                    from kernel/memremap.c:13:
>> include/asm-generic/bitops/non-atomic.h:57:15: error: unknown type name 'bool'
    static inline bool __test_and_set_bit(int nr, volatile unsigned long *addr)
                  ^
   include/asm-generic/bitops/non-atomic.h:76:15: error: unknown type name 'bool'
    static inline bool __test_and_clear_bit(int nr, volatile unsigned long *addr)
                  ^
   include/asm-generic/bitops/non-atomic.h:87:15: error: unknown type name 'bool'
    static inline bool __test_and_change_bit(int nr,
                  ^
   include/asm-generic/bitops/non-atomic.h:103:15: error: unknown type name 'bool'
    static inline bool test_bit(int nr, const volatile unsigned long *addr)
                  ^

vim +/bool +103 arch/powerpc/include/asm/bitops.h

    97		change_bits(BIT_MASK(nr), addr + BIT_WORD(nr));
    98	}
    99	
   100	/* Like DEFINE_BITOP(), with changes to the arguments to 'op' and the output
   101	 * operands. */
   102	#define DEFINE_TESTOP(fn, op, prefix, postfix, eh)	\
 > 103	static __inline__ bool fn(				\
   104			unsigned long mask,			\
   105			volatile unsigned long *_p)		\
   106	{							\

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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH v2] arch: all: include: asm: bitops: Use bool instead of  int for all bit test functions kbuild test robot <lkp@intel.com> - 2016-09-04 02:20 +0200

csiph-web