Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1262396lfc; Wed, 1 Jun 2022 13:28:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKpESbNN/UvPH0Cb6tnQPF0QMdBci+U81aiHuv/04Gwd7ykatf2Bl+x3Xp+gmQrQoMzyUR X-Received: by 2002:a17:902:f607:b0:161:5f47:b213 with SMTP id n7-20020a170902f60700b001615f47b213mr1237359plg.4.1654115286195; Wed, 01 Jun 2022 13:28:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654115286; cv=none; d=google.com; s=arc-20160816; b=JYL0i//fDUPA/tQtSWo9i0PwAqxum/7KUBHU57V7DNNR+d4qsL2S0e1PQ8FmO1Hhrb H473jNX6U3CjsJahFriRUTekFoMxaO13W5eBZJGhbtuwA41vLatSJZl2JqWl1QBNb+YE 3JbisH/vfnlKQa2Um2j9WZJklR66XNro8IKf+L0V+JxuyrTLqPyEciJvxIvztIZLNozR GJ+DANqGldgNeBM8oHVDjGkBh6gjwcBipQdiHcJJpJIWka40NBHMTPSJzw6casyb3jjt X2KgNGMSIhKI0l4KGNMCGUFx/m9+OTFDFy7XoN2ZYyq+lwCFOO923kG2cMaqfqGWj8r9 K5MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UALvhWndaZ+8NVhyXVMTGWogK9BCZuA7nUC2dpZdhFc=; b=tQCZLPGAVwMH0qd7KqzhT61pA1bdStHnToClzVomqiFg6Pq7HyWe8CsmSl5HutPHaQ kEc5XwY5k43hbgaqgbOi9xB9iZirpRF12BvZ5KVggFs0k+JhyMTzw7HeJx5qH9aDmnUG erGd1BHtXiypq2+XQXmak07bSyzlxxEMaanQpaJDKUcAbXG8EoTZ7QeGfxaBUimb8fP/ vg3/Byjzlbmk9OyQ1xNP+5qoMgkZU9K3hYi94W7dpDkcewycl1HfMKUSbSaOrlShuNCb 4FBN52anKBv7fv5cOz6WrX+AyQSIQckQNEqKyeEYDtyMP2mJXYKmr55OfKWGlHhDWR44 kSJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nfZTMfLp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b11-20020a63d30b000000b003fa8a914658si3680264pgg.405.2022.06.01.13.28.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:28:06 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nfZTMfLp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7CD291E174B; Wed, 1 Jun 2022 12:41:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233979AbiE3Jqz (ORCPT + 99 others); Mon, 30 May 2022 05:46:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234879AbiE3Jqx (ORCPT ); Mon, 30 May 2022 05:46:53 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51F719588 for ; Mon, 30 May 2022 02:46:48 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id bo5so10149207pfb.4 for ; Mon, 30 May 2022 02:46:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=UALvhWndaZ+8NVhyXVMTGWogK9BCZuA7nUC2dpZdhFc=; b=nfZTMfLpScX+7i5oxd+QZy4f+mKCKtr/6YCGg5q0/lgh99OiWWiF9Lhh/QN4IyB06x 2moQEr4XBMjGQbiaC0VpfDMoopZq24/GbvNSsjxuZ6Wg5tXQqYnssMAXVLkV6IBTc1Uc I0W43D5oupX+ULjNU0O/Zy079+v15+Hpwi1Lwjcpw8s3TZPuPh46PHH6DRzVVX3YYFei voXdEcR5xXF1NbbXIQkCEHvN9PVS5Ua+/Xc5iO8BFurRxfgaDKxQLXF3xBUTYzFjATFp nRFunal+5Xm4EQwL9DrkIb+ItUSCfQcxQg4eVXGpxciSU5/WlY+xV84yfqm58TLrPcMt dOlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=UALvhWndaZ+8NVhyXVMTGWogK9BCZuA7nUC2dpZdhFc=; b=k2bYyGeNYwwOeZVv7Ums0l3kqLVh4SW3ynloWJYRwsxaRdLVJ5NdYtMppZ+2XRVzea GaOqMMhBd92MD6AQAU//iniTWKEluu285u6EJOvHlBHqFXNYVtgR28EykMh+NNsoKCeH Vj6HhtJqq/qzM3wHsWzOLU9TTn6gyltIrGIH3ZibT7UKQwWfMoaFEH2qw4+lmzOKXw1U cRzggRwUXUUK5jN/0d2yc/QLltpLAGirlxTqvQCSxplfFzLh6dnWr9TuZhcwmDKegRD+ CxZNxWL/k+4q8yA2RRTT/uCRzRSfttfkCdVABfwkr5iLrhZINXjyZfYosQ2l6aMIAHfa Ax9A== X-Gm-Message-State: AOAM532vqU+HaBWURvsu3gBmII4m3VURLhOAuG2XhYYIiPMU4vhoD3B2 adeSNchRvDfrKw0TwIDyxJJl2Q== X-Received: by 2002:a63:8243:0:b0:3f9:6c94:5112 with SMTP id w64-20020a638243000000b003f96c945112mr41340598pgd.173.1653904007740; Mon, 30 May 2022 02:46:47 -0700 (PDT) Received: from localhost ([122.162.234.2]) by smtp.gmail.com with ESMTPSA id j13-20020a17090a588d00b001d9927ef1desm6377266pji.34.2022.05.30.02.46.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 02:46:47 -0700 (PDT) Date: Mon, 30 May 2022 15:16:45 +0530 From: Viresh Kumar To: Pierre Gondois Cc: linux-kernel@vger.kernel.org, Ionela.Voinescu@arm.com, Dietmar.Eggemann@arm.com, Shaokun Zhang , "Rafael J. Wysocki" , linux-pm@vger.kernel.org Subject: Re: [PATCH v1] cpufreq: CPPC: Fix unused-function warning Message-ID: <20220530094645.wky42wwkbszfjjzs@vireshk-i7> References: <20220530081236.40728-1-pierre.gondois@arm.com> <20220530082025.vqzk37dvyzxiq7dv@vireshk-i7> <3a26ce90-5d2d-0164-3799-85a9dc1abee6@arm.com> <20220530090738.7ycfr7g52b54jzj3@vireshk-i7> <2b2df076-f8fe-10f7-9bc4-3e1f3c1639d0@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2b2df076-f8fe-10f7-9bc4-3e1f3c1639d0@arm.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 30-05-22, 11:42, Pierre Gondois wrote: > Ok yes. Just to be sure and except if disagreed, I will use the > following structure: > #if CONFIG_ARM64 > #else > #endif > > #if defined(CONFIG_ARM64) && defined(CONFIG_ENERGY_MODEL) > int populate_efficiency_class(); > #else > int populate_efficiency_class(); > #endif > > to avoid having multiple empty definitions of > populate_efficiency_class() (for eg.) that we would have with: > #if CONFIG_ARM64 > #if CONFIG_ENERGY_MODEL > int populate_efficiency_class(); > #else // CONFIG_ENERGY_MODEL > int populate_efficiency_class(); > #endif // CONFIG_ENERGY_MODEL > #else // CONFIG_ARM64 > int populate_efficiency_class(); > #endif // CONFIG_ARM64 Look good. -- viresh