From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Authentication-Results: gnuweeb.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=lTvmz51Y; dkim-atps=neutral Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=lkp@intel.com; receiver= Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gnuweeb.org (Postfix) with ESMTPS id 53E24245015 for ; Thu, 30 Mar 2023 13:39:38 +0700 (WIB) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680158380; x=1711694380; h=date:from:to:cc:subject:message-id:mime-version; bh=+XX2wa5up+QX/32nkcHTXd3dU6jy3weLPBe2nnkYJS8=; b=lTvmz51Y+XJkzNY1bOvW4qk0+7Z4ezdFKgyukzGcsQcgAKczHFqevr7I VFlsNflU0hoi50a77O4SR7pxmBefvu9ljtegMrkqUlIVlAC+jEgZdRLHd 42QdxLwef7IJGjyLFAijZGthaEbBuawf5/m8svNHbqRAErFYZPVyIeRjk fwdbFozteEzTADRuaHPkQic+dvEgqTEA/LgkHwbkjjjVd4+ap/+sy4phq brj9NLQsKuDGHtVHERYs8oj7PkxCjiP3W4yQU3XEB+m3wtU2HY7o4RzFO PhZSXO1Nq/CoFtsXJIpKHSOMYcjYgi6jr380ZvFAePOzdLHeq0vdEsTue Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="343533686" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208";a="343533686" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2023 23:39:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="828184239" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208";a="828184239" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 29 Mar 2023 23:39:35 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1phlwc-000KSi-2w; Thu, 30 Mar 2023 06:39:34 +0000 Date: Thu, 30 Mar 2023 14:38:44 +0800 From: kernel test robot To: Ammar Faizi , GNU/Weeb Mailing List Cc: oe-kbuild-all@lists.linux.dev Subject: [ammarfaizi2-block:google/android/kernel/common/android-gs-raviole-5.10-s-v2-beta-3 1458/9999] drivers/firmware/arm_scmi/sensors.c:614:28: sparse: sparse: incorrect type in argument 1 (different base types) Message-ID: <202303301414.1lEL2Mon-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-gs-raviole-5.10-s-v2-beta-3 head: 51e133b6e4eb00703d3b3fe71cc2447ebd9fb4a8 commit: ac18ef8d266d19126d544393120ef3da7f51c684 [1458/9999] UPSTREAM: firmware: arm_scmi: Add SCMI v3.0 sensor configuration support config: arm-randconfig-s033-20230326 (https://download.01.org/0day-ci/archive/20230330/202303301414.1lEL2Mon-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/ammarfaizi2/linux-block/commit/ac18ef8d266d19126d544393120ef3da7f51c684 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-gs-raviole-5.10-s-v2-beta-3 git checkout ac18ef8d266d19126d544393120ef3da7f51c684 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash drivers/firmware/arm_scmi/ fs/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303301414.1lEL2Mon-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/firmware/arm_scmi/sensors.c:614:28: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@ drivers/firmware/arm_scmi/sensors.c:614:28: sparse: expected unsigned int [usertype] val drivers/firmware/arm_scmi/sensors.c:614:28: sparse: got restricted __le32 [usertype] vim +614 drivers/firmware/arm_scmi/sensors.c 601 602 static int scmi_sensor_config_get(const struct scmi_handle *handle, 603 u32 sensor_id, u32 *sensor_config) 604 { 605 int ret; 606 struct scmi_xfer *t; 607 608 ret = scmi_xfer_get_init(handle, SENSOR_CONFIG_GET, 609 SCMI_PROTOCOL_SENSOR, sizeof(__le32), 610 sizeof(__le32), &t); 611 if (ret) 612 return ret; 613 > 614 put_unaligned_le32(cpu_to_le32(sensor_id), t->tx.buf); 615 ret = scmi_do_xfer(handle, t); 616 if (!ret) { 617 struct sensors_info *si = handle->sensor_priv; 618 struct scmi_sensor_info *s = si->sensors + sensor_id; 619 620 *sensor_config = get_unaligned_le64(t->rx.buf); 621 s->sensor_config = *sensor_config; 622 } 623 624 scmi_xfer_put(handle, t); 625 return ret; 626 } 627 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests