Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757606AbbKSDYd (ORCPT ); Wed, 18 Nov 2015 22:24:33 -0500 Received: from mail-ig0-f170.google.com ([209.85.213.170]:33896 "EHLO mail-ig0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751600AbbKSDYb (ORCPT ); Wed, 18 Nov 2015 22:24:31 -0500 Subject: Re: [PATCH 3/3] linux/bitmap: Replace find_fisrt_{zero_}bit with the new lightweight api To: kbuild test robot References: <201511191057.JOoDSHXo%fengguang.wu@intel.com> Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Andrew Morton , Rasmus Villemoes , Denys Vlasenko , Kyungmin Park , Michal Nazarewicz , Yury Norov , Tejun Heo , Martin Kepplinger , George Spelvin , Ingo Molnar , Arnd Bergmann From: hejianet Message-ID: <564D40E4.5070900@gmail.com> Date: Thu, 19 Nov 2015 11:24:20 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <201511191057.JOoDSHXo%fengguang.wu@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3734 Lines: 80 Thanks, I only compiled and tested in x86_64, will check what's wrong in m68k B.R. Justin 在 11/19/15 10:53 AM, kbuild test robot 写道: > Hi Jia, > > [auto build test ERROR on: v4.4-rc1] > [also build test ERROR on: next-20151118] > > url: https://github.com/0day-ci/linux/commits/Jia-He/Improve-bitmap_empty-and-bitmap_full/20151119-103554 > config: m68k-allyesconfig (attached as .config) > 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=m68k > > All errors (new ones prefixed by >>): > > kernel/time/Kconfig:155:warning: range is invalid > warning: (USB_OTG_FSM && FSL_USB2_OTG && USB_MV_OTG) selects USB_OTG which has unmet direct dependencies (USB_SUPPORT && USB && PM) > warning: (SINGLE_MEMORY_CHUNK) selects NEED_MULTIPLE_NODES which has unmet direct dependencies (DISCONTIGMEM || NUMA) > warning: (PREEMPT && DEBUG_ATOMIC_SLEEP) selects PREEMPT_COUNT which has unmet direct dependencies (COLDFIRE) > warning: (USB_OTG_FSM && FSL_USB2_OTG && USB_MV_OTG) selects USB_OTG which has unmet direct dependencies (USB_SUPPORT && USB && PM) > warning: (SINGLE_MEMORY_CHUNK) selects NEED_MULTIPLE_NODES which has unmet direct dependencies (DISCONTIGMEM || NUMA) > warning: (PREEMPT && DEBUG_ATOMIC_SLEEP) selects PREEMPT_COUNT which has unmet direct dependencies (COLDFIRE) > In file included from include/linux/cpumask.h:11:0, > from include/linux/rcupdate.h:40, > from include/linux/rbtree.h:34, > from include/linux/sched.h:22, > from arch/m68k/kernel/asm-offsets.c:14: > include/linux/bitmap.h: In function 'bitmap_empty': >>> include/linux/bitmap.h:284:2: error: implicit declaration of function 'all_bit_is_zero' [-Werror=implicit-function-declaration] > return all_bit_is_zero(src, nbits); > ^ > include/linux/bitmap.h: In function 'bitmap_full': >>> include/linux/bitmap.h:292:2: error: implicit declaration of function 'all_bit_is_one' [-Werror=implicit-function-declaration] > return all_bit_is_one(src, nbits); > ^ > cc1: some warnings being treated as errors > make[2]: *** [arch/m68k/kernel/asm-offsets.s] Error 1 > make[2]: Target '__build' not remade because of errors. > make[1]: *** [prepare0] Error 2 > make[1]: Target 'prepare' not remade because of errors. > make: *** [sub-make] Error 2 > > vim +/all_bit_is_zero +284 include/linux/bitmap.h > > 278 > 279 static inline int bitmap_empty(const unsigned long *src, unsigned nbits) > 280 { > 281 if (small_const_nbits(nbits)) > 282 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); > 283 > > 284 return all_bit_is_zero(src, nbits); > 285 } > 286 > 287 static inline int bitmap_full(const unsigned long *src, unsigned int nbits) > 288 { > 289 if (small_const_nbits(nbits)) > 290 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); > 291 > > 292 return all_bit_is_one(src, nbits); > 293 } > 294 > 295 static __always_inline int bitmap_weight(const unsigned long *src, unsigned int nbits) > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/