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 7E3ABC27C7C for ; Mon, 20 Feb 2023 19:24:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F03166B0071; Mon, 20 Feb 2023 14:24:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E8C3C6B0072; Mon, 20 Feb 2023 14:24:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D05FD6B0073; Mon, 20 Feb 2023 14:24:35 -0500 (EST) 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 BB2E86B0071 for ; Mon, 20 Feb 2023 14:24:35 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 8838B80526 for ; Mon, 20 Feb 2023 19:24:35 +0000 (UTC) X-FDA: 80488646910.17.519F0C1 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by imf03.hostedemail.com (Postfix) with ESMTP id 6544620009 for ; Mon, 20 Feb 2023 19:24:32 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=UxvX1lK5; spf=pass (imf03.hostedemail.com: domain of lkp@intel.com designates 192.55.52.136 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=1676921073; 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=Ko53tsw1wlUXb38/uAZwRskHpPjrcZvcoi07lYdW+EY=; b=Pr5ECJXvBBYMgsM4SNuJ6zNRPc7GyYIx+fwMMPHjwr4wKLZKGQPqD3AIrkCFsyUcgHHol5 GHBkI92xqqxV8wgBgs4O/ixFGT6Hwxkse8ZH5P3lkKFGULRhrG0+8+IDAocyX2AoFyZ/Co wNkUEUdIR5Sp7lmoYFOTD1O7cIWFMUQ= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=UxvX1lK5; spf=pass (imf03.hostedemail.com: domain of lkp@intel.com designates 192.55.52.136 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1676921073; a=rsa-sha256; cv=none; b=KQgyo3TK1MrG5QslI9nZFCd1GBtmG5eoTr1ipbqil0oLAZ9vMTjNcrJC6Lyj8q5A2aGxcg yKAdxCAkImkMrMSdpzyKKg3ZW3I96brU7eF8YDdlSasuVDqf//c4CwkSA0y/aQIkQVlyW6 V3XAEfLO/qlf2WSYGgfn8tdf16nwVA0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676921072; x=1708457072; h=date:from:to:cc:subject:message-id:mime-version; bh=oleeUnH/9BulmgYgJSHWAV3nYeCS75hXAMw90+8oKho=; b=UxvX1lK5vFwy+iL/YLadgmC1MtmfLG4ZPm+8UVLAf51BDEc6edtj358q e9+kw3KmNFmmT9nd46QYHXcyUCr5Nsp5P1fJHoppXbdLMUrDyLBC6of5v 38q74KoSqnud/b2ZkLheD+z7TM+JZtmyultFpbW+W+PNXvv+8UhzjKoaU igTtKK8rReXGxEAPINEpJkt/WnfYyAZOy1DPbMxDkrmulHb5/6b1iB2Jz TRyogxN6edsXKwvCvYIpmtwBDGrWRJspp6OYQNRmPSqzkWBBZtJqK6EAi Ahw/2vh/9Susn8SZS22W4SARG/3pjYg20kDqKVzGfaVksKl/viGuV4Spz Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10627"; a="312104071" X-IronPort-AV: E=Sophos;i="5.97,313,1669104000"; d="scan'208";a="312104071" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2023 11:24:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10627"; a="671397006" X-IronPort-AV: E=Sophos;i="5.97,313,1669104000"; d="scan'208";a="671397006" Received: from lkp-server01.sh.intel.com (HELO 4455601a8d94) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 20 Feb 2023 11:24:27 -0800 Received: from kbuild by 4455601a8d94 with local (Exim 4.96) (envelope-from ) id 1pUBlz-000E8D-0E; Mon, 20 Feb 2023 19:24:27 +0000 Date: Tue, 21 Feb 2023 03:23:46 +0800 From: kernel test robot To: Bjorn Andersson Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Neil Armstrong Subject: [linux-next:master 12057/13681] include/asm-generic/div64.h:238:36: error: passing argument 1 of '__div64_32' from incompatible pointer type Message-ID: <202302210350.lynWcL4t-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 6544620009 X-Stat-Signature: xmmxu8e1s6e3zkyo7wcgnxwqutgp6ob4 X-HE-Tag: 1676921072-476937 X-HE-Meta: U2FsdGVkX19Ss6ectEls3WLRfztq/SyfzV+5SKJmcX9pCxjtqGgMZwNn/xpDIaQciCddMQq4PecsRmrCcxjz5YSK3baCpEsjn+lJJr+bye8HW4B7SGhber4HJCa2GFe230Fwdg304J9kiqo4uZAXPBaryicNzCeide3BvCIhZ81c/t/vx6UpFWolYbPhQ7kKblTG035OVuaGvZzkFhRfL073IBeAGC4RpKg49sbnBzLF2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V+0jdRwzb85Omgvzu88HpgRabanrDdqIcorb5rln7RalbaGMBmG3g0NpZ5GNOg33V/zROeWUDtybLHOiJgVUe1oACTtHLgcZ81jAI7xV5EwNFv3QV5g5z1SrJI9/KcIPxcseVToiRTVLrLiik0Q+7FOnffXXA= 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: d2af0fa4bfa4ec29d03b449ccd43fee39501112d commit: 29e8142b5623b5949587bcc4f591c4e6595c4aca [12057/13681] power: supply: Introduce Qualcomm PMIC GLINK power supply config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20230221/202302210350.lynWcL4t-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 12.1.0 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 # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=29e8142b5623b5949587bcc4f591c4e6595c4aca 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 29e8142b5623b5949587bcc4f591c4e6595c4aca # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202302210350.lynWcL4t-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from ./arch/arc/include/generated/asm/div64.h:1, from include/linux/math.h:6, from include/linux/math64.h:6, from include/linux/time64.h:5, from include/linux/restart_block.h:10, from include/linux/thread_info.h:14, from include/asm-generic/preempt.h:5, from ./arch/arc/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/rcupdate.h:27, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from include/linux/ratelimit.h:6, from include/linux/dev_printk.h:16, from include/linux/device.h:15, from include/linux/auxiliary_bus.h:11, from drivers/power/supply/qcom_battmgr.c:6: drivers/power/supply/qcom_battmgr.c: In function 'qcom_battmgr_sm8350_callback': include/asm-generic/div64.h:222:35: warning: comparison of distinct pointer types lacks a cast 222 | (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \ | ^~ drivers/power/supply/qcom_battmgr.c:1130:25: note: in expansion of macro 'do_div' 1130 | do_div(battmgr->status.percent, 100); | ^~~~~~ In file included from include/linux/dev_printk.h:14: include/asm-generic/div64.h:234:32: warning: right shift count >= width of type [-Wshift-count-overflow] 234 | } else if (likely(((n) >> 32) == 0)) { \ | ^~ include/linux/compiler.h:77:45: note: in definition of macro 'likely' 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ drivers/power/supply/qcom_battmgr.c:1130:25: note: in expansion of macro 'do_div' 1130 | do_div(battmgr->status.percent, 100); | ^~~~~~ >> include/asm-generic/div64.h:238:36: error: passing argument 1 of '__div64_32' from incompatible pointer type [-Werror=incompatible-pointer-types] 238 | __rem = __div64_32(&(n), __base); \ | ^~~~ | | | unsigned int * drivers/power/supply/qcom_battmgr.c:1130:25: note: in expansion of macro 'do_div' 1130 | do_div(battmgr->status.percent, 100); | ^~~~~~ include/asm-generic/div64.h:213:38: note: expected 'uint64_t *' {aka 'long long unsigned int *'} but argument is of type 'unsigned int *' 213 | extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor); | ~~~~~~~~~~^~~~~~~~ cc1: some warnings being treated as errors vim +/__div64_32 +238 include/asm-generic/div64.h ^1da177e4c3f41 Linus Torvalds 2005-04-16 215 ^1da177e4c3f41 Linus Torvalds 2005-04-16 216 /* The unnecessary pointer compare is there ^1da177e4c3f41 Linus Torvalds 2005-04-16 217 * to check for type safety (n must be 64bit) ^1da177e4c3f41 Linus Torvalds 2005-04-16 218 */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 219 # define do_div(n,base) ({ \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 220 uint32_t __base = (base); \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 221 uint32_t __rem; \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 222 (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \ 911918aa7ef6f8 Nicolas Pitre 2015-11-02 223 if (__builtin_constant_p(__base) && \ 911918aa7ef6f8 Nicolas Pitre 2015-11-02 224 is_power_of_2(__base)) { \ 911918aa7ef6f8 Nicolas Pitre 2015-11-02 225 __rem = (n) & (__base - 1); \ 911918aa7ef6f8 Nicolas Pitre 2015-11-02 226 (n) >>= ilog2(__base); \ c747ce4706190e Geert Uytterhoeven 2021-08-11 227 } else if (__builtin_constant_p(__base) && \ 461a5e51060c93 Nicolas Pitre 2015-10-30 228 __base != 0) { \ 461a5e51060c93 Nicolas Pitre 2015-10-30 229 uint32_t __res_lo, __n_lo = (n); \ 461a5e51060c93 Nicolas Pitre 2015-10-30 230 (n) = __div64_const32(n, __base); \ 461a5e51060c93 Nicolas Pitre 2015-10-30 231 /* the remainder can be computed with 32-bit regs */ \ 461a5e51060c93 Nicolas Pitre 2015-10-30 232 __res_lo = (n); \ 461a5e51060c93 Nicolas Pitre 2015-10-30 233 __rem = __n_lo - __res_lo * __base; \ 911918aa7ef6f8 Nicolas Pitre 2015-11-02 234 } else if (likely(((n) >> 32) == 0)) { \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 235 __rem = (uint32_t)(n) % __base; \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 236 (n) = (uint32_t)(n) / __base; \ c747ce4706190e Geert Uytterhoeven 2021-08-11 237 } else { \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 @238 __rem = __div64_32(&(n), __base); \ c747ce4706190e Geert Uytterhoeven 2021-08-11 239 } \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 240 __rem; \ ^1da177e4c3f41 Linus Torvalds 2005-04-16 241 }) ^1da177e4c3f41 Linus Torvalds 2005-04-16 242 :::::: The code at line 238 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests