From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA9DD20E0 for ; Wed, 4 May 2022 02:03:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651629815; x=1683165815; h=date:from:to:cc:subject:message-id:mime-version; bh=SaDiayL72AA9TGo8je0ypoIe2eI0QEYm3nLs7LcNJss=; b=UTJdB494wPqEEHuoyAa5y1MFy1vYgotkRYhvJWBdmowIaArj2uavyDJ0 3S2H/tNb5fDXdt9MTG9aDqIMHd/CjbbjCnatZbxSooAwTKMNLh6xdVdpf gLPQTwWhvTeGLkAwGbzDEMUlRQ/inN2aUhKfaXHj6Ing8B25cCGWSl7og 0Kw55hTuamkiIVSF5xVmSbrfPd6ZqX0TQbSoj9IClV1ZSrQHa6CYqFJ5z HBRd5nR1jmDTXEQfMZEbPNlPAAG1SmN/iI2x5SjrAv2gSQJ7w26vFniPX aIhhf9uD0wuXDg2FzhRclf3WuqWV27wppKAGnQY9OI2wccVXqd26YwQZZ g==; X-IronPort-AV: E=McAfee;i="6400,9594,10336"; a="267519846" X-IronPort-AV: E=Sophos;i="5.91,196,1647327600"; d="scan'208";a="267519846" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2022 19:03:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,196,1647327600"; d="scan'208";a="692969961" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 03 May 2022 19:03:34 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nm4MX-000Axn-Fr; Wed, 04 May 2022 02:03:33 +0000 Date: Wed, 4 May 2022 10:02:50 +0800 From: kernel test robot To: Yury Norov Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [norov:gup 45/48] lib/bitmap.c:1570:17: error: initializing 'unsigned long *' with an expression of type 'const unsigned long *' discards qualifiers Message-ID: <202205041022.rYfACmSF-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Yury, FYI, the error/warning still remains. tree: https://github.com/norov/linux gup head: c96226d23c745b114dc041e0d8d0c272b280c71a commit: f1cbd19c47bf73d532ff30571601c7ede57d5f82 [45/48] lib: add bitmap_{from,to}_arr64 config: mips-randconfig-r015-20220501 (https://download.01.org/0day-ci/archive/20220504/202205041022.rYfACmSF-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 363b3a645a1e30011cc8da624f13dac5fd915628) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://github.com/norov/linux/commit/f1cbd19c47bf73d532ff30571601c7ede57d5f82 git remote add norov https://github.com/norov/linux git fetch --no-tags norov gup git checkout f1cbd19c47bf73d532ff30571601c7ede57d5f82 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> lib/bitmap.c:1570:17: error: initializing 'unsigned long *' with an expression of type 'const unsigned long *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] unsigned long *end = bitmap + BITS_TO_LONGS(nbits); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lib/bitmap.c:1575:22: warning: shift count >= width of type [-Wshift-count-overflow] *buf |= *bitmap++ << 32; ^ ~~ 1 warning and 1 error generated. vim +1570 lib/bitmap.c 1561 1562 /** 1563 * bitmap_to_arr64 - copy the contents of bitmap to a u64 array of bits 1564 * @buf: array of u64 (in host byte order), the dest bitmap 1565 * @bitmap: array of unsigned longs, the source bitmap 1566 * @nbits: number of bits in @bitmap 1567 */ 1568 void bitmap_to_arr64(u64 *buf, const unsigned long *bitmap, unsigned int nbits) 1569 { > 1570 unsigned long *end = bitmap + BITS_TO_LONGS(nbits); -- 0-DAY CI Kernel Test Service https://01.org/lkp