public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Marek Lindner <lindner_marek@yahoo.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] [PATCH 9/9] batman-adv: Calculate sizeof using variable insead of types
Date: Thu, 19 May 2011 10:07:04 +0200	[thread overview]
Message-ID: <201105191007.04614.lindner_marek@yahoo.de> (raw)
In-Reply-To: <1305407694-16789-9-git-send-email-sven@narfation.org>

On Saturday 14 May 2011 23:14:54 Sven Eckelmann wrote:
> Documentation/CodingStyle recommends to use the form
> 
>         p = kmalloc(sizeof(*p), ...);
> 
> to calculate the size of a struct and not the version where the struct
> name is spelled out to prevent bugs when the type of p changes. This
> also seems appropriate for manipulation of buffers when they are
> directly associated wi

Applied in revision 1929981.

Thanks,
Marek

  reply	other threads:[~2011-05-19  8:07 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-14 21:14 [B.A.T.M.A.N.] [PATCH 1/9] batman-adv: Annotate functions with format strings Sven Eckelmann
2011-05-14 21:14 ` [B.A.T.M.A.N.] [PATCH 2/9] batman-adv: Print jiffies as unsigned long Sven Eckelmann
2011-05-18  9:35   ` Marek Lindner
2011-05-14 21:14 ` [B.A.T.M.A.N.] [PATCH 3/9] batman-adv: Remove comparising < 0 for unsigned type Sven Eckelmann
2011-05-18  9:37   ` Marek Lindner
2011-05-14 21:14 ` [B.A.T.M.A.N.] [PATCH 4/9] batman-adv: Don't do pointer arithmetic with void* Sven Eckelmann
2011-05-18  9:40   ` Marek Lindner
2011-05-14 21:14 ` [B.A.T.M.A.N.] [PATCH 5/9] batman-adv: Add const type qualifier for pointers Sven Eckelmann
2011-05-18 10:10   ` Marek Lindner
2011-05-14 21:14 ` [B.A.T.M.A.N.] [PATCH 6/9] batman-adv: Only use in up and down gw representation Sven Eckelmann
2011-05-18 10:24   ` Marek Lindner
2011-05-14 21:14 ` [B.A.T.M.A.N.] [PATCH 7/9] batman-adv: Remove explicit casts cast from void* for store Sven Eckelmann
2011-05-19  7:22   ` Marek Lindner
2011-05-14 21:14 ` [B.A.T.M.A.N.] [PATCH 8/9] batman-adv: Remove casts from type x to type x Sven Eckelmann
2011-05-19  7:26   ` Marek Lindner
2011-05-14 21:14 ` [B.A.T.M.A.N.] [PATCH 9/9] batman-adv: Calculate sizeof using variable insead of types Sven Eckelmann
2011-05-19  8:07   ` Marek Lindner [this message]
2011-05-14 22:50 ` [B.A.T.M.A.N.] [PATCH 10/09] batman-adv: Use rcu_dereference_protected by update-side Sven Eckelmann
2011-05-19  8:12   ` Marek Lindner
2011-05-15  6:36 ` [B.A.T.M.A.N.] [PATCH 1/9] batman-adv: Annotate functions with format strings Andrew Lunn
2011-05-15  7:27   ` Sven Eckelmann
2011-05-19  8:28     ` Marek Lindner
2011-05-18  9:32 ` Marek Lindner

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=201105191007.04614.lindner_marek@yahoo.de \
    --to=lindner_marek@yahoo.de \
    --cc=b.a.t.m.a.n@lists.open-mesh.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