Message ID | 12236592.O9o76ZdvQC@kreacher |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp8383484vqr; Tue, 27 Jun 2023 11:12:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7j7nL2kTfil6CARAIEGNNTG3nuhIul44q/3X781mBF1Qhe5Z2ZWgsxhbrqaCkiujnGqiVb X-Received: by 2002:a17:902:b193:b0:1a5:150f:8558 with SMTP id s19-20020a170902b19300b001a5150f8558mr10000679plr.17.1687889528532; Tue, 27 Jun 2023 11:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687889528; cv=none; d=google.com; s=arc-20160816; b=uPOywc2tX97OWKtYlzG3Cx9Supmq9YcJI8qrbzhRmWrpimRminnDWL8P7NICYv8nrQ CxKQ7tPCkrwiQBER8om9rzT77KkCFhxg35P9RrAJ+unkoWXFgbnA8GFCrdpplqVpM2OV mEvO6BIdZl/avNBWoUgngq9kGsLp9wwKZLGoVrbYSwU2rHFVkJsNfAWWcesJLABHxR8P 5QNBm7xv7+e3zAsRyKk9srwTe8IAdxKfAobJohcqz6+wGLSKbHJkd8DE6eEaD6oeiMFR UnekVXcV4wwnHiCgBRxa/ViGDzzZ69SdSSPb33wkI8I2Zh647gAZp4uql3zGxh1Tr1hz foCA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w16-20020a170902e89000b001b81a112f9bsi2225952plg.586.2023.06.27.11.11.54; Tue, 27 Jun 2023 11:12:08 -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 S230040AbjF0Ruz (ORCPT <rfc822;nicolai.engesland@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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" <rjw@rjwysocki.net> To: Linux PM <linux-pm@vger.kernel.org> Cc: LKML <linux-kernel@vger.kernel.org>, Randy Dunlap <rdunlap@infradead.org>, Zhang Rui <rui.zhang@intel.com>, Artem Bityutskiy <artem.bityutskiy@linux.intel.com>, Arjan van de Ven <arjan@linux.intel.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769880450373012332?= X-GMAIL-MSGID: =?utf-8?q?1769880450373012332?= |
Series |
[v1] intel_idle: Add __init annotation to matchup_vm_state_with_baremetal()
|
|
Commit Message
Rafael J. Wysocki
June 27, 2023, 5:50 p.m. UTC
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com> 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 <rdunlap@infradead.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> --- drivers/idle/intel_idle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 6/27/23 10:50, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki <rafael.j.wysocki@intel.com> > > 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 <rdunlap@infradead.org> > Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Thanks. > --- > 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; > > > >
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;