Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753429AbbLEJnk (ORCPT ); Sat, 5 Dec 2015 04:43:40 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:33301 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753016AbbLEJng (ORCPT ); Sat, 5 Dec 2015 04:43:36 -0500 Subject: Re: [PATCH] fixdep: constify strrcmp arguments To: Michal Marek , linux-kbuild@vger.kernel.org References: <1447870035-14677-1-git-send-email-nicolas.iooss_linux@m4x.org> Cc: linux-kernel@vger.kernel.org From: Nicolas Iooss Message-ID: <5662B1C4.5050104@m4x.org> Date: Sat, 5 Dec 2015 10:43:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <1447870035-14677-1-git-send-email-nicolas.iooss_linux@m4x.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1124 Lines: 36 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 > --- > 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/