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 C91D7C433EF for ; Fri, 8 Jul 2022 13:44:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4AF2D6B0072; Fri, 8 Jul 2022 09:44:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 45D366B0073; Fri, 8 Jul 2022 09:44:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 34D328E0001; Fri, 8 Jul 2022 09:44:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 24F2E6B0072 for ; Fri, 8 Jul 2022 09:44:57 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id EE72A346EE for ; Fri, 8 Jul 2022 13:44:56 +0000 (UTC) X-FDA: 79664053392.28.4E7FDCB Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf12.hostedemail.com (Postfix) with ESMTP id 8733140051 for ; Fri, 8 Jul 2022 13:44:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657287894; x=1688823894; h=date:from:to:cc:subject:message-id:mime-version; bh=B3nb+XG04+SUZIvYc457Q5Ah2O4ndn5lcDBRkOQOEos=; b=k3echIr4zF8ijH2TR1Gvl2g7r8QKnw0kOatGvD4hr1IEFPR3oOpfYVAy pVqrBP7Eq2ifVEKWcaWhWicBIxtrqpuPKzBuK1amVfraB4dDg/03usTpL VQSCXzrznYWqhBthWN/iyoivLXR1RLWDJZSr0ds08/rKg73++adbfX1Cj Iynx3nP/2miQp3B0acoGV9vRCroIoSyHCHo/SKjE6S8JSFZ7KSg0qRFDT IiSiAlnDf+lU5Xe1cEgWU656RBYbfSLgd+LRE4PxpCqchiwdB0n5qH+8V q9ZKuNjj7DAirLf9Kha7eo1a6FqiS+3i4JFSS4cfuRAn9GnmtPUDjYhwX w==; X-IronPort-AV: E=McAfee;i="6400,9594,10401"; a="267313435" X-IronPort-AV: E=Sophos;i="5.92,255,1650956400"; d="scan'208";a="267313435" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2022 06:44:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,255,1650956400"; d="scan'208";a="661775533" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 08 Jul 2022 06:44:51 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o9oHq-000NXb-Pf; Fri, 08 Jul 2022 13:44:50 +0000 Date: Fri, 8 Jul 2022 21:44:49 +0800 From: kernel test robot To: Paul Menzel Cc: kbuild-all@lists.01.org, Linux Memory Management List , Yury Norov Subject: [linux-next:master 8187/8914] lib/bitmap.c:351:6: error: conflicting types for '__bitmap_set'; have 'void(long unsigned int *, unsigned int, unsigned int)' Message-ID: <202207082141.4CIiKu3c-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1657287895; 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=WwwyYnF8Kcqnucp8c8y4UAFat0qm+LfQD/IJxUFAg9Q=; b=dm3VjSZllJExvZUd7icH0zP4iwLnNWibwburtqwMnpf2h2iPBkE00dpBtq2e9NqvElWEyW hcgPoM7KlDL9ELZVK2P7cZxOF0xg2YADxlK70mQnRyAMtR2bCcUcE3j0y6qNz5lLM9Ql6g +erzbPP3KMjtvAJ849zaGxLnHl2mFUA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1657287895; a=rsa-sha256; cv=none; b=XsBP/PRissrEBbSSmZhKQTxICABnMUEO2W67YWMddhJW7qPREbYdwbX7LCntEK9jnOz1CT W5QljQvruZdoAKM8st5O/NWOIOqLVzw1AneOgdiXluMEtZtT8TuIC0C3njpXe+QcAzd864 vq4ZwW4xC3grF6zMjMsR73+8M5uzPSA= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=k3echIr4; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf12.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=lkp@intel.com Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=k3echIr4; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf12.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam02 X-Stat-Signature: sj96u6spou7smgokooohdriye8byk9e7 X-Rspamd-Queue-Id: 8733140051 X-Rspam-User: X-HE-Tag: 1657287894-958266 X-Bogosity: Ham, tests=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: f2528c29385819a84480cacef4886b049761e2c5 commit: aaa4ab5ec04480fd0c16c7452d28444c862b2b87 [8187/8914] lib/bitmap: Make length parameter `len` unsigned config: x86_64-randconfig-a011 (https://download.01.org/0day-ci/archive/20220708/202207082141.4CIiKu3c-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=aaa4ab5ec04480fd0c16c7452d28444c862b2b87 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout aaa4ab5ec04480fd0c16c7452d28444c862b2b87 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot Note: the linux-next/master HEAD f2528c29385819a84480cacef4886b049761e2c5 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): >> lib/bitmap.c:351:6: error: conflicting types for '__bitmap_set'; have 'void(long unsigned int *, unsigned int, unsigned int)' 351 | void __bitmap_set(unsigned long *map, unsigned int start, unsigned int len) | ^~~~~~~~~~~~ In file included from lib/bitmap.c:7: include/linux/bitmap.h:167:6: note: previous declaration of '__bitmap_set' with type 'void(long unsigned int *, unsigned int, int)' 167 | void __bitmap_set(unsigned long *map, unsigned int start, int len); | ^~~~~~~~~~~~ In file included from include/linux/linkage.h:7, from include/linux/printk.h:8, from include/asm-generic/bug.h:22, from arch/x86/include/asm/bug.h:87, from include/linux/bug.h:5, from include/linux/jump_label.h:257, from arch/x86/include/asm/string_64.h:6, from arch/x86/include/asm/string.h:5, from include/linux/string.h:20, from include/linux/bitmap.h:11, from lib/bitmap.c:7: lib/bitmap.c:370:15: error: conflicting types for '__bitmap_set'; have 'void(long unsigned int *, unsigned int, unsigned int)' 370 | EXPORT_SYMBOL(__bitmap_set); | ^~~~~~~~~~~~ include/linux/export.h:87:28: note: in definition of macro '___EXPORT_SYMBOL' 87 | extern typeof(sym) sym; \ | ^~~ include/linux/export.h:147:41: note: in expansion of macro '__EXPORT_SYMBOL' 147 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "") | ^~~~~~~~~~~~~~~ include/linux/export.h:150:41: note: in expansion of macro '_EXPORT_SYMBOL' 150 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "") | ^~~~~~~~~~~~~~ lib/bitmap.c:370:1: note: in expansion of macro 'EXPORT_SYMBOL' 370 | EXPORT_SYMBOL(__bitmap_set); | ^~~~~~~~~~~~~ In file included from lib/bitmap.c:7: include/linux/bitmap.h:167:6: note: previous declaration of '__bitmap_set' with type 'void(long unsigned int *, unsigned int, int)' 167 | void __bitmap_set(unsigned long *map, unsigned int start, int len); | ^~~~~~~~~~~~ vim +351 lib/bitmap.c 350 > 351 void __bitmap_set(unsigned long *map, unsigned int start, unsigned int len) 352 { 353 unsigned long *p = map + BIT_WORD(start); 354 const unsigned int size = start + len; 355 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); 356 unsigned long mask_to_set = BITMAP_FIRST_WORD_MASK(start); 357 358 while (len >= bits_to_set) { 359 *p |= mask_to_set; 360 len -= bits_to_set; 361 bits_to_set = BITS_PER_LONG; 362 mask_to_set = ~0UL; 363 p++; 364 } 365 if (len) { 366 mask_to_set &= BITMAP_LAST_WORD_MASK(size); 367 *p |= mask_to_set; 368 } 369 } 370 EXPORT_SYMBOL(__bitmap_set); 371 -- 0-DAY CI Kernel Test Service https://01.org/lkp