From patchwork Wed Jul 15 08:26:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235568 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp412770ilg; Wed, 15 Jul 2020 01:27:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh0vkkrY13sa9awco5+jpdl8/wHKVHhZ3MDW5vZ0Tnh+Cx1gtw0YaUhvyUITJOLelcfvL2 X-Received: by 2002:a05:6402:b9b:: with SMTP id cf27mr8718371edb.84.1594801645458; Wed, 15 Jul 2020 01:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594801645; cv=none; d=google.com; s=arc-20160816; b=rXlhMSTYuyr12rdZZ4tHSyD00kLHgFMHm0Q4pVraCUgGpYOT9YK3AhySeiOX/OSHzF 0z6CmmfJTzqeBGyJnWBf9Aum7kQ8TrrDbphqKTzwjYxa5VZOObErdEcu6KondqfcODQ3 NxU1zXrr8GLVjA2a5mHU9awbBk/nsPxFfHRTYQVr82jKVPhA6/wd45c1WDbow5qNpN7P EiLnq/YTLBlmYwuNw75UrgM+f7ZLJHjNnCgrOywmUTgb3N9ZxwnUs3ce1ns6E9SGFO2i ybgiIBGZnVJI2uTGZY3791e8n/3Cl/mwUZtffCleuRiXSi1x0u4JE7eAihmt3dLTykf/ Sk6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2FEE9EyuKEElP2R0dGV5iQicdnI3vcbhmFFoLiz/bvg=; b=B7gI++YABPLw+2ai7x7aH0wYmRjvyNKaMn71lH3/MVySZWL5NEVGft8yG3m1AwIiYq vkY5dwyjGgOIhdyXsETgTdLMw0gu+1xn+/K6xxz4F5ANsP0JiGhzIWa5GYB08c8cCeWv DMcPe37wHnMT2jATbjJNuHHxS0Wrqcj8YAErjDOToLTLXJy7sA5iXsKQwqLSLyVnbTYM IXO+xUJvex82DbFjl6oeWRXSMbZsvLH+wUVIF4pNFQK2FTQtqSlJ/cHZ91/KvWuFJH9e xwBgJV44cEtvqbC//OjRg81Macro37ZmTaaDVHLw3jg7D31VFU/lZNyP65gFzaP0dTZk cbuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dNLsrisc; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si847373edv.230.2020.07.15.01.27.25; Wed, 15 Jul 2020 01:27:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dNLsrisc; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729746AbgGOI1V (ORCPT + 10 others); Wed, 15 Jul 2020 04:27:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729886AbgGOI0r (ORCPT ); Wed, 15 Jul 2020 04:26:47 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8BC2C08C5DD for ; Wed, 15 Jul 2020 01:26:46 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id g10so2969807wmc.1 for ; Wed, 15 Jul 2020 01:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2FEE9EyuKEElP2R0dGV5iQicdnI3vcbhmFFoLiz/bvg=; b=dNLsriscR4hsRjVJy5HJ61IIk4PpwYkqGkI3F3kDQQeDKRecSXlq3RsNQY2oCbqvYr yZK14gsEQVw7xlfvTfZM7JvCMqfvlrQVrrqRtn83MdQ71BOFT0hZL8oC5qbgiEx20dXq AhE5zLi6V299vlhGlmf96yVFf+aEYUzYOT21qrkVWe/b5KHV8IjzCsqL+yoJCjR+6QTS qoCDhHlD5wC1lXiQlu+TjLdoU+qrC3Egi+XR2EqRUqbwFO56nK2tBacDB/dP9AGYQsp4 6xzTC0Fl0UxZFy7pe5bgbzmpQWKzHYZ/6nMwAUfRIVIfqPQHKtwzaKcds55p7jwTV7si eTYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2FEE9EyuKEElP2R0dGV5iQicdnI3vcbhmFFoLiz/bvg=; b=ZnSqwZEBmjyfdl91y1za2RJIT5vGKsrFbRBhb/2xOB1oLUW2l3uf7pFwuCp83dfCvI Nt2cBCNch0t7Pvrf/nYdbLYEt5kHA38nz+o7JLw/Gj/iWsEhE7kqvSVayh97T8zypCe0 ypnq8j4MQ/VXiEYS+Ci3akLRNq7Yk8ggGVKLCDMap8kyA/lvkiH8ceNT6JWR6lOkPgXF fbUGpSIxSmMNsPSW691u0aUGHg2wniPjX4vg5eUHphBL7a4mXrdg+6eij7sZ4KBmru49 0vx1gVvQ+bY7tkMpDpWmoMqLr1f5nKV3orX/tOLFr3+GwmRqh3suNP6CApHKw2w+cUHY volg== X-Gm-Message-State: AOAM5300wawQatCgVyF/tnc0+KYPT6WSFGx3uceptcg3olv+M+FjZ5OZ 5NTJ2PUjP32PD2nU2OB0UTsMVQ== X-Received: by 2002:a7b:c197:: with SMTP id y23mr7896351wmi.114.1594801605457; Wed, 15 Jul 2020 01:26:45 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id h13sm2400361wml.42.2020.07.15.01.26.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:26:44 -0700 (PDT) From: Lee Jones To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Lee Jones , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 06/13] cpufreq: powernv-cpufreq: Functions only used in call-backs should be static Date: Wed, 15 Jul 2020 09:26:27 +0100 Message-Id: <20200715082634.3024816-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715082634.3024816-1-lee.jones@linaro.org> References: <20200715082634.3024816-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/cpufreq/powernv-cpufreq.c:669:6: warning: no previous prototype for ‘gpstate_timer_handler’ [-Wmissing-prototypes] drivers/cpufreq/powernv-cpufreq.c:902:6: warning: no previous prototype for ‘powernv_cpufreq_work_fn’ [-Wmissing-prototypes] Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Lee Jones Acked-by: Viresh Kumar --- drivers/cpufreq/powernv-cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/cpufreq/powernv-cpufreq.c b/drivers/cpufreq/powernv-cpufreq.c index 8646eb197cd96..068cc53abe320 100644 --- a/drivers/cpufreq/powernv-cpufreq.c +++ b/drivers/cpufreq/powernv-cpufreq.c @@ -666,7 +666,7 @@ static inline void queue_gpstate_timer(struct global_pstate_info *gpstates) * according quadratic equation. Queues a new timer if it is still not equal * to local pstate */ -void gpstate_timer_handler(struct timer_list *t) +static void gpstate_timer_handler(struct timer_list *t) { struct global_pstate_info *gpstates = from_timer(gpstates, t, timer); struct cpufreq_policy *policy = gpstates->policy; @@ -899,7 +899,7 @@ static struct notifier_block powernv_cpufreq_reboot_nb = { .notifier_call = powernv_cpufreq_reboot_notifier, }; -void powernv_cpufreq_work_fn(struct work_struct *work) +static void powernv_cpufreq_work_fn(struct work_struct *work) { struct chip *chip = container_of(work, struct chip, throttle); struct cpufreq_policy *policy;