mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Bolle <pebolle@tiscali.nl>
To: Chunyan Zhang <zhang.chunyan@linaro.org>
Cc: Steven Rostedt <rostedt@goodmis.org>,
	mingo@redhat.com, Mathieu Poirier <mathieu.poirier@linaro.org>,
	Kaixu Xia <kaixu.xia@linaro.org>,
	Serge Broslavsky <serge.broslavsky@linaro.org>,
	Mark Brown <broonie@linaro.org>,
	alexander.shishkin@linux.intel.com,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [RFC PATCH 1/3] STM trace event: Adding generic buffer interface driver
Date: Sat, 06 Jun 2015 14:27:14 +0200	[thread overview]
Message-ID: <1433593634.10861.65.camel@x220> (raw)
In-Reply-To: <CAG2=9p_qREhcQ+aor3QXNQ5zzkqN51Cdqf4CyML8kfPJMVC97Q@mail.gmail.com>

On Fri, 2015-06-05 at 13:37 +0800, Chunyan Zhang wrote:
> --- a/drivers/stm/Kconfig
> +++ b/drivers/stm/Kconfig

> +config STM_TRACE_EVENT
> +       tristate "Redirect/copy the output from kernel trace event to
> STM engine"
> +       depends on STM
> +       help
> +         This option can be used to redirect or copy the output from
> kernel trace
> +         event to STM engine. Enabling this option will introduce a slight
> +         timing effect.
> +
> +         If you want to send kernel trace event messages over STM devices,
> +         say Y.

It seems your mailer (or some mailserver) mangled this part.

> --- /dev/null
> +++ b/drivers/stm/stm_trace_event.c

> +static int stm_trace_event_init(void)
> +{
> +       return stm_source_register_device(NULL, &stm_trace_event_data);
> +}

Is there are reason not to mark this __init?

> +static void stm_trace_event_exit(void)
> +{
> +       stm_source_unregister_device(&stm_trace_event_data);
> +}

Ditto, but here it's __exit, of course.

> +module_init(stm_trace_event_init);
> +module_exit(stm_trace_event_exit);

(These are not rhetorical questions. I actually wonder whether there a
reasons not to mark module_init() and module_exit() functions with
__init and __exit.)


Paul Bolle


      reply	other threads:[~2015-06-06 12:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-05  5:37 Chunyan Zhang
2015-06-06 12:27 ` Paul Bolle [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=1433593634.10861.65.camel@x220 \
    --to=pebolle@tiscali.nl \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=broonie@linaro.org \
    --cc=kaixu.xia@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu.poirier@linaro.org \
    --cc=mingo@redhat.com \
    --cc=rostedt@goodmis.org \
    --cc=serge.broslavsky@linaro.org \
    --cc=zhang.chunyan@linaro.org \
    /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®