Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp140857lqj; Sat, 1 Jun 2024 11:21:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVghT8FnyVy07/JtvFzsNwLyl3c4TC5x1HWKaPIuURIugJf8qc5mDX+GKv1yP0QQ110kluTmC2a4DeEjMXIFcyCZhAytsje+Wv0VIvCWA== X-Google-Smtp-Source: AGHT+IE6hYp44GL2h0iD4Jpq0G8aNuS4mF5BhyesQHmQtR1Yt5mlqroHePS8msrAybQYXziXnmiU X-Received: by 2002:a17:902:db08:b0:1f4:7a5c:65d4 with SMTP id d9443c01a7336-1f636ffe5aamr58206025ad.18.1717266101611; Sat, 01 Jun 2024 11:21:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717266101; cv=pass; d=google.com; s=arc-20160816; b=ty4xl2/70fdqq8otQpN4e3fKsSDHHlGlFLPWEsI+redzozP6yqJDG3LTLH/NP62oAG UelyDdxPeP7Imm+P8qx/Z5NqGJVrWeSnoLHCgAfST0oaTBUWrS+zOmhCAlBLiopl0TS6 3WtTeoudQwCPmkd4U/celzIg/CAkjOkH7EcUU/VTurcJHMT11IdONdJriIQBJD/wsLjV uIy2X/OzVD3szni+WFPFJ2TXAqFbIPLGxxz3s6UYDODty5LNP7qkdSzv/YgH1dzIYLog G6f9z+Y06xRMcshb0Ytw9LN/MNl0bU2f7yxaJ86UuF31jRzpBCb/g9AOCzB4FNQojiaw DL2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=WbD2P9iN8ZKydM7nZezsdamK1hjJkRUnpFnRDY+xboM=; fh=oQbvuNnOUeIuBT5siQdg+euUHNNdn+CeEwAg69/1RSo=; b=kUgfsjo5D6HSPFvEqR66lGFGQNvSrkeDdjwVhQIcRdJBYRu9vt2F69wMUCHQCjia2Z mz//wVp3lqqJ/wxOepVE6hWm5cPK1P9xLJ1BdJ9ouNoxeLLBtUWF4v0D0N8D0tzhQS8O DJL42puTLliduw4+Fk2k3xRu5AxVCE27ZTiLeXwjflf6q0NIQe3KiK7sHrCU0/RcIaKs nqM2pB+RfxI2nusgThSbnSY0CbMjRMaFvU4PrbwXMTZWpsLR98KCPTVEPHidGedEjFy2 EQQBpXbfXlZk/SN45HTE+t34khd49tjAfzy+Cc1LDf5AHnFiyyt0xBmypeUqCbZYX6Ii TnIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H28dpMds; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f63235fde4si37326835ad.136.2024.06.01.11.21.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 11:21:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H28dpMds; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DAC1228244D for ; Sat, 1 Jun 2024 18:21:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9697215533E; Sat, 1 Jun 2024 18:20:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H28dpMds" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF698155327; Sat, 1 Jun 2024 18:20:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717266054; cv=none; b=g6Z+N83wGDIk38IDf/6TbUsXFR6g7LXaCBR5xBvoR9uZmZlGKFdI8YHPU6z3/FE7Y0wc8HyOYE8aaC3Q4h2qEx2DZJWS1dytctm8PBcJSkxe5aDVzvWLGOcrsw1rDroElP4lPb0eSVKZRvB1i8r8pdshXsY5QE6XmIPXtt+8e+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717266054; c=relaxed/simple; bh=mO0aels7OLVhPoOj+vZK1tWzWjD3YuYz/mu5G7G94go=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oexVnuB/NXrGJzGzaS88hPQlJC1OlHGj85460r71veQQxMMs0pfNR3S5QJxKsuRVMrKslRCBex7tR4POxm0e+nMYB6CpsWg8oToyO3ptt0n+BQgjuAXXfsdMCyL8ZXmc3L8ZaeV7QoPPPiVaXhEFwEMwFYFIwp60y9t/kdvSUPc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H28dpMds; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C9D1C32789; Sat, 1 Jun 2024 18:20:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717266054; bh=mO0aels7OLVhPoOj+vZK1tWzWjD3YuYz/mu5G7G94go=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H28dpMdsv+2tlK0TdruUkMCkE/pCswQJqGO+jUgzwyEdQXKUSeP94GzNr3YiW/QJr zmGa918tH0FJjx4vseXK2V/1CLqD9+prDAoFCkSvWhbU+btq+CLjlZFv1Zw/xYA0gS CuaE2WCT7FpcwMOWun7InmRo84qv+fjZqWiXcu0wPfCjDU/A+g/LOzlYRU86AZlwld bj68tfU5X7Cb+OBjeHI3AQmyNBRieDIQ4S4MQv9ZURXI/X3BWsXfL+Vpo3LGiDDXy2 jamskemw/jhT1CfQa9Mc7+yCo+oSysn3sQmPFTE69Qqr/7ax/q4puerC0jgvAE3gGY 3F9qgc6kW5QFQ== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 5/6] kconfig: gconf: move conf_changed() definition up Date: Sun, 2 Jun 2024 03:20:42 +0900 Message-Id: <20240601182043.876249-5-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240601182043.876249-1-masahiroy@kernel.org> References: <20240601182043.876249-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Define conf_changed() before its call site to remove the forward declaration. Signed-off-by: Masahiro Yamada --- scripts/kconfig/gconf.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c index 3dc459d9840c..2bf74aee5eff 100644 --- a/scripts/kconfig/gconf.c +++ b/scripts/kconfig/gconf.c @@ -65,7 +65,6 @@ static void display_list(void); static void display_tree(struct menu *menu); static void display_tree_part(void); static void update_tree(struct menu *src, GtkTreeIter * dst); -static void conf_changed(void); static void replace_button_icon(GladeXML *xml, GdkDrawable *window, GtkStyle *style, gchar *btn_name, gchar **xpm) @@ -85,6 +84,13 @@ static void replace_button_icon(GladeXML *xml, GdkDrawable *window, gtk_tool_button_set_icon_widget(button, image); } +static void conf_changed(void) +{ + bool changed = conf_get_changed(); + gtk_widget_set_sensitive(save_btn, changed); + gtk_widget_set_sensitive(save_menu_item, changed); +} + /* Main Window Initialization */ static void init_main_window(const gchar *glade_file) { @@ -1445,10 +1451,3 @@ int main(int ac, char *av[]) return 0; } - -static void conf_changed(void) -{ - bool changed = conf_get_changed(); - gtk_widget_set_sensitive(save_btn, changed); - gtk_widget_set_sensitive(save_menu_item, changed); -} -- 2.40.1