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=-6.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gnuweeb.org (Postfix) with ESMTPS id E0B208060C for ; Sun, 21 Aug 2022 04:28:41 +0000 (UTC) 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=gMKMCGby; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661056121; x=1692592121; h=date:from:to:cc:subject:message-id:mime-version; bh=gV22sSTEnIH7Zhwu5z/J8UqUpmipWDn0fuAD6n7VLQU=; b=gMKMCGbyAp80GOU7ZR/11x/VmT1e0VdC1bHHG3aDUB4WB2q2bljtQYQw sI02293/2ON1KVKdmLkoI3i6XyoqzfVV3Zlf1nXfmy550QR0CqrhK3qWJ qc4tEeQFuyGJKY303FR9eDMjK0cPVaLA9wAvyDCDyX5bOICs0qwwAd5Si oBliDDgKMRANhW6Kw5uAbsq/TnlyNwFXX80AbFJxCYkovuB8nIYA+b0m8 mBN+5nFHYI43qhPeiD3gBk9dj7hDmKVQELV5MY8xwaDUj6ZhrgUpGmyu8 0nOzoin6Z9CyoDrRt/XunwjxLI4Shf2Knx7ht73o8W8v0CQvo5sY6Y1nx Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10445"; a="319251516" X-IronPort-AV: E=Sophos;i="5.93,251,1654585200"; d="scan'208";a="319251516" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2022 21:28:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,251,1654585200"; d="scan'208";a="637745949" Received: from lkp-server01.sh.intel.com (HELO 44b6dac04a33) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 20 Aug 2022 21:28:31 -0700 Received: from kbuild by 44b6dac04a33 with local (Exim 4.96) (envelope-from ) id 1oPcZb-0003eB-0L; Sun, 21 Aug 2022 04:28:31 +0000 Date: Sun, 21 Aug 2022 12:27:42 +0800 From: kernel test robot To: Ammar Faizi , GNU/Weeb Mailing List Cc: kbuild-all@lists.01.org Subject: [ammarfaizi2-block:google/android/kernel/common/android-4.9-q-release 2199/9999] drivers/cpufreq/cpufreq_times.c:117:35: sparse: sparse: implicit cast to nocast type Message-ID: <202208211202.P3JX0z7y-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-4.9-q-release head: 8c62b2bd034cfb52860b9e3f333b1ef587052af2 commit: 6e7b83d80b5f81f41f3df9b3660acdf88532c879 [2199/9999] ANDROID: cpufreq: track per-task time in state config: i386-randconfig-s003 (https://download.01.org/0day-ci/archive/20220821/202208211202.P3JX0z7y-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/ammarfaizi2/linux-block/commit/6e7b83d80b5f81f41f3df9b3660acdf88532c879 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-4.9-q-release git checkout 6e7b83d80b5f81f41f3df9b3660acdf88532c879 # 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/cpufreq/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/cpufreq/cpufreq_times.c:117:35: sparse: sparse: implicit cast to nocast type drivers/cpufreq/cpufreq_times.c:120:59: sparse: sparse: implicit cast to nocast type vim +117 drivers/cpufreq/cpufreq_times.c 96 97 int proc_time_in_state_show(struct seq_file *m, struct pid_namespace *ns, 98 struct pid *pid, struct task_struct *p) 99 { 100 unsigned int cpu, i; 101 cputime_t cputime; 102 unsigned long flags; 103 struct cpu_freqs *freqs; 104 struct cpu_freqs *last_freqs = NULL; 105 106 spin_lock_irqsave(&task_time_in_state_lock, flags); 107 for_each_possible_cpu(cpu) { 108 freqs = all_freqs[cpu]; 109 if (!freqs || freqs == last_freqs) 110 continue; 111 last_freqs = freqs; 112 113 seq_printf(m, "cpu%u\n", cpu); 114 for (i = 0; i < freqs->max_state; i++) { 115 if (freqs->freq_table[i] == CPUFREQ_ENTRY_INVALID) 116 continue; > 117 cputime = 0; 118 if (freqs->offset + i < p->max_state && 119 p->time_in_state) 120 cputime = p->time_in_state[freqs->offset + i]; 121 seq_printf(m, "%u %lu\n", freqs->freq_table[i], 122 (unsigned long)cputime_to_clock_t(cputime)); 123 } 124 } 125 spin_unlock_irqrestore(&task_time_in_state_lock, flags); 126 return 0; 127 } 128 -- 0-DAY CI Kernel Test Service https://01.org/lkp