From: Marcel Holtmann <marcel@holtmann.org>
To: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 4/4] Bluetooth: trivial: Remove sparse warnings
Date: Mon, 12 Mar 2012 10:36:17 -0700 [thread overview]
Message-ID: <1331573777.14217.81.camel@aeonflux> (raw)
In-Reply-To: <1331560774-10748-4-git-send-email-Andrei.Emeltchenko.news@gmail.com>
Hi Andrei,
at least put the sparse warning in the commit message.
> Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> ---
> net/bluetooth/mgmt.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
> index 06b5df3..5efca93 100644
> --- a/net/bluetooth/mgmt.c
> +++ b/net/bluetooth/mgmt.c
> @@ -287,7 +287,7 @@ static int read_commands(struct sock *sk, struct hci_dev *hdev, void *data,
> struct mgmt_rp_read_commands *rp;
> u16 num_commands = ARRAY_SIZE(mgmt_commands);
> u16 num_events = ARRAY_SIZE(mgmt_events);
> - u16 *opcode;
> + __le16 *opcode;
> size_t rp_size;
> int i, err;
>
> @@ -2601,7 +2601,7 @@ static int load_long_term_keys(struct sock *sk, struct hci_dev *hdev,
> return 0;
> }
>
> -struct mgmt_handler {
> +static struct mgmt_handler {
> int (*func) (struct sock *sk, struct hci_dev *hdev, void *data,
> u16 data_len);
> bool var_len;
And this should be static const.
Regards
Marcel
next prev parent reply other threads:[~2012-03-12 17:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-12 13:59 [PATCH 1/4] Bluetooth: trivial: Correct types Andrei Emeltchenko
2012-03-12 13:59 ` [PATCH 2/4] Bluetooth: Fix type in cpu_to_le conversion Andrei Emeltchenko
2012-03-12 17:35 ` Marcel Holtmann
2012-03-12 13:59 ` [PATCH 3/4] Bluetooth: Fix opcode access in hci_complete Andrei Emeltchenko
2012-03-12 17:38 ` Marcel Holtmann
2012-03-12 13:59 ` [PATCH 4/4] Bluetooth: trivial: Remove sparse warnings Andrei Emeltchenko
2012-03-12 17:36 ` Marcel Holtmann [this message]
2012-03-13 8:16 ` Andrei Emeltchenko
2012-03-12 17:39 ` [PATCH 1/4] Bluetooth: trivial: Correct types Marcel Holtmann
2012-03-16 15:36 ` Johan Hedberg
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=1331573777.14217.81.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=Andrei.Emeltchenko.news@gmail.com \
--cc=linux-bluetooth@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).