All of lore.kernel.org
 help / color / mirror / Atom feed
From: Behan Webster <behanw@converseincode.com>
To: balbi@ti.com
Cc: charlebm@gmail.com,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	USB list <linux-usb@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Subject: Re: [PATCH] Remove VLAIS usage from gadget code - alternate patch
Date: Tue, 24 Sep 2013 17:12:10 -0400	[thread overview]
Message-ID: <5242002A.6050507@converseincode.com> (raw)
In-Reply-To: <1380045419-10367-1-git-send-email-charlebm@gmail.com>

On 09/24/13 13:56, charlebm@gmail.com wrote:
> From: Mark Charlebois <charlebm@gmail.com>
>
> The use of variable length arrays in structs (VLAIS) in the Linux Kernel code
> precludes the use of compilers which don't implement VLAIS (for instance the
> Clang compiler). This alternate patch calculates offsets into the kmalloc-ed
> memory buffer using macros. The previous patch required multiple kmalloc and
> kfree calls.
>
> Signed-off-by: Mark Charlebois <charlebm@gmail.com>
> Signed-off-by: Behan Webster <behanw@converseincode.com>
This one uses macros and carves up a single piece of memory from one 
kmalloc.

Behan

-- 
Behan Webster
behanw@converseincode.com


  reply	other threads:[~2013-09-24 21:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-24 17:56 [PATCH] Remove VLAIS usage from gadget code - alternate patch charlebm
2013-09-24 21:12 ` Behan Webster [this message]
2013-09-25 14:35 ` Andrzej Pietrasiewicz
  -- strict thread matches above, loose matches on Subject: below --
2013-09-25 21:23 charlebm

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=5242002A.6050507@converseincode.com \
    --to=behanw@converseincode.com \
    --cc=andrzej.p@samsung.com \
    --cc=balbi@ti.com \
    --cc=charlebm@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.