From patchwork Sat Feb 23 16:49:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 159130 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp211975jad; Sat, 23 Feb 2019 08:49:15 -0800 (PST) X-Google-Smtp-Source: AHgI3IatJG/JXIwkm/P5qeAziv5lhj0S1oFqGYhND6WFdb5eRknz236LyFzMALJ2hGs3wVGKvO0H X-Received: by 2002:a17:902:241:: with SMTP id 59mr10025881plc.72.1550940554981; Sat, 23 Feb 2019 08:49:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550940554; cv=none; d=google.com; s=arc-20160816; b=wp29lwQu59I3e4ltJTfiVvOBR/tDkx0fGfyjH8cV0HzcL9wFKY8mL5Db63g8Se+GmY xz+QQyKxxOrf0g3soxm0IRtcAEniwQEJKq0FCZ0pz/KIDRqnIFHdr4vA+B+4cRszIPco wE1pRItwgsJW6jKhlhvWKKm4Di5PrihkP4GMEmUJ9h/7zM+DV/WiyFYcwgygwzHTIuZf aPR33+/q5jsc2O/PArwTqjPkoLYIoVNpLqp0zvK3dcCLOPj738D4b/9J0h4Se/TvipoD dbJ2QWyGBsruSJvnYgAU4Zsuw1F2ODtqM42ArxjK3oL3KQxm/0e2I10B7ft7Us1MSOfv 2pMg== 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=N0mFarOZ+hfW/4HndBahiMmACz8FU1UBbqvgY7EVEU4=; b=Z/Dt+giaendSF8gGnGC8cNNylGlq9GsEupSvKHGEr3ouh7G7KcUiihoDQ/bC6eOgc2 lP8hTbyZfa3ObQS0f7AHUGuTBUjsx4GXEq3qk0sXXTecD/uJITzfy7T+op7ajFJf/oes dBog4vbSJv06UswrQ1fKFuCasDZ3lKhRYzu30/+Y/tO+r3EcaBEhUdRs+u6PK2wE1jUM YqcEsoWCbtDoIkCHGH0GmllRxmyLhEQeueD8BD4yRiWmyHVLG2u55vDd2Z4uaMRlun26 3sc92u/Cl58tF25wkzXwoP7GaGHSE5i+1jCgKcEgt9GR7/x1FckfwvrYy6r0qylVXiQy 2OjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=XyTCsco6; 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 t65si4400356pfi.61.2019.02.23.08.49.14; Sat, 23 Feb 2019 08:49:14 -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=XyTCsco6; 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 S1727896AbfBWQtN (ORCPT + 32 others); Sat, 23 Feb 2019 11:49:13 -0500 Received: from conuserg-11.nifty.com ([210.131.2.78]:58797 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726154AbfBWQtM (ORCPT ); Sat, 23 Feb 2019 11:49:12 -0500 Received: from grover.tkatk1.zaq.ne.jp (zaqdadce369.zaq.ne.jp [218.220.227.105]) (authenticated) by conuserg-11.nifty.com with ESMTP id x1NGn3xV008650; Sun, 24 Feb 2019 01:49:04 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x1NGn3xV008650 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1550940544; bh=N0mFarOZ+hfW/4HndBahiMmACz8FU1UBbqvgY7EVEU4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XyTCsco6FWQJnsfklci4ItwIzPBXA6kRiflfMC+ROs9ORlDcCImjS/Lsk/cT68cHR TvIEW5LPRZl6fPy3N/4xk4VOpINZECXbShY/Q8URmSLmQE1LHx9bUjQFI9YjsEJQu1 wiNWeVr8tZFP0eQum9uHdNx0949oUyEhmfPu3pNp1lZxha7pR9WFwVnHjzCMlLJFIq bQh+Cn1CHH7Xsrx3VDOMy4BFqzJwe4LUSmWqo7IZ6HW6v11TMpxwWvAMxqOwHpP6vY 5buJAsHBag+Ay9GLt61N7O5BunYttVfPYJMcbyWtNkrRgibMpyU9+17+Ym7LWrC2vC NbNl4Q5SEr1ag== X-Nifty-SrcIP: [218.220.227.105] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] kconfig: fix -Wmissing-prototypes warnings for gconfig Date: Sun, 24 Feb 2019 01:49:00 +0900 Message-Id: <1550940540-28932-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550940540-28932-1-git-send-email-yamada.masahiro@socionext.com> References: <1550940540-28932-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 "make gconfig" produces lots of "warning: no previous prototype". Signed-off-by: Masahiro Yamada --- scripts/kconfig/gconf.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) -- 2.7.4 diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c index a316f6a..a108781 100644 --- a/scripts/kconfig/gconf.c +++ b/scripts/kconfig/gconf.c @@ -405,6 +405,8 @@ static void text_insert_msg(const char *title, const char *message) void on_save_activate(GtkMenuItem * menuitem, gpointer user_data); gboolean on_window1_delete_event(GtkWidget *widget, GdkEvent *event, + gpointer user_data); +gboolean on_window1_delete_event(GtkWidget *widget, GdkEvent *event, gpointer user_data) { GtkWidget *dialog, *label; @@ -448,12 +450,15 @@ gboolean on_window1_delete_event(GtkWidget *widget, GdkEvent *event, return FALSE; } +void on_window1_destroy(GtkObject *object, gpointer user_data); void on_window1_destroy(GtkObject *object, gpointer user_data) { gtk_main_quit(); } void on_window1_size_request(GtkWidget *widget, GtkRequisition *requisition, + gpointer user_data); +void on_window1_size_request(GtkWidget *widget, GtkRequisition *requisition, gpointer user_data) { static gint old_h; @@ -486,6 +491,7 @@ static void load_filename(GtkFileSelection *file_selector, gpointer user_data) display_tree(&rootmenu); } +void on_load1_activate(GtkMenuItem *menuitem, gpointer user_data); void on_load1_activate(GtkMenuItem *menuitem, gpointer user_data) { GtkWidget *fs; @@ -524,6 +530,7 @@ static void store_filename(GtkFileSelection *file_selector, gpointer user_data) gtk_widget_destroy(GTK_WIDGET(user_data)); } +void on_save_as1_activate(GtkMenuItem *menuitem, gpointer user_data); void on_save_as1_activate(GtkMenuItem *menuitem, gpointer user_data) { GtkWidget *fs; @@ -542,12 +549,14 @@ void on_save_as1_activate(GtkMenuItem *menuitem, gpointer user_data) gtk_widget_show(fs); } +void on_quit1_activate(GtkMenuItem *menuitem, gpointer user_data); void on_quit1_activate(GtkMenuItem *menuitem, gpointer user_data) { if (!on_window1_delete_event(NULL, NULL, NULL)) gtk_widget_destroy(GTK_WIDGET(main_wnd)); } +void on_show_name1_activate(GtkMenuItem *menuitem, gpointer user_data); void on_show_name1_activate(GtkMenuItem *menuitem, gpointer user_data) { GtkTreeViewColumn *col; @@ -558,6 +567,7 @@ void on_show_name1_activate(GtkMenuItem *menuitem, gpointer user_data) gtk_tree_view_column_set_visible(col, show_name); } +void on_show_range1_activate(GtkMenuItem *menuitem, gpointer user_data); void on_show_range1_activate(GtkMenuItem *menuitem, gpointer user_data) { GtkTreeViewColumn *col; @@ -574,6 +584,7 @@ void on_show_range1_activate(GtkMenuItem *menuitem, gpointer user_data) gtk_tree_view_column_set_visible(col, show_range); } +void on_show_data1_activate(GtkMenuItem *menuitem, gpointer user_data); void on_show_data1_activate(GtkMenuItem *menuitem, gpointer user_data) { GtkTreeViewColumn *col; @@ -584,6 +595,7 @@ void on_show_data1_activate(GtkMenuItem *menuitem, gpointer user_data) gtk_tree_view_column_set_visible(col, show_value); } +void on_set_option_mode1_activate(GtkMenuItem *menuitem, gpointer user_data); void on_set_option_mode1_activate(GtkMenuItem *menuitem, gpointer user_data) { opt_mode = OPT_NORMAL; @@ -591,6 +603,7 @@ void on_set_option_mode1_activate(GtkMenuItem *menuitem, gpointer user_data) display_tree(&rootmenu); /* instead of update_tree to speed-up */ } +void on_set_option_mode2_activate(GtkMenuItem *menuitem, gpointer user_data); void on_set_option_mode2_activate(GtkMenuItem *menuitem, gpointer user_data) { opt_mode = OPT_ALL; @@ -598,6 +611,7 @@ void on_set_option_mode2_activate(GtkMenuItem *menuitem, gpointer user_data) display_tree(&rootmenu); /* instead of update_tree to speed-up */ } +void on_set_option_mode3_activate(GtkMenuItem *menuitem, gpointer user_data); void on_set_option_mode3_activate(GtkMenuItem *menuitem, gpointer user_data) { opt_mode = OPT_PROMPT; @@ -605,6 +619,7 @@ void on_set_option_mode3_activate(GtkMenuItem *menuitem, gpointer user_data) display_tree(&rootmenu); /* instead of update_tree to speed-up */ } +void on_introduction1_activate(GtkMenuItem *menuitem, gpointer user_data); void on_introduction1_activate(GtkMenuItem *menuitem, gpointer user_data) { GtkWidget *dialog; @@ -635,6 +650,7 @@ void on_introduction1_activate(GtkMenuItem *menuitem, gpointer user_data) gtk_widget_show_all(dialog); } +void on_about1_activate(GtkMenuItem *menuitem, gpointer user_data); void on_about1_activate(GtkMenuItem *menuitem, gpointer user_data) { GtkWidget *dialog; @@ -652,6 +668,7 @@ void on_about1_activate(GtkMenuItem *menuitem, gpointer user_data) gtk_widget_show_all(dialog); } +void on_license1_activate(GtkMenuItem *menuitem, gpointer user_data); void on_license1_activate(GtkMenuItem *menuitem, gpointer user_data) { GtkWidget *dialog; @@ -670,6 +687,7 @@ void on_license1_activate(GtkMenuItem *menuitem, gpointer user_data) gtk_widget_show_all(dialog); } +void on_back_clicked(GtkButton *button, gpointer user_data); void on_back_clicked(GtkButton *button, gpointer user_data) { enum prop_type ptype; @@ -684,11 +702,13 @@ void on_back_clicked(GtkButton *button, gpointer user_data) gtk_widget_set_sensitive(back_btn, FALSE); } +void on_load_clicked(GtkButton *button, gpointer user_data); void on_load_clicked(GtkButton *button, gpointer user_data) { on_load1_activate(NULL, user_data); } +void on_single_clicked(GtkButton *button, gpointer user_data); void on_single_clicked(GtkButton *button, gpointer user_data) { view_mode = SINGLE_VIEW; @@ -697,6 +717,7 @@ void on_single_clicked(GtkButton *button, gpointer user_data) display_tree_part(); } +void on_split_clicked(GtkButton *button, gpointer user_data); void on_split_clicked(GtkButton *button, gpointer user_data) { gint w, h; @@ -713,6 +734,7 @@ void on_split_clicked(GtkButton *button, gpointer user_data) gtk_widget_set_sensitive(back_btn, FALSE); } +void on_full_clicked(GtkButton *button, gpointer user_data); void on_full_clicked(GtkButton *button, gpointer user_data) { view_mode = FULL_VIEW; @@ -723,11 +745,13 @@ void on_full_clicked(GtkButton *button, gpointer user_data) gtk_widget_set_sensitive(back_btn, FALSE); } +void on_collapse_clicked(GtkButton *button, gpointer user_data); void on_collapse_clicked(GtkButton *button, gpointer user_data) { gtk_tree_view_collapse_all(GTK_TREE_VIEW(tree2_w)); } +void on_expand_clicked(GtkButton *button, gpointer user_data); void on_expand_clicked(GtkButton *button, gpointer user_data) { gtk_tree_view_expand_all(GTK_TREE_VIEW(tree2_w)); @@ -836,6 +860,9 @@ static gint column2index(GtkTreeViewColumn *column) /* User click: update choice (full) or goes down (single) */ gboolean on_treeview2_button_press_event(GtkWidget *widget, GdkEventButton *event, + gpointer user_data); +gboolean on_treeview2_button_press_event(GtkWidget *widget, + GdkEventButton *event, gpointer user_data) { GtkTreeView *view = GTK_TREE_VIEW(widget); @@ -892,6 +919,8 @@ gboolean on_treeview2_button_press_event(GtkWidget *widget, /* Key pressed: update choice */ gboolean on_treeview2_key_press_event(GtkWidget *widget, GdkEventKey *event, + gpointer user_data); +gboolean on_treeview2_key_press_event(GtkWidget *widget, GdkEventKey *event, gpointer user_data) { GtkTreeView *view = GTK_TREE_VIEW(widget); @@ -934,6 +963,7 @@ gboolean on_treeview2_key_press_event(GtkWidget *widget, GdkEventKey *event, } /* Row selection changed: update help */ +void on_treeview2_cursor_changed(GtkTreeView *treeview, gpointer user_data); void on_treeview2_cursor_changed(GtkTreeView *treeview, gpointer user_data) { GtkTreeSelection *selection; @@ -950,6 +980,9 @@ void on_treeview2_cursor_changed(GtkTreeView *treeview, gpointer user_data) /* User click: display sub-tree in the right frame. */ gboolean on_treeview1_button_press_event(GtkWidget *widget, GdkEventButton *event, + gpointer user_data); +gboolean on_treeview1_button_press_event(GtkWidget *widget, + GdkEventButton *event, gpointer user_data) { GtkTreeView *view = GTK_TREE_VIEW(widget);