mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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 03:47:06 +0800	[thread overview]
Message-ID: <201804210337.YuSkY00z%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180420153431.13003-1-jbrunet@baylibre.com>

[-- Attachment #1: Type: text/plain, Size: 11323 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: x86_64-randconfig-x016-201815 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   In file included from include/trace/events/clk.h:19:0,
                    from drivers//clk/clk.c:84:
   include/trace/events/clk.h: In function 'trace_clk_set_duty_cycle':
>> include/trace/events/clk.h:221:16: error: 'num' undeclared (first use in this function)
     TP_ARGS(core, num, den)
                   ^
   include/linux/tracepoint.h:148:33: note: in definition of macro '__DO_TRACE'
        ((void(*)(proto))(it_func))(args); \
                                    ^~~~
>> include/linux/tracepoint.h:189:5: note: in expansion of macro 'TP_ARGS'
        TP_ARGS(data_args),   \
        ^~~~~~~
   include/linux/tracepoint.h:349:2: note: in expansion of macro '__DECLARE_TRACE'
     __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),  \
     ^~~~~~~~~~~~~~~
   include/linux/tracepoint.h:352:4: note: in expansion of macro 'PARAMS'
       PARAMS(__data, args))
       ^~~~~~
   include/linux/tracepoint.h:474:2: note: in expansion of macro 'DECLARE_TRACE'
     DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
     ^~~~~~~~~~~~~
   include/linux/tracepoint.h:474:37: note: in expansion of macro 'PARAMS'
     DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
                                        ^~~~~~
>> include/trace/events/clk.h:217:1: note: in expansion of macro 'DEFINE_EVENT'
    DEFINE_EVENT(clk_duty_cycle, clk_set_duty_cycle,
    ^~~~~~~~~~~~
>> include/trace/events/clk.h:221:2: note: in expansion of macro 'TP_ARGS'
     TP_ARGS(core, num, den)
     ^~~~~~~
   include/trace/events/clk.h:221:16: note: each undeclared identifier is reported only once for each function it appears in
     TP_ARGS(core, num, den)
                   ^
   include/linux/tracepoint.h:148:33: note: in definition of macro '__DO_TRACE'
        ((void(*)(proto))(it_func))(args); \
                                    ^~~~
>> include/linux/tracepoint.h:189:5: note: in expansion of macro 'TP_ARGS'
        TP_ARGS(data_args),   \
        ^~~~~~~
   include/linux/tracepoint.h:349:2: note: in expansion of macro '__DECLARE_TRACE'
     __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),  \
     ^~~~~~~~~~~~~~~
   include/linux/tracepoint.h:352:4: note: in expansion of macro 'PARAMS'
       PARAMS(__data, args))
       ^~~~~~
   include/linux/tracepoint.h:474:2: note: in expansion of macro 'DECLARE_TRACE'
     DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
     ^~~~~~~~~~~~~
   include/linux/tracepoint.h:474:37: note: in expansion of macro 'PARAMS'
     DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
                                        ^~~~~~
>> include/trace/events/clk.h:217:1: note: in expansion of macro 'DEFINE_EVENT'
    DEFINE_EVENT(clk_duty_cycle, clk_set_duty_cycle,
    ^~~~~~~~~~~~
>> include/trace/events/clk.h:221:2: note: in expansion of macro 'TP_ARGS'
     TP_ARGS(core, num, den)
     ^~~~~~~
>> include/trace/events/clk.h:221:21: error: 'den' undeclared (first use in this function)
     TP_ARGS(core, num, den)
                        ^
   include/linux/tracepoint.h:148:33: note: in definition of macro '__DO_TRACE'
        ((void(*)(proto))(it_func))(args); \
                                    ^~~~
>> include/linux/tracepoint.h:189:5: note: in expansion of macro 'TP_ARGS'
        TP_ARGS(data_args),   \
        ^~~~~~~
   include/linux/tracepoint.h:349:2: note: in expansion of macro '__DECLARE_TRACE'
     __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),  \
     ^~~~~~~~~~~~~~~
   include/linux/tracepoint.h:352:4: note: in expansion of macro 'PARAMS'
       PARAMS(__data, args))
       ^~~~~~
   include/linux/tracepoint.h:474:2: note: in expansion of macro 'DECLARE_TRACE'
     DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
     ^~~~~~~~~~~~~
   include/linux/tracepoint.h:474:37: note: in expansion of macro 'PARAMS'
     DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
                                        ^~~~~~
>> include/trace/events/clk.h:217:1: note: in expansion of macro 'DEFINE_EVENT'
    DEFINE_EVENT(clk_duty_cycle, clk_set_duty_cycle,
    ^~~~~~~~~~~~
>> include/trace/events/clk.h:221:2: note: in expansion of macro 'TP_ARGS'
     TP_ARGS(core, num, den)
     ^~~~~~~
>> include/linux/tracepoint.h:148:6: error: too many arguments to function '(void (*)(void *, struct clk_core *, struct clk_duty *))it_func'
        ((void(*)(proto))(it_func))(args); \
        ~^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:187:4: note: in expansion of macro '__DO_TRACE'
       __DO_TRACE(&__tracepoint_##name,  \
       ^~~~~~~~~~
   include/linux/tracepoint.h:349:2: note: in expansion of macro '__DECLARE_TRACE'
     __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),  \
     ^~~~~~~~~~~~~~~
   include/linux/tracepoint.h:474:2: note: in expansion of macro 'DECLARE_TRACE'
     DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
     ^~~~~~~~~~~~~
>> include/trace/events/clk.h:217:1: note: in expansion of macro 'DEFINE_EVENT'
    DEFINE_EVENT(clk_duty_cycle, clk_set_duty_cycle,
    ^~~~~~~~~~~~
   include/trace/events/clk.h: In function 'trace_clk_set_duty_cycle_rcuidle':
>> include/trace/events/clk.h:221:16: error: 'num' undeclared (first use in this function)
     TP_ARGS(core, num, den)
                   ^
   include/linux/tracepoint.h:148:33: note: in definition of macro '__DO_TRACE'
        ((void(*)(proto))(it_func))(args); \
                                    ^~~~
   include/linux/tracepoint.h:163:5: note: in expansion of macro 'TP_ARGS'
        TP_ARGS(data_args),   \
        ^~~~~~~
   include/linux/tracepoint.h:197:2: note: in expansion of macro '__DECLARE_TRACE_RCU'
     __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args),  \
     ^~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:198:37: note: in expansion of macro 'PARAMS'
      PARAMS(cond), PARAMS(data_proto), PARAMS(data_args)) \
                                        ^~~~~~
   include/linux/tracepoint.h:349:2: note: in expansion of macro '__DECLARE_TRACE'
     __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),  \
     ^~~~~~~~~~~~~~~
   include/linux/tracepoint.h:352:4: note: in expansion of macro 'PARAMS'
       PARAMS(__data, args))
       ^~~~~~
   include/linux/tracepoint.h:474:2: note: in expansion of macro 'DECLARE_TRACE'
     DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
     ^~~~~~~~~~~~~
   include/linux/tracepoint.h:474:37: note: in expansion of macro 'PARAMS'
     DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
                                        ^~~~~~
>> include/trace/events/clk.h:217:1: note: in expansion of macro 'DEFINE_EVENT'
    DEFINE_EVENT(clk_duty_cycle, clk_set_duty_cycle,
    ^~~~~~~~~~~~
>> include/trace/events/clk.h:221:2: note: in expansion of macro 'TP_ARGS'
     TP_ARGS(core, num, den)
     ^~~~~~~
>> include/trace/events/clk.h:221:21: error: 'den' undeclared (first use in this function)
     TP_ARGS(core, num, den)
                        ^
   include/linux/tracepoint.h:148:33: note: in definition of macro '__DO_TRACE'
        ((void(*)(proto))(it_func))(args); \
                                    ^~~~
   include/linux/tracepoint.h:163:5: note: in expansion of macro 'TP_ARGS'
        TP_ARGS(data_args),   \
        ^~~~~~~
   include/linux/tracepoint.h:197:2: note: in expansion of macro '__DECLARE_TRACE_RCU'
     __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args),  \
     ^~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:198:37: note: in expansion of macro 'PARAMS'
      PARAMS(cond), PARAMS(data_proto), PARAMS(data_args)) \
                                        ^~~~~~
   include/linux/tracepoint.h:349:2: note: in expansion of macro '__DECLARE_TRACE'
     __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),  \
     ^~~~~~~~~~~~~~~
   include/linux/tracepoint.h:352:4: note: in expansion of macro 'PARAMS'
       PARAMS(__data, args))
       ^~~~~~
   include/linux/tracepoint.h:474:2: note: in expansion of macro 'DECLARE_TRACE'
     DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
     ^~~~~~~~~~~~~
   include/linux/tracepoint.h:474:37: note: in expansion of macro 'PARAMS'
     DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
                                        ^~~~~~
>> include/trace/events/clk.h:217:1: note: in expansion of macro 'DEFINE_EVENT'
    DEFINE_EVENT(clk_duty_cycle, clk_set_duty_cycle,
    ^~~~~~~~~~~~
>> include/trace/events/clk.h:221:2: note: in expansion of macro 'TP_ARGS'
     TP_ARGS(core, num, den)
     ^~~~~~~
>> include/linux/tracepoint.h:148:6: error: too many arguments to function '(void (*)(void *, struct clk_core *, struct clk_duty *))it_func'
        ((void(*)(proto))(it_func))(args); \
        ~^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:161:4: note: in expansion of macro '__DO_TRACE'
       __DO_TRACE(&__tracepoint_##name,  \
       ^~~~~~~~~~
   include/linux/tracepoint.h:197:2: note: in expansion of macro '__DECLARE_TRACE_RCU'
     __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args),  \
     ^~~~~~~~~~~~~~~~~~~
   include/linux/tracepoint.h:349:2: note: in expansion of macro '__DECLARE_TRACE'
     __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),  \
     ^~~~~~~~~~~~~~~
   include/linux/tracepoint.h:474:2: note: in expansion of macro 'DECLARE_TRACE'
     DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
     ^~~~~~~~~~~~~

vim +/num +221 include/trace/events/clk.h

   194	
 > 195	DECLARE_EVENT_CLASS(clk_duty_cycle,
   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	
 > 217	DEFINE_EVENT(clk_duty_cycle, clk_set_duty_cycle,
   218	
   219		TP_PROTO(struct clk_core *core, struct clk_duty *duty),
   220	
 > 221		TP_ARGS(core, num, den)
   222	);
   223	
 > 224	DEFINE_EVENT(clk_duty_cycle, clk_set_duty_cycle_complete,
   225	
   226		TP_PROTO(struct clk_core *core, struct clk_duty *duty),
   227	
   228		TP_ARGS(core, num, den)
   229	);
   230	
   231	#endif /* _TRACE_CLK_H */
   232	
   233	/* This part must be outside protection */
 > 234	#include <trace/define_trace.h>

---
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: 26958 bytes --]

  reply	other threads:[~2018-04-20 19:47 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 [this message]
2018-04-20 20:04 ` kbuild test robot

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=201804210337.YuSkY00z%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®