Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18063309rwd; Tue, 27 Jun 2023 11:04:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76MV7ZlNHFxqM2mYvLONuX2mBejGilCVpRECMZpofrWraPfcZxlcxrAYuaun5dJA3aJF9h X-Received: by 2002:a05:6a20:1441:b0:126:81ef:f18d with SMTP id a1-20020a056a20144100b0012681eff18dmr12322907pzi.40.1687889040642; Tue, 27 Jun 2023 11:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687889040; cv=none; d=google.com; s=arc-20160816; b=CyTGspaHBHZSzrZ/XLY+CB/XXWcqPi8l+O3e9e2yjEehV92CvGOvJABUk8oR097Fqq DZShfj3RC+FerVTxgXu5fdoMjla6op1Uoa4VJDeAuNZVD2o+dHW1DMR2zv9AQB1vB9by tjIO+UW6iNa48k1vClFN90UluMMP8ETcKI+OsbIpgyOPdWZ5ssE08eZLimJaf8P4ykM4 Ehiyq90uwvTU5BX2NNSnIW22vmU31KWEa+AKpte4E1h+G7INuwCPLu+z4FbSuIGH5iRg dysLQHW05LJgQKg9uk8Ei26ancw37hrGKrhjC1AWZY9NIDPPgM0qgygZsnbU6XcTan7l rPVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=x3w5sfT+SX24Hb6tDlc+w2fwwhsuQ2PKsaoAzUuDj7k=; fh=yRByxnP5/9M7MoUVako0Ob1+pYVfB+guJQKr8MmAsZ0=; b=o3Ztco6xk+HdG7Mm+kv/R0W1eYprKgy81tjBJuVdvuOu0lF/mm/Y+WO84jQij3eAAE AWbP+DuOBWJKzW27+YbqzEdIHVKiHjB5msjI1ghNqsuzJKCBncBcRaVLVnVpGKcpqJGM GSzI/FyO/Ryidr1FjJ/GnymPzGhqduhvmptMkWPDu7tRDbajJlzHiMlNqAcczAa4IKuK joa3HbcYNzkPzkhOcc4ICfsdFWbRBdF1Bwft2wcnTfidtiXjKGs+pQMMXk6jxmTNMpu7 +OdhYPZcA0sqT3cHv66uCQMavPuFFW4hGXwyw1AKYvpIgmyY38CCrRwZJy/wCxo3PF7u Q2iQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s20-20020a056a00195400b0066882062113si4698685pfk.9.2023.06.27.11.03.47; Tue, 27 Jun 2023 11:04:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231822AbjF0Ruz (ORCPT + 99 others); Tue, 27 Jun 2023 13:50:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230056AbjF0Ruw (ORCPT ); Tue, 27 Jun 2023 13:50:52 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 664A5EC; Tue, 27 Jun 2023 10:50:51 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.2.0) id 69a6c5d9f6858510; Tue, 27 Jun 2023 19:50:49 +0200 Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id 209BD6603CA; Tue, 27 Jun 2023 19:50:49 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux PM Cc: LKML , Randy Dunlap , Zhang Rui , Artem Bityutskiy , Arjan van de Ven Subject: [PATCH v1] intel_idle: Add __init annotation to matchup_vm_state_with_baremetal() Date: Tue, 27 Jun 2023 19:50:48 +0200 Message-ID: <12236592.O9o76ZdvQC@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedrtddtgdejgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpeffffffkefgheehffelteeiveeffeevhfelteejvddvieejjeelvdeiheeuveeuffenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeeipdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprhguuhhnlhgrphesihhnfhhrrgguvggrugdrohhrghdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhmpdhrtghpthhtoheprghrthgvmhdrsghithih uhhtshhkihihsehlihhnuhigrdhinhhtvghlrdgtohhmpdhrtghpthhtoheprghrjhgrnheslhhinhhugidrihhnthgvlhdrtghomh X-DCC--Metrics: v370.home.net.pl 1024; Body=6 Fuz1=6 Fuz2=6 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki The caller of (recently added) matchup_vm_state_with_baremetal() is an __init function and it uses some __initdata data structures, so add the __init annotation to it for consistency. This addresses the following build warnings: WARNING: modpost: vmlinux: section mismatch in reference: matchup_vm_state_with_baremetal+0x51 (section: .text) -> intel_idle_max_cstate_reached (section: .init.text) WARNING: modpost: vmlinux: section mismatch in reference: matchup_vm_state_with_baremetal+0x62 (section: .text) -> cpuidle_state_table (section: .init.data) WARNING: modpost: vmlinux: section mismatch in reference: matchup_vm_state_with_baremetal+0x79 (section: .text) -> icpu (section: .init.data) Fixes: 0fac214bb75e ("intel_idle: Add a "Long HLT" C1 state for the VM guest mode") Reported-by: Randy Dunlap Signed-off-by: Rafael J. Wysocki --- drivers/idle/intel_idle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-pm/drivers/idle/intel_idle.c =================================================================== --- linux-pm.orig/drivers/idle/intel_idle.c +++ linux-pm/drivers/idle/intel_idle.c @@ -2147,7 +2147,7 @@ static void __init intel_idle_cpuidle_de * All our short idle states are dominated by vmexit/vmenter latencies, * not the underlying hardware latencies so we keep our values for these. */ -static void matchup_vm_state_with_baremetal(void) +static void __init matchup_vm_state_with_baremetal(void) { int cstate;