Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3876213ioo; Mon, 30 May 2022 11:46:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxndchk4Y/bhVs78kDx1q+EfUK2VGwLN+pmaH1x781k4fPOhi2oF0VICafV6pU4rmYG9pDA X-Received: by 2002:a17:907:2d2a:b0:6ff:11ed:7140 with SMTP id gs42-20020a1709072d2a00b006ff11ed7140mr23732806ejc.85.1653936399374; Mon, 30 May 2022 11:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653936399; cv=none; d=google.com; s=arc-20160816; b=yKcdlUvEZlS6h+JqHD+aEAPDafS4b2nnoOky+i7lwH3gL8NaV8D9v3K3P76Yje9J5J vNv0Xkpj5RLywuu4e/WbiqoG5c77za/+yd+O+MuSS/u9GgTxfq0c1z0Fl/vffeK+RMJ2 YBaBlTPA1q46HJVF8btSuStt0ya8YSrBKqm/AGxxHTsaahIcurJ72Df5glS0DNSNx8zf s3zxMwzz5lE3mGZhjKtwuIXZJ6ZKJiYZ8eBCQc5IlysPAeqQpTOwjPfo7jMuMKAUF2X4 zzAPUNpTq5xK3NQR+cXg5gMRUc52txGJR7Zscha71tRQhbeLhQLvOnx9Ib+h3j9RKalU JHbg== 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=sQYkwNkMjZTq9QkbE01BvlXD4yM6lPx9gwAHnYdOVkg=; b=wFM07iMG0s8C/FIgo8d6XBfw394smmV+3SNC7wcsPjGUMC5eGPVhO143tJfDXAM7KP u9euyEhggS1S6X7U+wFT8prz4peqSTWRXIdOtSovz0eXaqStcG2x/vzffk+6YAIPW8TH 5WWXFQ5E8UUaXDgU+hPDfNPp77Y7ua8b7W0aAljfsF5AzVoBTOsPpmS3Tbn8srqkhHzB zRaN4N4PCVwovqqwzAkujPPpVrnJqUhVXFXVBj053OfdvmsMtGQZfa5OC38h01zQkl55 7rcNyiuvVUhFvbFPw5x9c6cNcUE/NK5ygBVJEJgAnN0ho2E+BVuBcITh/r2EwfXx5Y17 t6FQ== 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y72-20020a50bb4e000000b0042bc58fa120si11948727ede.118.2022.05.30.11.46.13; Mon, 30 May 2022 11:46:39 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235052AbiE3KEk (ORCPT + 99 others); Mon, 30 May 2022 06:04:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235031AbiE3KEj (ORCPT ); Mon, 30 May 2022 06:04:39 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5E1C6108A; Mon, 30 May 2022 03:04:38 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2385E113E; Mon, 30 May 2022 03:04:38 -0700 (PDT) Received: from pierre123.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D9E4A3F73D; Mon, 30 May 2022 03:04:35 -0700 (PDT) From: Pierre Gondois To: linux-kernel@vger.kernel.org Cc: zhangshaokun@hisilicon.com, Ionela.Voinescu@arm.com, Dietmar.Eggemann@arm.com, Pierre Gondois , "Rafael J. Wysocki" , Viresh Kumar , Pierre Gondois , linux-pm@vger.kernel.org Subject: [PATCH v2 0/1] cpufreq: CPPC: Fix unused-function warning Date: Mon, 30 May 2022 12:04:23 +0200 Message-Id: <20220530100424.103301-1-pierre.gondois@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, 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 v2: - Put the Energy Model related functions inside specific guards instead of using the '__maybe_unused' flag. A warning was reported when the cppc_cpufreq driver is built with CONFIG_ENERGY_MODEL=n at: https://lore.kernel.org/all/626c99d3-edaf-4544-7e64-5b3653591086@hisilicon.com/ The patch should be applied on top of: https://lore.kernel.org/all/20220521032438.2504155-1-zhengbin13@huawei.com/ Pierre Gondois (1): cpufreq: CPPC: Fix unused-function warning drivers/cpufreq/cppc_cpufreq.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) -- 2.25.1