From: Takashi Iwai <tiwai@suse.de>
To: Joe Perches <joe@perches.com>
Cc: linux-kernel@vger.kernel.org, Jaroslav Kysela <perex@perex.cz>,
alsa-devel@alsa-project.org
Subject: Re: [PATCH next 16/16] sound: Use static const char * const where possible
Date: Tue, 14 Sep 2010 16:17:36 +0200 [thread overview]
Message-ID: <s5hfwxc5rzz.wl%tiwai@suse.de> (raw)
In-Reply-To: <8d1ddb8c4ad5c5454e647d753c072721ad1002f6.1284435710.git.joe@perches.com>
At Mon, 13 Sep 2010 21:24:02 -0700,
Joe Perches wrote:
>
> Signed-off-by: Joe Perches <joe@perches.com>
Applied the second chunk (as the first chunk is the revert of your
previous patch).
thanks,
Takashi
> ---
> sound/core/misc.c | 5 +----
> sound/core/pcm_native.c | 2 +-
> 2 files changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/sound/core/misc.c b/sound/core/misc.c
> index 0e5e77f..2c41825 100644
> --- a/sound/core/misc.c
> +++ b/sound/core/misc.c
> @@ -64,15 +64,12 @@ static int print_snd_pfx(unsigned int level, const char *path, int line,
> const char *format)
> {
> const char *file = sanity_file_name(path);
> - char tmp[sizeof("<0>")];
> + char tmp[] = "<0>";
> const char *pfx = level ? KERN_DEBUG : KERN_DEFAULT;
> int ret = 0;
>
> if (format[0] == '<' && format[2] == '>') {
> - tmp[0] = '<';
> tmp[1] = format[1];
> - tmp[2] = '>';
> - tmp[3] = 0;
> pfx = tmp;
> ret = 1;
> }
> diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
> index e2e7389..eb40942 100644
> --- a/sound/core/pcm_native.c
> +++ b/sound/core/pcm_native.c
> @@ -142,7 +142,7 @@ int snd_pcm_info_user(struct snd_pcm_substream *substream,
>
> #ifdef RULES_DEBUG
> #define HW_PARAM(v) [SNDRV_PCM_HW_PARAM_##v] = #v
> -char *snd_pcm_hw_param_names[] = {
> +static const char * const snd_pcm_hw_param_names[] = {
> HW_PARAM(ACCESS),
> HW_PARAM(FORMAT),
> HW_PARAM(SUBFORMAT),
> --
> 1.7.3.rc1
>
prev parent reply other threads:[~2010-09-14 14:17 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-14 4:23 [PATCH next 00/16] treewide: " Joe Perches
2010-09-14 4:23 ` [PATCH next 01/16] arch/alpha: " Joe Perches
2010-09-14 15:37 ` Richard Henderson
2010-09-14 17:03 ` Matt Turner
2010-09-14 4:23 ` [PATCH next 02/16] arch/ia64: " Joe Perches
2010-09-14 4:23 ` [PATCH next 03/16] arch/microblaze: " Joe Perches
2010-09-14 5:59 ` Michal Simek
2010-09-14 4:23 ` [PATCH next 04/16] arch/x86: " Joe Perches
2010-09-14 4:23 ` [PATCH next 05/16] drivers/gpu: " Joe Perches
2010-09-14 4:23 ` [PATCH next 06/16] drivers/isdn: " Joe Perches
2010-09-14 4:23 ` [PATCH next 07/16] drivers/net: " Joe Perches
2010-09-14 4:23 ` [PATCH next 08/16] drivers/net/pcmcia: " Joe Perches
2010-09-14 4:23 ` [PATCH next 09/16] drivers/net/wireless: " Joe Perches
2010-09-14 7:12 ` Ivo Van Doorn
2010-09-14 4:23 ` [PATCH next 10/16] drivers/scsi: " Joe Perches
2010-09-14 4:23 ` [PATCH next 11/16] drivers/staging: " Joe Perches
2010-09-14 4:23 ` [PATCH next 12/16] drivers/usb: " Joe Perches
2010-09-14 4:23 ` [PATCH next 13/16] drivers/watchdog: " Joe Perches
2010-09-14 4:24 ` [PATCH next 14/16] fs: " Joe Perches
2010-09-14 4:24 ` [PATCH next 15/16] net/irda: " Joe Perches
2010-09-14 4:24 ` [PATCH next 16/16] sound: " Joe Perches
2010-09-14 14:17 ` 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=s5hfwxc5rzz.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®