From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
To: linux-sparse@vger.kernel.org
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Christopher Li <sparse@chrisli.org>,
Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Subject: [PATCH 0/4] fix bitfield initiallizers
Date: Fri, 7 Apr 2017 01:00:25 +0200 [thread overview]
Message-ID: <20170406230029.11384-1-luc.vanoostenryck@gmail.com> (raw)
The goal of this series is to fix two bugs related
to the initialization of bitfields:
- bad shift & mask
- no implicit zeroing
One notable change is the removal of bit_offset & bit_size
from struct access_data.
This series is available at:
git://github.com/lucvoo/sparse.git fix-bitfield-init
based on commit:
14964df5373292af78b29529d4fc7e1a26b67a97 (sparse-next @ 2017-03-31)
up to commit:
6e778f937073d96934c6240b5d47a76b0d592e27
Luc Van Oostenryck (4):
add support for a new flag: -fdump-linearize[=only]
remove bit_size & bit_offset from struct access_data
add test case for linearize_initializer() of bitfields
fix implicit zero initializer.
lib.c | 22 +++++++
lib.h | 2 +
linearize.c | 36 +++++++----
sparse.1 | 7 +++
validation/linear/bitfield-init-mask.c | 27 +++++++++
validation/linear/bitfield-init-zero.c | 102 ++++++++++++++++++++++++++++++++
validation/linear/struct-init-full.c | 28 +++++++++
validation/linear/struct-init-partial.c | 41 +++++++++++++
8 files changed, 255 insertions(+), 10 deletions(-)
create mode 100644 validation/linear/bitfield-init-mask.c
create mode 100644 validation/linear/bitfield-init-zero.c
create mode 100644 validation/linear/struct-init-full.c
create mode 100644 validation/linear/struct-init-partial.c
-- Luc Van Oostenryck
next reply other threads:[~2017-04-06 23:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-06 23:00 Luc Van Oostenryck [this message]
2017-04-06 23:00 ` [PATCH 1/4] add support for a new flag: -fdump-linearize[=only] Luc Van Oostenryck
2017-04-07 0:32 ` Dibyendu Majumdar
2017-04-07 18:52 ` Luc Van Oostenryck
2017-04-06 23:00 ` [PATCH 2/4] remove bit_size & bit_offset from struct access_data Luc Van Oostenryck
2017-04-06 23:00 ` [PATCH 3/4] add test case for linearize_initializer() of bitfields Luc Van Oostenryck
2017-04-06 23:00 ` [PATCH 4/4] fix implicit zero initializer Luc Van Oostenryck
2017-04-06 23:39 ` Linus Torvalds
2017-04-07 0:13 ` Luc Van Oostenryck
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=20170406230029.11384-1-luc.vanoostenryck@gmail.com \
--to=luc.vanoostenryck@gmail.com \
--cc=linux-sparse@vger.kernel.org \
--cc=sparse@chrisli.org \
--cc=torvalds@linux-foundation.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).