Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1284508 > unrolled thread

Re: [PATCH] fixdep: constify strrcmp arguments

Started byNicolas Iooss <nicolas.iooss_linux@m4x.org>
First post2015-12-05 10:50 +0100
Last post2015-12-07 14:10 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] fixdep: constify strrcmp arguments Nicolas Iooss <nicolas.iooss_linux@m4x.org> - 2015-12-05 10:50 +0100
    Re: [PATCH] fixdep: constify strrcmp arguments Michal Marek <mmarek@suse.com> - 2015-12-07 14:10 +0100

#1284508 — Re: [PATCH] fixdep: constify strrcmp arguments

FromNicolas Iooss <nicolas.iooss_linux@m4x.org>
Date2015-12-05 10:50 +0100
SubjectRe: [PATCH] fixdep: constify strrcmp arguments
Message-ID<qChDA-7KX-11@gated-at.bofh.it>
Hello,
I sent the path below a few weeks ago and did not have any feedback.
Could you please review it?

Thanks,
Nicolas

On 11/18/2015 07:07 PM, Nicolas Iooss wrote:
> strrcmp only performs read access to the memory addressed by its
> arguments so make them const pointers.
> 
> Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
> ---
>  scripts/basic/fixdep.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c
> index c68fd61fdc42..5b327c67a828 100644
> --- a/scripts/basic/fixdep.c
> +++ b/scripts/basic/fixdep.c
> @@ -251,7 +251,7 @@ static void parse_config_file(const char *map, size_t len)
>  }
>  
>  /* test is s ends in sub */
> -static int strrcmp(char *s, char *sub)
> +static int strrcmp(const char *s, const char *sub)
>  {
>  	int slen = strlen(s);
>  	int sublen = strlen(sub);
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1285287

FromMichal Marek <mmarek@suse.com>
Date2015-12-07 14:10 +0100
Message-ID<qD3Id-4T1-7@gated-at.bofh.it>
In reply to#1284508
On 2015-12-05 10:43, Nicolas Iooss wrote:
> Hello,
> I sent the path below a few weeks ago and did not have any feedback.
> Could you please review it?

Applied to kbuild.git#kbuild now.

Michal

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web