All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:mirror-chromeos-5.10-arcvm 9101/30000] drivers/cpufreq/goldfish_cpufreq_stats.c:28:9: warning: this decimal constant is unsigned only in ISO C90
@ 2024-02-14 21:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-14 21:55 UTC (permalink / raw
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common mirror-chromeos-5.10-arcvm
head:   f9690232902eb464b12d3aa2b42a878afdeb7e0a
commit: a3f6baa6885122bc9b7f8ed273fd789a5f52fac3 [9101/30000] ANDROID: goldfish_cpufreq: Add goldfish cpufreq stats driver
config: arm-randconfig-r061-20240214 (https://download.01.org/0day-ci/archive/20240215/202402150539.DK6QDAOt-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240215/202402150539.DK6QDAOt-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402150539.DK6QDAOt-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/cpufreq/goldfish_cpufreq_stats.c: In function 'time_in_state_show':
>> drivers/cpufreq/goldfish_cpufreq_stats.c:28:9: warning: this decimal constant is unsigned only in ISO C90
      28 |         len = sprintf(buf, "%lu %llu\n", 3000000000, ++fake_time);
         |         ^~~
   drivers/cpufreq/goldfish_cpufreq_stats.c: In function 'cpufreq_stats_create':
>> drivers/cpufreq/goldfish_cpufreq_stats.c:56:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      56 |         int ret;
         |             ^~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_VMASTER
   Depends on [n]: SOUND [=m] && !UML && SND [=n]
   Selected by [y]:
   - GKI_HIDDEN_SND_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for SND_JACK
   Depends on [n]: SOUND [=m] && !UML && SND [=n]
   Selected by [y]:
   - GKI_HIDDEN_SND_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for SND_JACK_INPUT_DEV
   Depends on [n]: SOUND [=m] && !UML && SND [=n] && SND_JACK [=y]
   Selected by [y]:
   - GKI_HIDDEN_SND_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for SND_PCM_ELD
   Depends on [n]: SOUND [=m] && !UML && SND [=n]
   Selected by [y]:
   - GKI_HIDDEN_SND_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for BALLOON_COMPACTION
   Depends on [n]: COMPACTION [=n] && MEMORY_BALLOON [=y]
   Selected by [y]:
   - GKI_HIDDEN_MM_CONFIGS [=y]


vim +28 drivers/cpufreq/goldfish_cpufreq_stats.c

    22	
    23	static ssize_t time_in_state_show(struct kobject *kobj,
    24			struct kobj_attribute *attr, char *buf)
    25	{
    26		ssize_t len = 0;
    27	
  > 28		len = sprintf(buf, "%lu %llu\n", 3000000000, ++fake_time);
    29		return len;
    30	}
    31	
    32	static struct kobj_attribute time_in_state =
    33		__ATTR_RO_MODE(time_in_state, 0444);
    34	
    35	static struct attribute *cpufreq_stats_attrs[] = {
    36		&time_in_state.attr,
    37		NULL
    38	};
    39	static struct attribute_group stats_attr_group = {
    40		.attrs = cpufreq_stats_attrs,
    41		.name = "stats"
    42	};
    43	
    44	static void cpufreq_stats_free(unsigned int cpu)
    45	{
    46		struct device *dev = get_cpu_device(cpu);
    47		struct kobject **kobj = &per_cpu(cpufreq_kobj, cpu);
    48	
    49		sysfs_remove_group(&dev->kobj, &stats_attr_group);
    50		kobject_put(*kobj);
    51		*kobj=NULL;
    52	}
    53	
    54	static void cpufreq_stats_create(unsigned int cpu)
    55	{
  > 56		int ret;
    57		struct device *dev = get_cpu_device(cpu);
    58		struct kobject **kobj = &per_cpu(cpufreq_kobj, cpu);
    59	
    60		*kobj = kobject_create_and_add("cpufreq", &dev->kobj);
    61		ret = sysfs_create_group(*kobj, &stats_attr_group);
    62	}
    63	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-14 21:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-14 21:55 [android-common:mirror-chromeos-5.10-arcvm 9101/30000] drivers/cpufreq/goldfish_cpufreq_stats.c:28:9: warning: this decimal constant is unsigned only in ISO C90 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.