Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp959008rwb; Thu, 8 Dec 2022 05:15:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf5gKFIFqOXH5JmExhj4XQo7XfdaClp1OhiCRKj9kk6XxM0/Jr3OfWjkGq9Ph/dT5KDpNoZO X-Received: by 2002:aa7:d5c4:0:b0:46a:af31:7c4f with SMTP id d4-20020aa7d5c4000000b0046aaf317c4fmr51441801eds.320.1670505307931; Thu, 08 Dec 2022 05:15:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670505307; cv=none; d=google.com; s=arc-20160816; b=ZF0exQPrZxyEwFslvwmSxg22QO0o3IlNrSej1VBifZNQ2Dx+Z3ucCaqBww+Hs419Sr koTzgnOdVGP0mflwV8hMd8doQq5KlGjBYNHhbfES2lh24QhztE53BSIOTFWuuow+K0Uh cfMS7FQI34AmxsncpbDsu5h4CRxrA8muqk/Mj2RAjgnnb22dyHVh1F4AaXQWKwDBD4B9 kKF0FKSDG1Ha9hFlYB35Hqy9iQyMOoHgHjq7+siac5WVp0vxBhWgH/zBTPCY7v0JmwFE 0qdKfYVIH+AQwGoA8toCo9hhQscLzKtv0u9OMiA/k77n+U6tPqRMaaXrmCGY9VojKJtz QTtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=hf8w5dCI8SN8jx8p/uI1zYTlW+tlmcbclme8iwGq8uU=; b=lh5gIFPu9jADwpc/eZX5rrPy5oxZB3wyqh7Eb+My41qu2Py82lq1Kgapv30MUa+T64 18XT7WWUANjGV/3+WLKCF9s+T2BU+wRDNkyw7lxzUYCnElCQcg3M2KwmbhneXyAMcLoP QktUB3WVOh8o3LeEmunvP+nWl6d6z/6rXGAF3Nawr76L/N8bSNO98rAaxYN4H+vN5zya GN6voLhc8wr+5xWHwMFBPsLaNwfVXYv1m7Efe59QqDhktDoRsDnEg0ZyzBKwKSSRe0WN 8gxvhp8lamuWGp2We+wWB+oHf1OWJeZVuvAZw/fTGpxnyF0982ZHMPsv9raLWxNFZybu zdGg== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w13-20020a05640234cd00b0046af9fdf3f5si7282596edc.282.2022.12.08.05.14.50; Thu, 08 Dec 2022 05:15:07 -0800 (PST) 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229977AbiLHNCI (ORCPT + 72 others); Thu, 8 Dec 2022 08:02:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbiLHNCG (ORCPT ); Thu, 8 Dec 2022 08:02:06 -0500 Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D43E78E598; Thu, 8 Dec 2022 05:02:05 -0800 (PST) Received: by mail-qv1-f53.google.com with SMTP id q10so873563qvt.10; Thu, 08 Dec 2022 05:02:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hf8w5dCI8SN8jx8p/uI1zYTlW+tlmcbclme8iwGq8uU=; b=wd5FB4RIxl89kOS5bHWyvVXfoRTfmHqUwjNyXztcJaSy47513H/Reacrc4L/VPrsV0 AF0Bv4P/crZ70uLE7T5Kll9ItDNj8z0Ok+YrWOCsTwcyFwNl+mUgKWogJu7QR4+I3nh6 2cZZugSOYPHNuoruktktU2z2Qjg+8Lsax/I9hdDTyjKaH7HnEyKmN4VkKY07nm6plobL LnEgkCFTcN9SVppy/k9oU5/HF1VdW586HDZs4zTBbFLMKOH/iAa7p5gJLxDKU9Pr4AbW EupGUffJxUFRWiJSJp45YuVEZiU5BBlh3VH3X7ZJMYiE2CJAqXEuNVR9zrmL9JPIlNYT D7Gw== X-Gm-Message-State: ANoB5pnFCsynEnXFNrlxZdeRrPISWnBUXbPc+N4BhN51pVR4Fg/UftMN a3dlG5apVs+HSYHyON1WOFQu6Ez+ncjVo4EgaQgOF+PD X-Received: by 2002:a05:6214:2b90:b0:4c7:27cf:dfca with SMTP id kr16-20020a0562142b9000b004c727cfdfcamr28403564qvb.3.1670504524902; Thu, 08 Dec 2022 05:02:04 -0800 (PST) MIME-Version: 1.0 References: <1670416895-50172-1-git-send-email-lirongqing@baidu.com> <080936167059.CAJZ5v0g5kTRE+x-8xC2WwQr11j01ox=Nk0aguiC1_HGPU8W=Rw@mail.gmail.com> <9e19c594bcf144fbb433fb4cfee54e08@baidu.com> <3fb3526aa012449db95767c6092da8f6@baidu.com> In-Reply-To: <3fb3526aa012449db95767c6092da8f6@baidu.com> From: "Rafael J. Wysocki" Date: Thu, 8 Dec 2022 14:01:53 +0100 Message-ID: Subject: Re: [PATCH 1/2][v2] cpuidle-haltpoll: Replace default_idle with arch_cpu_idle To: "Li,Rongqing" Cc: "Rafael J. Wysocki" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "daniel.lezcano@linaro.org" , "peterz@infradead.org" , "akpm@linux-foundation.org" , "tony.luck@intel.com" , "jpoimboe@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-pm@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Thu, Dec 8, 2022 at 1:43 PM Li,Rongqing wrote: > > > > > > > When cpuidle-haltpoll is built as module, > > > > But it isn't now. > > Centos is compiling it as module, it will fail; > Other user wants to compile it as module, they will fail, > Syzbot random configuration building will fail > > Unless prohibit to build it as module as below: > > config HALTPOLL_CPUIDLE > - tristate "Halt poll cpuidle driver" > + bool "Halt poll cpuidle driver" > depends on X86 && KVM_GUEST > default y > help Ah, OK. Sorry about the confusion. Yes, the driver (not the governor, though), can be modular, so yes you need the export, but please change it to EXPORT_SYMBOL_GPL().