From patchwork Fri Dec 21 08:33:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 154378 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp646642ljp; Fri, 21 Dec 2018 00:33:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/VwyNvaZV2GXTfOPopKARxw0Me/IhqI1rj5/g1ARjTdTQghueDBaFO5WP1IyxUCsGD6DdBK X-Received: by 2002:a62:4714:: with SMTP id u20mr1579308pfa.144.1545381212666; Fri, 21 Dec 2018 00:33:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545381212; cv=none; d=google.com; s=arc-20160816; b=IQPFfGQ5g/AcOi325FhUSxgc5qBfk7YCV2ZQdzFoJ19zX4SoBDDEE6uPa0Ne7i1I6F naAa/k7LHrFZujnIxeubSBXHIAtESayK5qupsgnym1vhpkWVDZeilKCgI0KAMxVU6ysE QZCsdybIEBz3YHsvT+Rd+hGRxhO3yvmTIWRaXCJ3quvTJ7D9aa4Byn88IbkkjaiFO0xj xEi/W3Oj+dVrg73tCOrCzVLnOj6YIMO6fF40iPWzE0jvlr8ee/s7V/xKjSi1uVCjI3/D HVMNP/MlIqO7eUkUqgA9QEQIlEWQH+uzy90RDsji1oPECD5NcJ30OWIrEut6xSKWWCz0 u6dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=6KtmSy+aamATmax2umX8Hgg8oZJ8Fh5fG9A7a5e+JtU=; b=eLgNoyI3JMl6w22zkk9TSHgoAlZfIiwwOryvsoG2xK0VqmaXw9OdNI3iE8q4jv+Gax ObV3j+VpuDR1sWcWvGXgV7EYRZXC3HBe0CdsE0cusprpL4jFKkfkwJyrtv2HzLkBZWzC csuR4zJphEN+pdBVg69XWtjBStFFRj3xN7lEX/28gBPHQr3RIUPQNruy8pq0xAVySqsN d3J6GhhiIm434kIZds/nI1wvuqdRgtbws/rafEk/5fC8W1a5tBCHAH1lTnFXnc/lhgPR GHAq253A0srssjrsLR9MBH7v9o24kglDy9eNl6ZZMYnieVOfVeR3SobkeWY4yhHcOwW8 PsRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=yuwRxhc4; 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 30si10924408pgv.191.2018.12.21.00.33.32; Fri, 21 Dec 2018 00:33:32 -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=@nifty.com header.s=dec2015msa header.b=yuwRxhc4; 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 S2387929AbeLUIda (ORCPT + 31 others); Fri, 21 Dec 2018 03:33:30 -0500 Received: from conuserg-12.nifty.com ([210.131.2.79]:38269 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725799AbeLUId3 (ORCPT ); Fri, 21 Dec 2018 03:33:29 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id wBL8XAI9008714; Fri, 21 Dec 2018 17:33:11 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com wBL8XAI9008714 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1545381192; bh=6KtmSy+aamATmax2umX8Hgg8oZJ8Fh5fG9A7a5e+JtU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yuwRxhc4LBqKuRHpR1Pecua2/FjybeOzxhht4RhoDlh9vOoX4MOPFP7YXk2CNRUSK djt4g1USNUmG272pOmkw4ltvaYH2m/NiKzcEzhuu2S/g4KGg6MSH8k+hc0/GoAGgvr BnfYnTnZHH83plZbnBWYuMlNGEA81WT7P6/ZGDqDy2OuFJaqo27GRzBwKWeMSGzhN0 nZvRGdAD3ueQOJ8ITOVwDgPqTSXngDZyvRbOo10awjJrFN6DG/RN18Num9iz1Mv+8p hebJy6ohokjiD2jtd1O7deTu0vDtSusTx+vpC7/UxsVh9EAqDFfmwZ43HkVTqLg3mx KKPiBD7M2+VVg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 3/5] kconfig: add static qualifiers to fix gconf warnings Date: Fri, 21 Dec 2018 17:33:06 +0900 Message-Id: <1545381188-514-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1545381188-514-1-git-send-email-yamada.masahiro@socionext.com> References: <1545381188-514-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add "static" to functions that are locally used in gconf.c This fixes some "no previous prototype for ..." warnings. Signed-off-by: Masahiro Yamada --- scripts/kconfig/gconf.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) -- 2.7.4 diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c index 14fc0fa..2d4e5a1 100644 --- a/scripts/kconfig/gconf.c +++ b/scripts/kconfig/gconf.c @@ -76,7 +76,7 @@ static void conf_changed(void); /* Helping/Debugging Functions */ -const char *dbg_sym_flags(int val) +static const char *dbg_sym_flags(int val) { static char buf[256]; @@ -106,8 +106,8 @@ const char *dbg_sym_flags(int val) return buf; } -void replace_button_icon(GladeXML * xml, GdkDrawable * window, - GtkStyle * style, gchar * btn_name, gchar ** xpm) +static void replace_button_icon(GladeXML *xml, GdkDrawable *window, + GtkStyle *style, gchar *btn_name, gchar **xpm) { GdkPixmap *pixmap; GdkBitmap *mask; @@ -125,7 +125,7 @@ void replace_button_icon(GladeXML * xml, GdkDrawable * window, } /* Main Window Initialization */ -void init_main_window(const gchar * glade_file) +static void init_main_window(const gchar *glade_file) { GladeXML *xml; GtkWidget *widget; @@ -187,7 +187,7 @@ void init_main_window(const gchar * glade_file) gtk_widget_show(main_wnd); } -void init_tree_model(void) +static void init_tree_model(void) { gint i; @@ -217,7 +217,7 @@ void init_tree_model(void) model1 = GTK_TREE_MODEL(tree1); } -void init_left_tree(void) +static void init_left_tree(void) { GtkTreeView *view = GTK_TREE_VIEW(tree1_w); GtkCellRenderer *renderer; @@ -259,7 +259,7 @@ static void renderer_edited(GtkCellRendererText * cell, const gchar * path_string, const gchar * new_text, gpointer user_data); -void init_right_tree(void) +static void init_right_tree(void) { GtkTreeView *view = GTK_TREE_VIEW(tree2_w); GtkCellRenderer *renderer; @@ -1209,8 +1209,8 @@ static GtkTreeIter found; /* * Find a menu in the GtkTree starting at parent. */ -GtkTreeIter *gtktree_iter_find_node(GtkTreeIter * parent, - struct menu *tofind) +static GtkTreeIter *gtktree_iter_find_node(GtkTreeIter *parent, + struct menu *tofind) { GtkTreeIter iter; GtkTreeIter *child = &iter; @@ -1421,7 +1421,7 @@ static void display_list(void) tree = tree2; } -void fixup_rootmenu(struct menu *menu) +static void fixup_rootmenu(struct menu *menu) { struct menu *child; static int menu_cnt = 0;