From: kbuild test robot <lkp@intel.com>
To: Jerome Brunet <jbrunet@baylibre.com>
Cc: kbuild-all@01.org, Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Russell King <linux@armlinux.org.uk>,
Jerome Brunet <jbrunet@baylibre.com>,
Thierry Reding <thierry.reding@gmail.com>,
Kevin Hilman <khilman@baylibre.com>,
linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] clk: add duty cycle support
Date: Sat, 21 Apr 2018 04:04:47 +0800 [thread overview]
Message-ID: <201804210438.gtqycO0K%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180420153431.13003-1-jbrunet@baylibre.com>
[-- Attachment #1: Type: text/plain, Size: 12499 bytes --]
Hi Jerome,
I love your patch! Yet something to improve:
[auto build test ERROR on clk/clk-next]
[also build test ERROR on v4.17-rc1 next-20180420]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Jerome-Brunet/clk-add-duty-cycle-support/20180421-021133
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: powerpc-ppc6xx_defconfig (attached as .config)
compiler: powerpc-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc
All errors (new ones prefixed by >>):
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:399:6: note: in expansion of macro 'offsetof'
offsetof(typeof(field), item), \
^~~~~~~~
include/trace/trace_events.h:415:29: note: in expansion of macro '__field_ext'
#define __field(type, item) __field_ext(type, item, FILTER_OTHER)
^~~~~~~~~~~
include/trace/events/clk.h:203:3: note: in expansion of macro '__field'
__field( unsigned int, duty->num )
^~~~~~~
include/trace/trace_events.h:400:18: error: 'struct trace_event_raw_clk_duty_cycle' has no member named 'duty'
sizeof(field.item), \
^
include/trace/trace_events.h:454:2: note: in definition of macro 'DECLARE_EVENT_CLASS'
tstruct; \
^~~~~~~
include/trace/events/clk.h:201:2: note: in expansion of macro 'TP_STRUCT__entry'
TP_STRUCT__entry(
^~~~~~~~~~~~~~~~
include/trace/trace_events.h:415:29: note: in expansion of macro '__field_ext'
#define __field(type, item) __field_ext(type, item, FILTER_OTHER)
^~~~~~~~~~~
include/trace/events/clk.h:203:3: note: in expansion of macro '__field'
__field( unsigned int, duty->num )
^~~~~~~
include/linux/compiler-gcc.h:166:2: error: 'struct trace_event_raw_clk_duty_cycle' has no member named 'duty'
__builtin_offsetof(a, b)
^
include/trace/trace_events.h:454:2: note: in definition of macro 'DECLARE_EVENT_CLASS'
tstruct; \
^~~~~~~
include/trace/events/clk.h:201:2: note: in expansion of macro 'TP_STRUCT__entry'
TP_STRUCT__entry(
^~~~~~~~~~~~~~~~
include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:399:6: note: in expansion of macro 'offsetof'
offsetof(typeof(field), item), \
^~~~~~~~
include/trace/trace_events.h:415:29: note: in expansion of macro '__field_ext'
#define __field(type, item) __field_ext(type, item, FILTER_OTHER)
^~~~~~~~~~~
include/trace/events/clk.h:204:3: note: in expansion of macro '__field'
__field( unsigned int, duty->den )
^~~~~~~
include/trace/trace_events.h:400:18: error: 'struct trace_event_raw_clk_duty_cycle' has no member named 'duty'
sizeof(field.item), \
^
include/trace/trace_events.h:454:2: note: in definition of macro 'DECLARE_EVENT_CLASS'
tstruct; \
^~~~~~~
include/trace/events/clk.h:201:2: note: in expansion of macro 'TP_STRUCT__entry'
TP_STRUCT__entry(
^~~~~~~~~~~~~~~~
include/trace/trace_events.h:415:29: note: in expansion of macro '__field_ext'
#define __field(type, item) __field_ext(type, item, FILTER_OTHER)
^~~~~~~~~~~
include/trace/events/clk.h:204:3: note: in expansion of macro '__field'
__field( unsigned int, duty->den )
^~~~~~~
In file included from include/trace/define_trace.h:96:0,
from include/trace/events/clk.h:234,
from drivers//clk/clk.c:84:
include/trace/events/clk.h: In function 'trace_event_get_offsets_clk_duty_cycle':
include/linux/compiler-gcc.h:166:2: error: 'struct trace_event_raw_clk_duty_cycle' has no member named '__data'
__builtin_offsetof(a, b)
^
include/trace/trace_events.h:534:2: note: in definition of macro 'DECLARE_EVENT_CLASS'
tstruct; \
^~~~~~~
include/trace/events/clk.h:201:2: note: in expansion of macro 'TP_STRUCT__entry'
TP_STRUCT__entry(
^~~~~~~~~~~~~~~~
include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:494:11: note: in expansion of macro 'offsetof'
offsetof(typeof(*entry), __data); \
^~~~~~~~
include/trace/trace_events.h:499:29: note: in expansion of macro '__dynamic_array'
#define __string(item, src) __dynamic_array(char, item, \
^~~~~~~~~~~~~~~
include/trace/events/clk.h:202:3: note: in expansion of macro '__string'
__string( name, core->name )
^~~~~~~~
In file included from include/trace/define_trace.h:96:0,
from include/trace/events/clk.h:234,
from drivers//clk/clk.c:84:
include/trace/events/clk.h: In function 'trace_event_raw_event_clk_duty_cycle':
include/trace/events/clk.h:199:21: error: 'num' undeclared (first use in this function)
TP_ARGS(core, num, den),
^
include/trace/trace_events.h:709:64: note: in definition of macro 'DECLARE_EVENT_CLASS'
__data_size = trace_event_get_offsets_##call(&__data_offsets, args); \
^~~~
include/trace/events/clk.h:199:7: note: in expansion of macro 'TP_ARGS'
TP_ARGS(core, num, den),
^~~~~~~
>> include/trace/events/clk.h:199:26: error: 'den' undeclared (first use in this function); did you mean '_end'?
TP_ARGS(core, num, den),
^
include/trace/trace_events.h:709:64: note: in definition of macro 'DECLARE_EVENT_CLASS'
__data_size = trace_event_get_offsets_##call(&__data_offsets, args); \
^~~~
include/trace/events/clk.h:199:7: note: in expansion of macro 'TP_ARGS'
TP_ARGS(core, num, den),
^~~~~~~
include/trace/trace_events.h:709:16: error: too many arguments to function 'trace_event_get_offsets_clk_duty_cycle'
__data_size = trace_event_get_offsets_##call(&__data_offsets, args); \
^
include/trace/events/clk.h:195:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
DECLARE_EVENT_CLASS(clk_duty_cycle,
^~~~~~~~~~~~~~~~~~~
In file included from include/trace/define_trace.h:96:0,
from include/trace/events/clk.h:234,
from drivers//clk/clk.c:84:
include/trace/trace_events.h:527:27: note: declared here
static inline notrace int trace_event_get_offsets_##call( \
^
include/trace/events/clk.h:195:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
DECLARE_EVENT_CLASS(clk_duty_cycle,
^~~~~~~~~~~~~~~~~~~
In file included from include/trace/define_trace.h:96:0,
from include/trace/events/clk.h:234,
from drivers//clk/clk.c:84:
include/trace/events/clk.h:209:10: error: 'struct trace_event_raw_clk_duty_cycle' has no member named 'num'
__entry->num = num;
^
include/trace/trace_events.h:719:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/events/clk.h:207:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/trace/events/clk.h:210:10: error: 'struct trace_event_raw_clk_duty_cycle' has no member named 'den'
__entry->den = den;
^
include/trace/trace_events.h:719:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/events/clk.h:207:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
In file included from include/trace/define_trace.h:97:0,
from include/trace/events/clk.h:234,
from drivers//clk/clk.c:84:
include/trace/events/clk.h: In function 'perf_trace_clk_duty_cycle':
include/trace/events/clk.h:199:21: error: 'num' undeclared (first use in this function)
TP_ARGS(core, num, den),
^
include/trace/perf.h:46:64: note: in definition of macro 'DECLARE_EVENT_CLASS'
__data_size = trace_event_get_offsets_##call(&__data_offsets, args); \
^~~~
include/trace/events/clk.h:199:7: note: in expansion of macro 'TP_ARGS'
TP_ARGS(core, num, den),
^~~~~~~
>> include/trace/events/clk.h:199:26: error: 'den' undeclared (first use in this function); did you mean '_end'?
TP_ARGS(core, num, den),
^
include/trace/perf.h:46:64: note: in definition of macro 'DECLARE_EVENT_CLASS'
__data_size = trace_event_get_offsets_##call(&__data_offsets, args); \
^~~~
include/trace/events/clk.h:199:7: note: in expansion of macro 'TP_ARGS'
TP_ARGS(core, num, den),
^~~~~~~
include/trace/perf.h:46:16: error: too many arguments to function 'trace_event_get_offsets_clk_duty_cycle'
__data_size = trace_event_get_offsets_##call(&__data_offsets, args); \
^
include/trace/events/clk.h:195:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
DECLARE_EVENT_CLASS(clk_duty_cycle,
^~~~~~~~~~~~~~~~~~~
In file included from include/trace/define_trace.h:96:0,
from include/trace/events/clk.h:234,
from drivers//clk/clk.c:84:
include/trace/trace_events.h:527:27: note: declared here
static inline notrace int trace_event_get_offsets_##call( \
^
include/trace/events/clk.h:195:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
DECLARE_EVENT_CLASS(clk_duty_cycle,
^~~~~~~~~~~~~~~~~~~
In file included from include/trace/define_trace.h:97:0,
from include/trace/events/clk.h:234,
from drivers//clk/clk.c:84:
include/trace/events/clk.h:209:10: error: 'struct trace_event_raw_clk_duty_cycle' has no member named 'num'
__entry->num = num;
^
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/events/clk.h:207:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
include/trace/events/clk.h:210:10: error: 'struct trace_event_raw_clk_duty_cycle' has no member named 'den'
__entry->den = den;
^
include/trace/perf.h:66:4: note: in definition of macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/trace/events/clk.h:207:2: note: in expansion of macro 'TP_fast_assign'
TP_fast_assign(
^~~~~~~~~~~~~~
vim +199 include/trace/events/clk.h
196
197 TP_PROTO(struct clk_core *core, struct clk_duty *duty),
198
> 199 TP_ARGS(core, num, den),
200
201 TP_STRUCT__entry(
202 __string( name, core->name )
203 __field( unsigned int, duty->num )
204 __field( unsigned int, duty->den )
205 ),
206
207 TP_fast_assign(
208 __assign_str(name, core->name);
209 __entry->num = num;
210 __entry->den = den;
211 ),
212
213 TP_printk("%s %u/%u", __get_str(name), (unsigned int)__entry->num,
214 (unsigned int)__entry->den)
215 );
216
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29455 bytes --]
prev parent reply other threads:[~2018-04-20 20:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-20 15:34 Jerome Brunet
2018-04-20 19:47 ` kbuild test robot
2018-04-20 20:04 ` kbuild test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201804210438.gtqycO0K%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=jbrunet@baylibre.com \
--cc=kbuild-all@01.org \
--cc=khilman@baylibre.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mturquette@baylibre.com \
--cc=sboyd@kernel.org \
--cc=thierry.reding@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®