From: Johan Hedberg <johan.hedberg@gmail.com>
To: Szymon Janc <szymon.janc@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 1/2] hcidump: Fix compilation errors due to unaligned memory access
Date: Tue, 18 Dec 2012 13:45:50 +0200 [thread overview]
Message-ID: <20121218114550.GA19406@x220> (raw)
In-Reply-To: <1355829058-10033-1-git-send-email-szymon.janc@tieto.com>
Hi Szymon,
On Tue, Dec 18, 2012, Szymon Janc wrote:
> Use bt_get_le* helper functions to access unaligned memory. This fix
> number of compilation errors on ARM similar to:
>
> CC tools/parser/hci.o
> tools/parser/hci.c: In function ‘ext_inquiry_data_dump’:
> tools/parser/hci.c:797:10 error: cast increases required alignment of
> target type [-Werror=cast-align]
> tools/parser/hci.c:797:10: error: cast increases required alignment of
> target type [-Werror=cast-align]
> cc1: all warnings being treated as errors
> make[1]: *** [tools/parser/hci.o] Error 1
> ---
> tools/parser/hci.c | 7 ++-----
> tools/parser/l2cap.c | 22 +++++++++++-----------
> 2 files changed, 13 insertions(+), 16 deletions(-)
Both patches have been applied. Thanks.
Johan
prev parent reply other threads:[~2012-12-18 11:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-18 11:10 [PATCH 1/2] hcidump: Fix compilation errors due to unaligned memory access Szymon Janc
2012-12-18 11:10 ` [PATCH 2/2] adapter: Use int for storing signed value Szymon Janc
2012-12-18 11:45 ` Johan Hedberg [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=20121218114550.GA19406@x220 \
--to=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=szymon.janc@tieto.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;
as well as URLs for NNTP newsgroup(s).