linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC/PATCH 0/6] DDF: safe big-endian types
@ 2013-07-21 17:28 mwilck
  2013-07-21 17:28 ` [PATCH 1/6] DDF: add endian-safe typedefs mwilck
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: mwilck @ 2013-07-21 17:28 UTC (permalink / raw)
  To: neilb, linux-raid; +Cc: mwilck

Hi Neil, hello list,

please review this patch series. I made so many endianness bugs
while working on DDF during the last months that I thought this
might be helpful - it will cause bugs to be caught by the
compiler which may otherwise turn up as hard-to-find runtime errors.

Note that the code  *does not* compile after each patch, only 
after the last one. I broke it down to make it more readable.

Patch 0005 and 0006 are separate because they are actual minor bugs
in the code that the endianness patch set helped me find.

I verified that the DDF unit tests aren't broken by this patch set.

Martin

Martin Wilck (6):
  DDF: add endian-safe typedefs
  DDF: convert big endian to be32 type
  DDF: convert big-endian __u64 to be64 type
  DDF: convert big-endian __u16 to be16 type
  DDF: add_other_bvd: fix endianness bug
  DDF: ddf_set_disk: fix minor endianness bug

 super-ddf.c |  851 ++++++++++++++++++++++++++++++++---------------------------
 1 files changed, 462 insertions(+), 389 deletions(-)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-07-23  4:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-21 17:28 [RFC/PATCH 0/6] DDF: safe big-endian types mwilck
2013-07-21 17:28 ` [PATCH 1/6] DDF: add endian-safe typedefs mwilck
2013-07-21 17:28 ` [PATCH 2/6] DDF: convert big endian to be32 type mwilck
2013-07-21 17:28 ` [PATCH 3/6] DDF: convert big-endian __u64 to be64 type mwilck
2013-07-21 17:28 ` [PATCH 4/6] DDF: convert big-endian __u16 to be16 type mwilck
2013-07-21 17:28 ` [PATCH 5/6] DDF: add_other_bvd: fix endianness bug mwilck
2013-07-21 17:28 ` [PATCH 6/6] DDF: ddf_set_disk: fix minor " mwilck
2013-07-23  4:06 ` [RFC/PATCH 0/6] DDF: safe big-endian types NeilBrown

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).