From: Johan Hedberg <johan.hedberg@nokia.com>
To: Rafal Michalski <michalski.raf@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v2] Fix strict aliasing issue
Date: Wed, 23 Mar 2011 15:17:52 +0200 [thread overview]
Message-ID: <20110323131752.GD7124@jh-x301> (raw)
In-Reply-To: <1300882277-24960-1-git-send-email-michalski.raf@gmail.com>
Hi Rafal,
On Wed, Mar 23, 2011, Rafal Michalski wrote:
> This patch changes type of "pending" flag to uint32_t type.
> Pointer to this flag is passed to hci_clear_bit function as void * and
> then casted to uint32_t * again. Previously unsigned long type made some
> unexpected performance which occured after violating strict aliasing
> rule. This patch fixes this problem and this solution is much easier than
> solution of changing types of many object (from uint32_t to unsigned long,
> including changing type for castng in hci_*_bit function family), which
> is overcomplicated. Also, not all objects can be changed, like
> hci_dev_info struct, since it is violating compatibility rules between
> kernel and user spaces.
> ---
> plugins/hciops.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Thanks. The patch has been pushed upstream after I did some heavy
cleanup on the commit message for it to be more readable :)
Johan
prev parent reply other threads:[~2011-03-23 13:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-23 12:11 [PATCH v2] Fix strict aliasing issue Rafal Michalski
2011-03-23 13:17 ` 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=20110323131752.GD7124@jh-x301 \
--to=johan.hedberg@nokia.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=michalski.raf@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