Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2421014ybl; Thu, 9 Jan 2020 12:26:57 -0800 (PST) X-Google-Smtp-Source: APXvYqxH2R5fzVX8j/AgQ4TQYhQYjwfoq/fuuImFjrD6s5JwPdX59O5fbre1Bh45aDtWZKJirgeC X-Received: by 2002:a05:6830:120b:: with SMTP id r11mr9339415otp.254.1578601617315; Thu, 09 Jan 2020 12:26:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578601617; cv=none; d=google.com; s=arc-20160816; b=nVXMmgbYI8UA5s+Butztdflt+Q81hYOAYHPL1rl/tRaoMLCb95BMf5Wk0sFSCbHnog QcHrWwkIZ9XZmu9lIulxe/F6IHBx1sQCDZdLgVGTKLrcLaOFmfpUgeuygSScrHYxyEE2 /xOzU+Fcdo0XsymkpfRGCP1B7HaonSKeYK+6qpj2k3ZvOuL8Y4+fmFDeGJnckD4XP+yi BdRmlccLmjM2on4sEYnSj1oFMbH6bGnf1E426XnVeiny8/RaOYm6dvFylWPt8yD54SxT pVkFwHwiPLw+TlTiHShIu0BetBGQpNc35OmsbYT4wVIaQUHUo5+jcDf5Qciq3kTnQ0Mj xXgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=E1MKOCVOwb/QWH9ymW870ivoEvWZNM75twwy+HJECjA=; b=JyJQxmf/rj78wKB9zdML8Qo0chO5Qcsj0LasZEqu3HjtBrq4Ff5utCoARFqEAElNAg K9a15K+DJO5R8dz/xxSsNla4eSs7c9FDNmogy9YuGxeEPjhBH9nWPUuPLOypOl02GOZx smQK4WsAtX5G+lRA07q5OWrhcgM1H0XO8jfMK7DoCheSnpLp/knR9qoryjschwDeK6Ci IQCqhOu8FS7hzRTWP+fX6JHy76KrUBTl57ncEp59Z3mj8jv//STYwMU23D7VMlJLZdgE LcqdKx8b7Y9RvvH53bwD7/FcoIgDen3UfPKD975fzs/0bHdSWvDFxSwEMzNxWnosFHxl 2c/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=0n1pscxi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23si4528235oto.205.2020.01.09.12.26.45; Thu, 09 Jan 2020 12:26:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=0n1pscxi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732844AbgAIQDY (ORCPT + 99 others); Thu, 9 Jan 2020 11:03:24 -0500 Received: from mail-qv1-f65.google.com ([209.85.219.65]:41198 "EHLO mail-qv1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732830AbgAIQDW (ORCPT ); Thu, 9 Jan 2020 11:03:22 -0500 Received: by mail-qv1-f65.google.com with SMTP id x1so3151764qvr.8 for ; Thu, 09 Jan 2020 08:03:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=E1MKOCVOwb/QWH9ymW870ivoEvWZNM75twwy+HJECjA=; b=0n1pscxioDUMOfwhYFeCu4B4/sz6Dp3ab6Y+ojs3hzylVsi0xi1rlmLZKw6UxOAKiZ rWsqDdB7SGavyeR/Y6Njd6sugUJVQJxUhpZOyL2R8IWiS6Tafuovhh6LwZogSd2NQNmy nX9hGS7Yfnv3c94pfudRiN/Vfx54sy9RnUFC7FJoCmsQRt5l8LuCzdH4EiO6qNh5w9No PZH9sDoycwOjguBIysKCXoGgnULR9lNRtPeRedZX++XSd6JZ6X5Ru9zQGM5j755Bx6f/ bmITQKZDwMGUlMC79MVrbN+8ac4Fve95GL3ojBKdnoVfDt4UxSUCr3LRYaN/h7Eb8uEc Z0GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=E1MKOCVOwb/QWH9ymW870ivoEvWZNM75twwy+HJECjA=; b=Z6D6SVsqkCCxlkr2RFTnkDWQ7DKG2epZP8biSv5sUOk74Rm+whV5F0WH9SwWqVwdCC cnsXu81f/xBGlAN5ZKwSzzni8BZQVFIkay3NFGq/xLNh8s6q9W0nZeF7TWAX+4Y/IDTt GxE21p2ThboagS47g9wsO7rddwWWu+nhgP6P5y2X8gJmxlXG8nJWhX8Gk91slLKzjLtA mTFS/FNZ79TZ9gymh2jtk8N8YeFwv6FBkctfgVNcxnwbZAMhLgCkt+ctiw/i75nxtNUP WPNNeljqv8zyK9NU4aQWr2B3FVPZ9/2krsB2aq9dcv8CNTC16LPbh5RiG777kegg67Lm En7w== X-Gm-Message-State: APjAAAWZMJ1GgF2Hv1WylBzz+OEV+xJl6GPkY0s9ZuvnZ8vvUXP186Rw EXDT7hniNY2ljjlXpxt+6205a2MR1h5Xs2htY7IuJg== X-Received: by 2002:ad4:55e8:: with SMTP id bu8mr9583043qvb.61.1578585801550; Thu, 09 Jan 2020 08:03:21 -0800 (PST) MIME-Version: 1.0 References: <20200109125627.24654-1-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Thu, 9 Jan 2020 17:03:09 +0100 Message-ID: Subject: Re: [PATCH] kconfig: fix an "implicit declaration of function" warning To: Masahiro Yamada Cc: Bartosz Golaszewski , Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org czw., 9 sty 2020 o 16:59 Masahiro Yamada napisa=C5= =82(a): > > On Thu, Jan 9, 2020 at 9:56 PM Bartosz Golaszewski wrote: > > > > From: Bartosz Golaszewski > > > > strncasecmp() & strcasecmp() functions are declared in strings.h, not > > string.h. On most environments the former is implicitly included by > > the latter but on some setups, building menuconfig results in the > > following warning: > > > > HOSTCC scripts/kconfig/mconf.o > > scripts/kconfig/mconf.c: In function =E2=80=98search_conf=E2=80=99: > > scripts/kconfig/mconf.c:423:6: warning: implicit declaration of functio= n =E2=80=98strncasecmp=E2=80=99 [-Wimplicit-function-declaration] > > if (strncasecmp(dialog_input_result, CONFIG_, strlen(CONFIG_)) =3D=3D= 0) > > ^~~~~~~~~~~ > > scripts/kconfig/mconf.c: In function =E2=80=98main=E2=80=99: > > scripts/kconfig/mconf.c:1021:8: warning: implicit declaration of functi= on =E2=80=98strcasecmp=E2=80=99 [-Wimplicit-function-declaration] > > if (!strcasecmp(mode, "single_menu")) > > ^~~~~~~~~~ > > > > Fix it by explicitly including strings.h. > > > > Signed-off-by: Bartosz Golaszewski > > Thanks. > > I see strncasecmp() in > scripts/kconfig/nconf.c too. > > Could you fix both in a single patch? > > You can try it with "make nconfig". Sure. It seems gconf needs the same change too. Bart