All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android13-5.10 1/1] include/trace/hooks/thermal.h:23:18: warning: 'struct cpufreq_policy' declared inside parameter list will not be visible outside of this definition or declaration
@ 2021-12-02  0:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-02  0:35 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3187 bytes --]

tree:   https://android.googlesource.com/kernel/common android13-5.10
head:   fc827b344f76709dc7f242c7db32e1828f510fdd
commit: fc827b344f76709dc7f242c7db32e1828f510fdd [1/1] ANDROID: thermal: Add vendor hooks for thermal
config: i386-randconfig-m021-20211129 (https://download.01.org/0day-ci/archive/20211202/202112020832.vu7v4PGL-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        git remote add android-common https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android13-5.10
        git checkout fc827b344f76709dc7f242c7db32e1828f510fdd
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/thermal/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/trace/hooks/thermal.h:10,
                    from drivers/thermal/thermal_core.c:27:
>> include/trace/hooks/thermal.h:23:18: warning: 'struct cpufreq_policy' declared inside parameter list will not be visible outside of this definition or declaration
      23 |  TP_PROTO(struct cpufreq_policy *policy, unsigned long *request_freq),
         |                  ^~~~~~~~~~~~~~
   include/linux/tracepoint.h:577:34: note: in definition of macro 'DECLARE_EVENT_NOP'
     577 |  static inline void trace_##name(proto)    \
         |                                  ^~~~~
   include/trace/hooks/thermal.h:23:2: note: in expansion of macro 'TP_PROTO'
      23 |  TP_PROTO(struct cpufreq_policy *policy, unsigned long *request_freq),
         |  ^~~~~~~~
   include/trace/hooks/thermal.h:27:18: warning: 'struct cpufreq_policy' declared inside parameter list will not be visible outside of this definition or declaration
      27 |  TP_PROTO(struct cpufreq_policy *policy, unsigned int *target_freq),
         |                  ^~~~~~~~~~~~~~
   include/linux/tracepoint.h:577:34: note: in definition of macro 'DECLARE_EVENT_NOP'
     577 |  static inline void trace_##name(proto)    \
         |                                  ^~~~~
   include/trace/hooks/thermal.h:27:2: note: in expansion of macro 'TP_PROTO'
      27 |  TP_PROTO(struct cpufreq_policy *policy, unsigned int *target_freq),
         |  ^~~~~~~~


vim +23 include/trace/hooks/thermal.h

    12	
    13	DECLARE_HOOK(android_vh_enable_thermal_genl_check,
    14		TP_PROTO(int event, int tz_id, int *enable_thermal_genl),
    15		TP_ARGS(event, tz_id, enable_thermal_genl));
    16	
    17	struct thermal_zone_device;
    18	DECLARE_HOOK(android_vh_thermal_pm_notify_suspend,
    19		     TP_PROTO(struct thermal_zone_device *tz, int *irq_wakeable),
    20		     TP_ARGS(tz, irq_wakeable));
    21	
    22	DECLARE_HOOK(android_vh_modify_thermal_request_freq,
  > 23		TP_PROTO(struct cpufreq_policy *policy, unsigned long *request_freq),
    24		TP_ARGS(policy, request_freq));
    25	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

only message in thread, other threads:[~2021-12-02  0:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-02  0:35 [android-common:android13-5.10 1/1] include/trace/hooks/thermal.h:23:18: warning: 'struct cpufreq_policy' declared inside parameter list will not be visible outside of this definition or declaration 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.