From patchwork Thu Mar 31 11:53:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Damien Hedde X-Patchwork-Id: 1611717 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=greensocs.com header.i=@greensocs.com header.a=rsa-sha256 header.s=mail header.b=YrfhmoFB; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KThpy6lnTz9sG8 for ; Thu, 31 Mar 2022 23:06:17 +1100 (AEDT) Received: from localhost ([::1]:46982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZtZ7-0007C0-LQ for incoming@patchwork.ozlabs.org; Thu, 31 Mar 2022 08:06:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZtMl-00063Y-4v for qemu-devel@nongnu.org; Thu, 31 Mar 2022 07:53:28 -0400 Received: from beetle.greensocs.com ([5.135.226.135]:54116) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZtMi-00007D-Of for qemu-devel@nongnu.org; Thu, 31 Mar 2022 07:53:26 -0400 Received: from crumble.bar.greensocs.com (unknown [172.17.10.10]) by beetle.greensocs.com (Postfix) with ESMTPS id A5D0B21EBC; Thu, 31 Mar 2022 11:53:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greensocs.com; s=mail; t=1648727594; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qxbod3xZWrGi3iOaENzr5nszU8j+mKdrSWBJDsqTqlo=; b=YrfhmoFB9S2VnL/AXQLjMvVbIsXfbIx6+tYeP8apYBWPT8dQDY72F0B4wk6w0VBsF6bsZQ W1InRHSjZ8eyylLlakzsdCSnU7lWjDIKbd9TAMp6cUAbtT6tRSKUZtZea9qebxZTrWvwUd YxdABKedLwA92U6RC+SBaitQxT+ttII= From: Damien Hedde To: qemu-devel@nongnu.org Subject: [PATCH v2 5/5] machine: remove temporary inline functions Date: Thu, 31 Mar 2022 13:53:12 +0200 Message-Id: <20220331115312.30018-6-damien.hedde@greensocs.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220331115312.30018-1-damien.hedde@greensocs.com> References: <20220331115312.30018-1-damien.hedde@greensocs.com> MIME-Version: 1.0 Received-SPF: pass client-ip=5.135.226.135; envelope-from=damien.hedde@greensocs.com; helo=beetle.greensocs.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Damien Hedde , Eduardo Habkost , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , =?utf-8?q?Phil?= =?utf-8?q?ippe_Mathieu-Daud=C3=A9?= , Yanan Wang , Paolo Bonzini Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Now we have renamed all calls to these old functions, we can delete the temporary inline we've defined. Signed-off-by: Damien Hedde Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Edgar E. Iglesias --- include/hw/boards.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/hw/boards.h b/include/hw/boards.h index 1814793175..7efba048e9 100644 --- a/include/hw/boards.h +++ b/include/hw/boards.h @@ -52,11 +52,6 @@ void machine_parse_smp_config(MachineState *ms, * it will get an error message. */ void machine_class_allow_dynamic_device(MachineClass *mc, const char *type); -static inline void machine_class_allow_dynamic_sysbus_dev(MachineClass *mc, - const char *type) -{ - machine_class_allow_dynamic_device(mc, type); -} /** * device_type_is_dynamic_allowed: Check if type is an allowed device @@ -72,11 +67,6 @@ static inline void machine_class_allow_dynamic_sysbus_dev(MachineClass *mc, * Note that if @type has a parent type in the list, it is allowed too. */ bool device_type_is_dynamic_allowed(MachineClass *mc, const char *type); -static inline bool device_type_is_dynamic_sysbus(MachineClass *mc, - const char *type) -{ - return device_type_is_dynamic_allowed(mc, type); -} /** * device_is_dynamic_sysbus: test whether device is a dynamic sysbus device