From: Bernd Petrovitsch <bernd@petrovitsch.priv.at>
To: cocci@systeme.lip6.fr
Subject: Re: [PATCH] Coccicheck: Remove memcpy to struct assignment test
Date: Wed, 19 Mar 2014 12:02:58 +0000 [thread overview]
Message-ID: <1395230578.12633.21.camel@thorin> (raw)
In-Reply-To: <1395177092-3023-1-git-send-email-peter.senna@gmail.com>
On Die, 2014-03-18 at 22:11 +0100, Peter Senna Tschudin wrote:
> The Coccinelle script scripts/coccinelle/misc/memcpy-assign.cocci look
> for opportunities to replace a call to memcpy by a struct assignment.
> This patch removes memcpy-assign.cocci as it is not clear that this
> convention has an impact on the generated code.
Using struct assignment keeps the type check and is just for this reason
always preferable over memcpy().
Kind regards,
Bernd
--
Bernd Petrovitsch Email : bernd@petrovitsch.priv.at
LUGA : http://www.luga.at
next prev parent reply other threads:[~2014-03-19 12:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-18 21:11 [PATCH] Coccicheck: Remove memcpy to struct assignment test Peter Senna Tschudin
2014-03-19 12:02 ` Bernd Petrovitsch [this message]
2014-03-19 13:39 ` Peter Senna Tschudin
2014-03-19 14:05 ` Bernd Petrovitsch
2014-03-19 16:48 ` Greg Kroah-Hartman
2014-03-29 20:37 ` Michal Marek
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=1395230578.12633.21.camel@thorin \
--to=bernd@petrovitsch.priv.at \
--cc=cocci@systeme.lip6.fr \
/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