Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2132521ybl; Thu, 9 Jan 2020 07:25:28 -0800 (PST) X-Google-Smtp-Source: APXvYqx8QynDeyzQzKZOvX+YtTNuD0ovtW/PiEqwhGqmSPewVv+HN1nk84Emh7CFJGma+0YUGaeL X-Received: by 2002:aca:36c1:: with SMTP id d184mr3575989oia.70.1578583528637; Thu, 09 Jan 2020 07:25:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578583528; cv=none; d=google.com; s=arc-20160816; b=fgFK+4IVcKwLe069d4iPyuqDuKCwM7OD5zr56Rux6bZxb6fS5MwJ2fK5WOLmbgz4pN 0cKTH4upMTKxEWHgesUF/LtA1WW7ZCNu4wvETrZo1lmM9yIzGjuhXzREetBT4emYwbLG TEoXPd88hnxZOonOrwYjZ7FIognVFMVhqVgNy8iEw5oskqQ7FwUSu5EQ956TWLk05VGR lkhiOd/ZI5fMoreM0j4bUkfafgY/hIt+LOK+sScNw8ZoO0pZudZVdh9vJmveYqbae5d4 nmH+y6CK5DYore/Eee8vHAYo1d+A3loDrFs+1E6vZ0Tx6FeB2iLLriVuvN/cv2/CZxDn T+hQ== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4ouFtmfEELWvJ13DB/hJHUscdWjOjJrZEj66Pak4s1Y=; b=VnSXwUuV6TmIxSnDZEbrsgrgyfA8VbKMSnVBg2zuQ4mrPqZeRn0q1ti0YtLl9j7v5T IAEEfLrnX6Qn0RgzuH2oqYbYAX3gzrey/aF7aEn0PYlFK3K/LanF1WpN8YkcuhHGAtEd evByzuFE6Din9VLwRciBQXgntW7IDqtgatat3iIwNtkS50SEE2iV48TmbyZLrs5Z0Zyl gIla3f5ulV87Pz0F+uxnp89+kEa/Xjunw5TMSXwrQ+61vTD+nvk7LTjuGLOCdXhJOtCM x+OYq0SQx+FuNkS5ZmrlhIM1EXThxhd/s6FvakYh4zx0/BaLm4IiKpbnm7WYDkpFmfbX atmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=xqx3KGA2; 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 x185si3405837oig.201.2020.01.09.07.25.16; Thu, 09 Jan 2020 07:25:28 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=xqx3KGA2; 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 S1729157AbgAIM4b (ORCPT + 99 others); Thu, 9 Jan 2020 07:56:31 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44907 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727701AbgAIM4a (ORCPT ); Thu, 9 Jan 2020 07:56:30 -0500 Received: by mail-wr1-f67.google.com with SMTP id q10so7250778wrm.11 for ; Thu, 09 Jan 2020 04:56:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4ouFtmfEELWvJ13DB/hJHUscdWjOjJrZEj66Pak4s1Y=; b=xqx3KGA2++yS7R7TG0QaX013kZuCurED29C3mgaK4YpOHQgMXTh3VzeqcYiZZP8Rib NEHA0voQO6ezOb/WhLv5Sj32sc7JLUVaC4S33L6R3aJLCX8nI/GHgJ9X7t74o4LJxNTc R1wYVKvmF+xykpBEnXE01+nf30lNxgY9Hs+3jQrE6g9aAMd4o/QbSAbpeFRTxi9w3Ozu grHcFTufOto7YoQ0Uptj+Wlz4AU/462tVJ3PsyguagKTdQPzWH8wMGRh93Zgcd38Whne Xk9KEOOUoIn75OGZtFnLRLo64y+OKD9efik9MkCtTSTVA3QfqpYT5zmvpQu9rVBjLQQ+ LfLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4ouFtmfEELWvJ13DB/hJHUscdWjOjJrZEj66Pak4s1Y=; b=TSxUv0+spsazVm/2cD7/vY7GhdMsyjIxk1fyHNjxWBlDDE2eaeZIcbOURlOBhoSKQK GGfpY5JHsxQsYdmA8PJ+dGhPdby+Sg7tKdP7eKQrUFJF/xpD+PhjgfC5UB6TeyW4AB7F PD+SHYy8XDixun4A58YC9uykKDnLo+h9ywzUhMp/NTrXBF986JBMWLoRGdgC2tUotM03 K0vxeSe/lT7xu9G6jqBA8IW+OLo7L++5AbOPaleaciFSAdVOr9V8GQNV63TFeE9aMOaY We0jnjT+8+v66tXWi+xew58Z8crL//vXcXoHh0vHhWEzogIZAhzqCryNzwW3jLKChYEZ ZY4A== X-Gm-Message-State: APjAAAX6KtTf6Nqzo7UowNCQyn6xeVzt+U+woNrt9dWj8kUFw/JNubul ToSoQzagfq0EIaQXwH5Dj4G3AA== X-Received: by 2002:a5d:6a52:: with SMTP id t18mr10371786wrw.391.1578574589653; Thu, 09 Jan 2020 04:56:29 -0800 (PST) Received: from debian-brgl.home (amontpellier-652-1-53-230.w109-210.abo.wanadoo.fr. [109.210.44.230]) by smtp.gmail.com with ESMTPSA id f207sm3163471wme.9.2020.01.09.04.56.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 04:56:29 -0800 (PST) From: Bartosz Golaszewski To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH] kconfig: fix an "implicit declaration of function" warning Date: Thu, 9 Jan 2020 13:56:27 +0100 Message-Id: <20200109125627.24654-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ‘search_conf’: scripts/kconfig/mconf.c:423:6: warning: implicit declaration of function ‘strncasecmp’ [-Wimplicit-function-declaration] if (strncasecmp(dialog_input_result, CONFIG_, strlen(CONFIG_)) == 0) ^~~~~~~~~~~ scripts/kconfig/mconf.c: In function ‘main’: scripts/kconfig/mconf.c:1021:8: warning: implicit declaration of function ‘strcasecmp’ [-Wimplicit-function-declaration] if (!strcasecmp(mode, "single_menu")) ^~~~~~~~~~ Fix it by explicitly including strings.h. Signed-off-by: Bartosz Golaszewski --- scripts/kconfig/mconf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index 49c26ea9dd98..4063dbc1b927 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include -- 2.23.0