From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: linux-kernel@vger.kernel.org, kernel@pengutronix.de,
Gavin Schenk <g.schenk@eckelmann.de>,
Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [PATCH v2 2/4] siox: add support for tracing
Date: Tue, 19 Dec 2017 09:28:23 +0100 [thread overview]
Message-ID: <20171219082823.GA12139@kroah.com> (raw)
In-Reply-To: <20171218165910.10577-3-u.kleine-koenig@pengutronix.de>
On Mon, Dec 18, 2017 at 05:59:08PM +0100, Uwe Kleine-König wrote:
> Implement tracing for SIOX. There are events for the data that is
> written to the bus and for data being read from it.
>
> Acked-by: Gavin Schenk <g.schenk@eckelmann.de>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>
> Notes:
> Changes since v1, sent with Message-Id: 20171207093008.20688-3-u.kleine-koenig@pengutronix.de
>
> - drop a WARN_ON
> - Added Steven Rostedt to Cc: now that the first patch is expected to stay
> more or less as it is.
>
> drivers/siox/siox-core.c | 12 +++++++++
> include/trace/events/siox.h | 66 +++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 78 insertions(+)
> create mode 100644 include/trace/events/siox.h
This patch gives me the following build warnings:
CC [M] drivers/siox/siox-core.o
In file included from ./include/trace/define_trace.h:96:0,
from ./include/trace/events/siox.h:66,
from drivers/siox/siox-core.c:37:
./include/trace/events/siox.h: In function ‘trace_raw_output_siox_set_data’:
./include/trace/events/siox.h:27:16: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
TP_printk("siox-%d-%u [%*phD]",
^
./include/trace/trace_events.h:360:22: note: in definition of macro ‘DECLARE_EVENT_CLASS’
trace_seq_printf(s, print); \
^~~~~
./include/trace/trace_events.h:79:9: note: in expansion of macro ‘PARAMS’
PARAMS(print)); \
^~~~~~
./include/trace/events/siox.h:9:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(siox_set_data,
^~~~~~~~~~~
./include/trace/events/siox.h:27:6: note: in expansion of macro ‘TP_printk’
TP_printk("siox-%d-%u [%*phD]",
^~~~~~~~~
In file included from ./include/trace/trace_events.h:394:0,
from ./include/trace/define_trace.h:96,
from ./include/trace/events/siox.h:66,
from drivers/siox/siox-core.c:37:
./include/trace/events/siox.h:27:30: note: format string is defined here
TP_printk("siox-%d-%u [%*phD]",
~^~
In file included from ./include/trace/define_trace.h:96:0,
from ./include/trace/events/siox.h:66,
from drivers/siox/siox-core.c:37:
./include/trace/events/siox.h: In function ‘trace_raw_output_siox_get_data’:
./include/trace/events/siox.h:55:16: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
TP_printk("siox-%d-%u (%02hhx) [%*phD]",
^
./include/trace/trace_events.h:360:22: note: in definition of macro ‘DECLARE_EVENT_CLASS’
trace_seq_printf(s, print); \
^~~~~
./include/trace/trace_events.h:79:9: note: in expansion of macro ‘PARAMS’
PARAMS(print)); \
^~~~~~
./include/trace/events/siox.h:34:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(siox_get_data,
^~~~~~~~~~~
./include/trace/events/siox.h:55:6: note: in expansion of macro ‘TP_printk’
TP_printk("siox-%d-%u (%02hhx) [%*phD]",
^~~~~~~~~
In file included from ./include/trace/trace_events.h:394:0,
from ./include/trace/define_trace.h:96,
from ./include/trace/events/siox.h:66,
from drivers/siox/siox-core.c:37:
./include/trace/events/siox.h:55:39: note: format string is defined here
TP_printk("siox-%d-%u (%02hhx) [%*phD]",
~^~
So I really can't take this as-is :(
I've applied the first patch to my tree now.
thanks,
greg k-h
next prev parent reply other threads:[~2017-12-19 8:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-18 16:59 [PATCH v2 0/4] siox: add support for new bus type Uwe Kleine-König
2017-12-18 16:59 ` [PATCH v2 1/4] siox: new driver framework for eckelmann SIOX Uwe Kleine-König
2017-12-18 16:59 ` [PATCH v2 2/4] siox: add support for tracing Uwe Kleine-König
2017-12-19 8:28 ` Greg Kroah-Hartman [this message]
2017-12-18 16:59 ` [PATCH v2 3/4] siox: add gpio bus driver Uwe Kleine-König
2017-12-18 16:59 ` [PATCH v2 4/4] MAINTAINERS: Add entry for SIOX Uwe Kleine-König
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=20171219082823.GA12139@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=g.schenk@eckelmann.de \
--cc=kernel@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=u.kleine-koenig@pengutronix.de \
/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
Powered by JetHome