[rafael-pm:thermal-core-testing 2/6] drivers/thermal/./thermal_trace_ipa.h:27:36: error: invalid use of undefined type 'struct thermal_zone_device'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git thermal-core-testing
head:   a89f1989a5e97c0ca6a1e355500e2659f64707c5
commit: 9396b9d5d714caf9b54037b49877bfa441cb292c [2/6] thermal: core: Make struct thermal_zone_device definition internal
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20240404/202404040355.vMDBmRgN-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240404/202404040355.vMDBmRgN-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202404040355.vMDBmRgN-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   In file included from include/trace/define_trace.h:102,
                    from drivers/thermal/thermal_trace_ipa.h:102,
                    from drivers/thermal/gov_power_allocator.c:15:
   drivers/thermal/./thermal_trace_ipa.h: In function 'trace_event_raw_event_thermal_power_allocator':
>> drivers/thermal/./thermal_trace_ipa.h:27:36: error: invalid use of undefined type 'struct thermal_zone_device'
      27 |                 __entry->tz_id = tz->id;
         |                                    ^~
   include/trace/trace_events.h:402:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
     402 |         { assign; }                                                     \
         |           ^~~~~~
   include/trace/trace_events.h:44:30: note: in expansion of macro 'PARAMS'
      44 |                              PARAMS(assign),                   \
         |                              ^~~~~~
   drivers/thermal/./thermal_trace_ipa.h:10:1: note: in expansion of macro 'TRACE_EVENT'
      10 | TRACE_EVENT(thermal_power_allocator,
         | ^~~~~~~~~~~
   drivers/thermal/./thermal_trace_ipa.h:26:9: note: in expansion of macro 'TP_fast_assign'
      26 |         TP_fast_assign(
         |         ^~~~~~~~~~~~~~
   drivers/thermal/./thermal_trace_ipa.h: In function 'trace_event_raw_event_thermal_power_actor':
   drivers/thermal/./thermal_trace_ipa.h:55:36: error: invalid use of undefined type 'struct thermal_zone_device'
      55 |                 __entry->tz_id = tz->id;
         |                                    ^~
   include/trace/trace_events.h:402:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
     402 |         { assign; }                                                     \
         |           ^~~~~~
   include/trace/trace_events.h:44:30: note: in expansion of macro 'PARAMS'
      44 |                              PARAMS(assign),                   \
         |                              ^~~~~~
   drivers/thermal/./thermal_trace_ipa.h:44:1: note: in expansion of macro 'TRACE_EVENT'
      44 | TRACE_EVENT(thermal_power_actor,
         | ^~~~~~~~~~~
   drivers/thermal/./thermal_trace_ipa.h:54:9: note: in expansion of macro 'TP_fast_assign'
      54 |         TP_fast_assign(
         |         ^~~~~~~~~~~~~~
   drivers/thermal/./thermal_trace_ipa.h: In function 'trace_event_raw_event_thermal_power_allocator_pid':
   drivers/thermal/./thermal_trace_ipa.h:80:36: error: invalid use of undefined type 'struct thermal_zone_device'
      80 |                 __entry->tz_id = tz->id;
         |                                    ^~
   include/trace/trace_events.h:402:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
     402 |         { assign; }                                                     \
         |           ^~~~~~
   include/trace/trace_events.h:44:30: note: in expansion of macro 'PARAMS'
      44 |                              PARAMS(assign),                   \
         |                              ^~~~~~
   drivers/thermal/./thermal_trace_ipa.h:66:1: note: in expansion of macro 'TRACE_EVENT'
      66 | TRACE_EVENT(thermal_power_allocator_pid,
         | ^~~~~~~~~~~
   drivers/thermal/./thermal_trace_ipa.h:79:9: note: in expansion of macro 'TP_fast_assign'
      79 |         TP_fast_assign(
         |         ^~~~~~~~~~~~~~
   In file included from include/trace/define_trace.h:103:
   drivers/thermal/./thermal_trace_ipa.h: In function 'perf_trace_thermal_power_allocator':
>> drivers/thermal/./thermal_trace_ipa.h:27:36: error: invalid use of undefined type 'struct thermal_zone_device'
      27 |                 __entry->tz_id = tz->id;
         |                                    ^~
   include/trace/perf.h:51:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
      51 |         { assign; }                                                     \
         |           ^~~~~~
   include/trace/trace_events.h:44:30: note: in expansion of macro 'PARAMS'
      44 |                              PARAMS(assign),                   \
         |                              ^~~~~~
   drivers/thermal/./thermal_trace_ipa.h:10:1: note: in expansion of macro 'TRACE_EVENT'
      10 | TRACE_EVENT(thermal_power_allocator,
         | ^~~~~~~~~~~
   drivers/thermal/./thermal_trace_ipa.h:26:9: note: in expansion of macro 'TP_fast_assign'
      26 |         TP_fast_assign(
         |         ^~~~~~~~~~~~~~
   drivers/thermal/./thermal_trace_ipa.h: In function 'perf_trace_thermal_power_actor':
   drivers/thermal/./thermal_trace_ipa.h:55:36: error: invalid use of undefined type 'struct thermal_zone_device'
      55 |                 __entry->tz_id = tz->id;
         |                                    ^~
   include/trace/perf.h:51:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
      51 |         { assign; }                                                     \
         |           ^~~~~~
   include/trace/trace_events.h:44:30: note: in expansion of macro 'PARAMS'
      44 |                              PARAMS(assign),                   \
         |                              ^~~~~~
   drivers/thermal/./thermal_trace_ipa.h:44:1: note: in expansion of macro 'TRACE_EVENT'
      44 | TRACE_EVENT(thermal_power_actor,
         | ^~~~~~~~~~~
   drivers/thermal/./thermal_trace_ipa.h:54:9: note: in expansion of macro 'TP_fast_assign'
      54 |         TP_fast_assign(
         |         ^~~~~~~~~~~~~~
   drivers/thermal/./thermal_trace_ipa.h: In function 'perf_trace_thermal_power_allocator_pid':
   drivers/thermal/./thermal_trace_ipa.h:80:36: error: invalid use of undefined type 'struct thermal_zone_device'
      80 |                 __entry->tz_id = tz->id;
         |                                    ^~
   include/trace/perf.h:51:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
      51 |         { assign; }                                                     \
         |           ^~~~~~
   include/trace/trace_events.h:44:30: note: in expansion of macro 'PARAMS'
      44 |                              PARAMS(assign),                   \
         |                              ^~~~~~
   drivers/thermal/./thermal_trace_ipa.h:66:1: note: in expansion of macro 'TRACE_EVENT'
      66 | TRACE_EVENT(thermal_power_allocator_pid,
         | ^~~~~~~~~~~
   drivers/thermal/./thermal_trace_ipa.h:79:9: note: in expansion of macro 'TP_fast_assign'
      79 |         TP_fast_assign(
         |         ^~~~~~~~~~~~~~


vim +27 drivers/thermal/./thermal_trace_ipa.h

6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02   9  
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  10  TRACE_EVENT(thermal_power_allocator,
792c3dc08ddcf2 drivers/thermal/thermal_trace_ipa.h            Lukasz Luba  2023-12-20  11  	TP_PROTO(struct thermal_zone_device *tz, u32 total_req_power,
792c3dc08ddcf2 drivers/thermal/thermal_trace_ipa.h            Lukasz Luba  2023-12-20  12  		 u32 total_granted_power, int num_actors, u32 power_range,
792c3dc08ddcf2 drivers/thermal/thermal_trace_ipa.h            Lukasz Luba  2023-12-20  13  		 u32 max_allocatable_power, int current_temp, s32 delta_temp),
792c3dc08ddcf2 drivers/thermal/thermal_trace_ipa.h            Lukasz Luba  2023-12-20  14  	TP_ARGS(tz, total_req_power, total_granted_power, num_actors,
792c3dc08ddcf2 drivers/thermal/thermal_trace_ipa.h            Lukasz Luba  2023-12-20  15  		power_range, max_allocatable_power, current_temp, delta_temp),
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  16  	TP_STRUCT__entry(
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  17  		__field(int,           tz_id          )
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  18  		__field(u32,           total_req_power          )
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  19  		__field(u32,           total_granted_power      )
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  20  		__field(size_t,        num_actors               )
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  21  		__field(u32,           power_range              )
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  22  		__field(u32,           max_allocatable_power    )
17e8351a77397e include/trace/events/thermal_power_allocator.h Sascha Hauer 2015-07-24  23  		__field(int,           current_temp             )
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  24  		__field(s32,           delta_temp               )
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  25  	),
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  26  	TP_fast_assign(
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02 @27  		__entry->tz_id = tz->id;
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  28  		__entry->total_req_power = total_req_power;
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  29  		__entry->total_granted_power = total_granted_power;
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  30  		__entry->num_actors = num_actors;
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  31  		__entry->power_range = power_range;
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  32  		__entry->max_allocatable_power = max_allocatable_power;
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  33  		__entry->current_temp = current_temp;
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  34  		__entry->delta_temp = delta_temp;
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  35  	),
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  36  
792c3dc08ddcf2 drivers/thermal/thermal_trace_ipa.h            Lukasz Luba  2023-12-20  37  	TP_printk("thermal_zone_id=%d total_req_power=%u total_granted_power=%u power_range=%u max_allocatable_power=%u current_temperature=%d delta_temperature=%d",
792c3dc08ddcf2 drivers/thermal/thermal_trace_ipa.h            Lukasz Luba  2023-12-20  38  		__entry->tz_id,	__entry->total_req_power,
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  39  		__entry->total_granted_power, __entry->power_range,
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  40  		__entry->max_allocatable_power, __entry->current_temp,
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  41  		__entry->delta_temp)
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  42  );
6828a4711f994b include/trace/events/thermal_power_allocator.h Javi Merino  2015-03-02  43  

:::::: The code at line 27 was first introduced by commit
:::::: 6828a4711f994bbd9d3fd27b7a541217fc37b341 thermal: add trace events to the power allocator governor

:::::: TO: Javi Merino <javi.merino@xxxxxxx>
:::::: CC: Eduardo Valentin <edubezval@xxxxxxxxx>

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




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]
  Powered by Linux