From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37C1CCDB465 for ; Mon, 16 Oct 2023 19:44:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 62E3E8E0011; Mon, 16 Oct 2023 15:44:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5DDB38D00BA; Mon, 16 Oct 2023 15:44:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4A6888E0011; Mon, 16 Oct 2023 15:44:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 3B7B48D00BA for ; Mon, 16 Oct 2023 15:44:20 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 0A63A160A68 for ; Mon, 16 Oct 2023 19:44:20 +0000 (UTC) X-FDA: 81352351080.13.01E3195 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by imf01.hostedemail.com (Postfix) with ESMTP id 0F33440014 for ; Mon, 16 Oct 2023 19:44:16 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=lKUShzE7; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697485458; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=NBX8pZbvLPyKPz932l3SrJmWYmmRch2Il3ry+MIz8E8=; b=o4UvfddLCSk58ww6GUlfOTGXe5oWBSxTu+pTmV5ZC/5ov1pEcF3IsgE2d5lQNjivxOOvZY 7oGlBRP+E1G4JG2ibTvsDg8AXtAxNZGhUy0sC76rhDJKYpmPHtiYD4aTV+71SFjAZ7XexW 9E65U2GLurDB6c+0vg5s7QWA72WkYqY= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697485458; a=rsa-sha256; cv=none; b=FO35b8o+slkRozk+Q8oentbSXXyOKZT05W+qlNCUDXoOau4G2CzGot+yfL5X3SwyQyPWzd QYKM2gqZAo8oVEiRu18utVozSTBrYf4xTr5OKZdGyaOjtkCoRJ5Rf0LTQHjJVsp7J6Rwcn 4werDYgj5Oyt5MpFK1hUSOxqO0EmIlM= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=lKUShzE7; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697485457; x=1729021457; h=date:from:to:cc:subject:message-id:mime-version; bh=0kGuhVPJj+hRRdhM3+/1uD61+lqPjHungSyIhtGmjYg=; b=lKUShzE7FUA0ARjlei0Qm8nTYJiS3yMTN4NQunNsH0osq6VlKr2wOBDM IY2B7u7Yi1ucb/eBIjYa8rbuYu/wz649mlsknoXW5+ijTWYaF1UF9z4s4 sYu5eYvCtajxgSnplktwBzQ1QH+Oi8TcGH6v9H4GB0I4qhTYW9vNpJtFC uJVM3zd/bLMAZo8yXzM08ky55ohnyddCa0lWCE/kmPydTzYSKI6dNY4Rm Ix3WblownZ88jCD8/A5RhMTKZpxunSuJDxhk6W8/bcrJbs5TyRvCACE3m njhuwCiedzoNOcCGvCyhJIJDC6cIUwd2NwNwwA2E4luLOfEUgFahcq6Kk Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="370698427" X-IronPort-AV: E=Sophos;i="6.03,230,1694761200"; d="scan'208";a="370698427" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 12:44:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="1087207544" X-IronPort-AV: E=Sophos;i="6.03,230,1694761200"; d="scan'208";a="1087207544" Received: from lkp-server02.sh.intel.com (HELO f64821696465) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 16 Oct 2023 12:44:12 -0700 Received: from kbuild by f64821696465 with local (Exim 4.96) (envelope-from ) id 1qsTVb-0008cz-2T; Mon, 16 Oct 2023 19:44:11 +0000 Date: Tue, 17 Oct 2023 03:44:05 +0800 From: kernel test robot To: Yury Norov Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 12146/12451] include/linux/bitmap.h:527:25: error: 'EBUSY' undeclared Message-ID: <202310170340.tkkfdZYn-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 0F33440014 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: gahr5tqko9agng5754q1jsqjkdyjcbre X-HE-Tag: 1697485456-648164 X-HE-Meta: U2FsdGVkX19x6377dVMcSYpblBRDpU2AEYVXuX0tzkQlY85defF8bIyvsVAEgHc8Fz1LclIxFwBkyq5v3Yj2eVGPYBhhwXjMKZLFYS7dlWIIKjfnPtONx5J5j3BWncXKill4Fkq2tlWJ3jem8gpaEZNve3aDbAvOrf5hMvX0YwV9JKi+/LRRmMvwBiB+DGJhWxWAkaIGoFi4FSWiYuH6ahJhBDz0GXl5lUp2G1eC3D2bAdUL79e77eOq67v/U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ests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 4d0515b235dec789578d135a5db586b25c5870cb commit: b9c957f5544422461e17b1010fa9114024632d7a [12146/12451] bitmap: move bitmap_*_region() functions to bitmap.h config: arm-randconfig-s032-20220424 (https://download.01.org/0day-ci/archive/20231017/202310170340.tkkfdZYn-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231017/202310170340.tkkfdZYn-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202310170340.tkkfdZYn-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/cpumask.h:12, from include/linux/mm_types_task.h:14, from include/linux/mm_types.h:5, from include/linux/buildid.h:5, from include/linux/module.h:14, from arch/arm/boot/compressed/../../../../lib/lz4/lz4_decompress.c:39, from arch/arm/boot/compressed/../../../../lib/decompress_unlz4.c:10, from arch/arm/boot/compressed/decompress.c:60: include/linux/bitmap.h: In function 'bitmap_allocate_region': >> include/linux/bitmap.h:527:25: error: 'EBUSY' undeclared (first use in this function) 527 | return -EBUSY; | ^~~~~ include/linux/bitmap.h:527:25: note: each undeclared identifier is reported only once for each function it appears in include/linux/bitmap.h: In function 'bitmap_find_free_region': >> include/linux/bitmap.h:554:17: error: 'ENOMEM' undeclared (first use in this function) 554 | return -ENOMEM; | ^~~~~~ vim +/EBUSY +527 include/linux/bitmap.h 510 511 /** 512 * bitmap_allocate_region - allocate bitmap region 513 * @bitmap: array of unsigned longs corresponding to the bitmap 514 * @pos: beginning of bit region to allocate 515 * @order: region size (log base 2 of number of bits) to allocate 516 * 517 * Allocate (set bits in) a specified region of a bitmap. 518 * 519 * Returns: 0 on success, or %-EBUSY if specified region wasn't 520 * free (not all bits were zero). 521 */ 522 static inline int bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order) 523 { 524 unsigned int len = BIT(order); 525 526 if (find_next_bit(bitmap, pos + len, pos) < pos + len) > 527 return -EBUSY; 528 bitmap_set(bitmap, pos, len); 529 return 0; 530 } 531 532 /** 533 * bitmap_find_free_region - find a contiguous aligned mem region 534 * @bitmap: array of unsigned longs corresponding to the bitmap 535 * @bits: number of bits in the bitmap 536 * @order: region size (log base 2 of number of bits) to find 537 * 538 * Find a region of free (zero) bits in a @bitmap of @bits bits and 539 * allocate them (set them to one). Only consider regions of length 540 * a power (@order) of two, aligned to that power of two, which 541 * makes the search algorithm much faster. 542 * 543 * Returns: the bit offset in bitmap of the allocated region, 544 * or -errno on failure. 545 */ 546 static inline int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order) 547 { 548 unsigned int pos, end; /* scans bitmap by regions of size order */ 549 550 for (pos = 0; (end = pos + BIT(order)) <= bits; pos = end) { 551 if (!bitmap_allocate_region(bitmap, pos, order)) 552 return pos; 553 } > 554 return -ENOMEM; 555 } 556 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki