Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18231467rwd; Tue, 27 Jun 2023 13:47:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6eqGepcZzQNdqQEplt0iWzilxx5KYIrXvW53u8kn3y7LvJ6T+w6GU/iEZEP7+py1YeLvbI X-Received: by 2002:aa7:d898:0:b0:51d:8f9f:8dc3 with SMTP id u24-20020aa7d898000000b0051d8f9f8dc3mr6663753edq.12.1687898831319; Tue, 27 Jun 2023 13:47:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687898831; cv=none; d=google.com; s=arc-20160816; b=IXqr/vixOZlBvEyDBiNgJYEz8Qy7KvdXcuClk9jp7IhqIKY7iY4D4vdHbA+44A1qAJ 4MWZ1thdTEyY99et1KZh9Th29/MDXe4+XnChi10Zs7EkdXtEKggTpDGi+PsLXFSA2gmh llwmpvjFIh/mqwgQ0YJArorhD+zsXgq+/wtR2usIo0KWTiVvPg6RAet0sb75Tfx2ekcc zqGQzxtwt++vRpfkxHcRFUBOyPRg4Bw3cuzbZIi0dyXvh1OEPe6CQKUnbQwShpKJnByY Pq9Q8Sqh7aXCJj72jMS9vGqilZ8l6/9zHmjyMfJp/H/5U3WySHtQ2e/3/PMvnsgfwW5e ucOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=X69Ch/oAeacF2RzcUXPsx9JeM7nGU2SUlR9C8WX3gbU=; fh=6rvgvFP2fk1dmwEQpeWxRR1C6a0CLvqe3oudRGsGOV8=; b=N5HpMfR107QiIQlnGEQaUj1m6ALOOH7J5PZF1kVXEYebw0ZZVebvJh9gPTSSriN/Dy Pn5dWxQL90OhVYyAygMDX0lm5G95ylm87ULHlT4LGuXTFFy70dwVk1FpD4UrBDAe/rcu qWR05L4BorsrwLEiW340BqmwyTsFBP6uvDfX87YBQNJBfxzZ8lGuuBd0S1+AWajbH0aq qqN1D7yREtjrlhEzrJN6QEwug3T7d3w4RV7LoO4vrR3GYTVBlecp8Q/9kUYU15ENdWij O4OwPMiyx6agqdsuTD69FF71jR6UnvnbVQxrAT8cMXlzkPVgXphuivNEu5dAOG6Rm2Ub FPxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=I+hzAQgR; 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 h7-20020a50ed87000000b0051a1ef427ddsi4461915edr.190.2023.06.27.13.46.47; Tue, 27 Jun 2023 13:47:11 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=I+hzAQgR; 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 S230311AbjF0UGU (ORCPT + 99 others); Tue, 27 Jun 2023 16:06:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229813AbjF0UGT (ORCPT ); Tue, 27 Jun 2023 16:06:19 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A96B12120; Tue, 27 Jun 2023 13:06:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=X69Ch/oAeacF2RzcUXPsx9JeM7nGU2SUlR9C8WX3gbU=; b=I+hzAQgRZkLwXYo0RNQgWI9q33 ANHp+brDZuhwfMDmlzS8mGQukA6sUrM7kebofUds9HAL/CK1sOMzRmB5nukEIFVbnlM3Yh3bsVw9P wLHB0ZB7oXN/Mz0tFIrX4ItrHIKaUbMUdOKbosEv4y6yBTdsiCmutRmH0wEhO93kCqBm/QSlvQqg2 VJu28RXTmakA3FyFp8g1mc/C1D9OFxSbS9z4LVGDjVREdVlHlSKMgVmq5EIta7eD5tlLVsiBf0LVi XX+7Wh14NZ/K94UQMIJmgHZgG3lTYETiL3gsrfrkcbFkQQMWGpyNxJLSa/HLA2VPeVQaoI//lasWx WnGrCAEA==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qEEx7-00E1l9-0X; Tue, 27 Jun 2023 20:06:17 +0000 Message-ID: Date: Tue, 27 Jun 2023 13:06:16 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v1] intel_idle: Add __init annotation to matchup_vm_state_with_baremetal() Content-Language: en-US To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Zhang Rui , Artem Bityutskiy , Arjan van de Ven References: <12236592.O9o76ZdvQC@kreacher> From: Randy Dunlap In-Reply-To: <12236592.O9o76ZdvQC@kreacher> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 6/27/23 10:50, Rafael J. Wysocki wrote: > 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 Tested-by: Randy Dunlap # build-tested Reviewed-by: Randy Dunlap 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; > > > > -- ~Randy