From patchwork Thu Jan 11 13:39:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 10158013 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0D369605F8 for ; Thu, 11 Jan 2018 13:39:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE730286E6 for ; Thu, 11 Jan 2018 13:39:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D26E32873F; Thu, 11 Jan 2018 13:39:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F22D28796 for ; Thu, 11 Jan 2018 13:39:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754357AbeAKNj5 (ORCPT ); Thu, 11 Jan 2018 08:39:57 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:21221 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753045AbeAKNj4 (ORCPT ); Thu, 11 Jan 2018 08:39:56 -0500 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-08.nifty.com with ESMTP id w0BDdnaP002436; Thu, 11 Jan 2018 22:39:50 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com w0BDdnaP002436 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1515677990; bh=ipEnNr7Hvpv4uej4jxVX+KcKUHPVnwFlY2AhqCe2HyY=; h=From:To:Cc:Subject:Date:From; b=wXTyT5fyZdLHNj4+XosJsHydsqx583eRTefOuHNN38YQhVYYV06Tq95O2Xrz3EtJG KK/5i1uVcil6EWCS2gP8qWaivo6DHjEmWczm0N/LCuLCGlQ1sa/vr5gMbs2sh43Awm Ho7RTKePcBUa9IZ0dLpNKNp0AMl9RT8tuU9jz9dPR6tX3lIx55NMBD+0sKlw63muAb pwl7EO3xyQXOm5UHPjYOHkfIgjXnik3NQeVcPxfaCJBhoW3MEuFm4Ys76eHOVb6Ez6 P3Ads21uBt+uJqjk253t2yzUDeyQrpeM09jgJ5YzOVvSpvV/5w9hVWvtkDltU32edz S6eYnk+JQUCPQ== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 1/3] kconfig: make input_mode static Date: Thu, 11 Jan 2018 22:39:39 +0900 Message-Id: <1515677981-21952-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Sparse reports: warning: symbol 'input_mode' was not declared. Should it be static? Signed-off-by: Masahiro Yamada --- scripts/kconfig/conf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 8b9cdf4..31c09c6 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -35,7 +35,8 @@ enum input_mode { savedefconfig, listnewconfig, olddefconfig, -} input_mode = oldaskconfig; +}; +static enum input_mode input_mode = oldaskconfig; static int indent = 1; static int tty_stdio;