public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "Amitoj Kaur Chawla" <amitoj1606@gmail.com>
Cc: <alsa-devel@alsa-project.org>, <perex@perex.cz>,
	<linux-kernel@vger.kernel.org>, <keescook@chromium.org>,
	<michael.leibowitz@intel.com>, <julia.lawall@lip6.fr>
Subject: Re: [PATCH v2] ALSA: usb-audio: Change structure initialisation to C99 style
Date: Fri, 17 Jun 2016 17:00:03 +0200	[thread overview]
Message-ID: <s5hvb176eto.wl-tiwai@suse.de> (raw)
In-Reply-To: <20160617144215.GA17151@amitoj-Inspiron-3542>

On Fri, 17 Jun 2016 16:42:15 +0200,
Amitoj Kaur Chawla wrote:
> 
> To allow for structure randomisation, replace the in order struct
> initialisation style with explicit field style.
> 
> The Coccinelle semantic patch used to make this change is as follows:
> 
> @decl@
> identifier i1,fld;
> type T;
> field list[n] fs;
> @@
> 
> struct i1 {
>  fs
>  T fld;
>  ...};
> 
> @@
> identifier decl.i1,i2,decl.fld;
> expression e;
> position bad.p, bad.fix;
> @@
> 
> struct i1 i2@p = { ...,
> + .fld = e
> - e@fix
>  ,...};
> 
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
> ---
> Changes in v2:
>         -Modified commit message

Applied, thanks.


Takashi

      reply	other threads:[~2016-06-17 15:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-17 14:42 [PATCH v2] ALSA: usb-audio: Change structure initialisation to C99 style Amitoj Kaur Chawla
2016-06-17 15:00 ` Takashi Iwai [this message]

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=s5hvb176eto.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=amitoj1606@gmail.com \
    --cc=julia.lawall@lip6.fr \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michael.leibowitz@intel.com \
    --cc=perex@perex.cz \
    /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