* [jsarha:topic/cros-sof-v4.14-rebase 199/9999] drivers/idle/intel_idle.c:1000:72: sparse: sparse: incompatible types in conditional expression (different base types):
@ 2022-07-24 4:38 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-24 4:38 UTC (permalink / raw)
To: Rajneesh Bhardwaj; +Cc: kbuild-all, linux-kernel, Furquan Shaikh
tree: https://github.com/jsarha/linux topic/cros-sof-v4.14-rebase
head: 18a233f3f676a98dde00947535d99ab1a54da340
commit: 984b012fc9b1fc849276848135307edabd0d5a58 [199/9999] CHROMIUM: intel_idle: dump debug info when S0ix fails
config: i386-randconfig-s003 (https://download.01.org/0day-ci/archive/20220724/202207241232.utAadQDp-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://github.com/jsarha/linux/commit/984b012fc9b1fc849276848135307edabd0d5a58
git remote add jsarha https://github.com/jsarha/linux
git fetch --no-tags jsarha topic/cros-sof-v4.14-rebase
git checkout 984b012fc9b1fc849276848135307edabd0d5a58
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/idle/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/idle/intel_idle.c:1000:72: sparse: sparse: incompatible types in conditional expression (different base types):
>> drivers/idle/intel_idle.c:1000:72: sparse: int
>> drivers/idle/intel_idle.c:1000:72: sparse: void
vim +1000 drivers/idle/intel_idle.c
988
989 static int check_slp_s0(u64 slp_s0_saved_count)
990 {
991 u64 slp_s0_new_count;
992
993 if (get_slpS0_count(&slp_s0_new_count)) {
994 pr_warn("After s2idle attempt: Unable to read SLP S0 residency counter\n");
995 return -EIO;
996 }
997
998 if (slp_s0_saved_count == slp_s0_new_count) {
999 WARN(1, "CPU did not enter SLP S0 for suspend-to-idle.\n");
> 1000 boot_cpu_data.x86_model == INTEL_FAM6_ATOM_GEMINI_LAKE ?
1001 telem_soc_states_display() : pmc_core_ppfear_display();
1002 return -EIO;
1003 }
1004
1005 return 0;
1006 }
1007
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-24 4:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-24 4:38 [jsarha:topic/cros-sof-v4.14-rebase 199/9999] drivers/idle/intel_idle.c:1000:72: sparse: sparse: incompatible types in conditional expression (different base types): kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox