From patchwork Thu Jan 28 06:58:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 372523 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp959227jam; Wed, 27 Jan 2021 22:59:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlYQhim3SYPqKhyfY1trjbLag+cXLF2xw8LMfwb2NB360x59uJLAW1wodWkR25nMye+nUl X-Received: by 2002:aa7:cad5:: with SMTP id l21mr12155506edt.96.1611817143140; Wed, 27 Jan 2021 22:59:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611817143; cv=none; d=google.com; s=arc-20160816; b=HagROeuMlSUmQLLV7lbIez0JkVTqGDvXwim3i6jwFxWBRW5R6qL5WYzhhNKvMKpzQC B/u3O1sO+bwzi0xbzu0hz33HFeWKQbPRuxiPW4/55R9DksFtA9B/0Btuos6DMBDLb6nE +PRI0Aui+wtOeK6Mxl3YUErBBfXGpGzjhwPDpDUuXS0UN4zwBZXNlanFSrFr+EXtXsvq jiVVFK8NnN2jyCfBg9PkUxYTI9RejIjm8ZwjsLD+mUnAXkx44pZRf/DGEa4uT0QR8yNJ poOEaWGp3NGn9kiUFN9XZouolwOHwR0dKBGTGfo2FMPuy4c71t1/vMjjA1Pm26LqM4ut oyfA== 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:dkim-signature; bh=2gJpFkK5TmW5EOcLua8dRT08KePDv15G0fJENxu9Phs=; b=M1HS0f3znuDXvn4i9F4EaTTupg3B2zW5ElYU+esbIpKKPUg7Wzlul/nhEsR5BNaqws dvR36SYVRLTWuTMT6RjT+iKxACVJDVRFJF2enAvhhTjkfNxfYhxaAoKcYm95jK/LokmI EjWiIWvT4GKq6SF+0TTzJw15Xh324GE3pVjp9rw+NFW2isWAD8RZxKIOgvJE2QzZRtRx E4l0GFBB5fp7ftHYrw2/t+znnue1fXHKcF8ELfwyT5EiqydtDi6bG9NlEVM3H0H3UD+p 3f73i3EjsoUCQ+ykqqA1FgRqPWBjJ+8tAAEhbz1b0mCcLMH3KlX+lG3aoxLVX6aMJpc/ 0CRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ti6oOUz8; 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 f10si2086060ejr.536.2021.01.27.22.59.02; Wed, 27 Jan 2021 22:59:03 -0800 (PST) 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=Ti6oOUz8; 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 S229834AbhA1G6s (ORCPT + 7 others); Thu, 28 Jan 2021 01:58:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229785AbhA1G6p (ORCPT ); Thu, 28 Jan 2021 01:58:45 -0500 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9175EC0613D6 for ; Wed, 27 Jan 2021 22:58:05 -0800 (PST) Received: by mail-pf1-x42b.google.com with SMTP id o20so3411925pfu.0 for ; Wed, 27 Jan 2021 22:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2gJpFkK5TmW5EOcLua8dRT08KePDv15G0fJENxu9Phs=; b=Ti6oOUz8rg0O96Ii9pV7IYBgjnHKK9Q+09y+Rmds4gHWkxFXgRKvHr1Y+J2MKn8Fz3 XkL7/gYQ1pH7VfoA9F07IVE4S8K17vDEHvCYSkoxrBIAR0bE290KygzoUT95gDc47X1T 0QqARhBv01Q0PBr64uYEtcblKclmzu9rNKNzgxU4Rx/Rn6FJC1wm3bw/2GxXHCTn5cEL sE74oQJ4iMPb8DLeH/xqAkcoBVUr/Eep+oFtQdpxix83RWfKCvdgVTF8y3NXXbjJ+zEL Iks/gI2mwPRphMiQDtMFMXhUL5fgkIQ1flkYBOwhmRLI3FqG2p0vxVcdm/FFtrxeh4cw s3Rg== 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:mime-version :content-transfer-encoding; bh=2gJpFkK5TmW5EOcLua8dRT08KePDv15G0fJENxu9Phs=; b=P60WuK92dajsKD7HkmVfOX0g0dAWrxtMsS/iTJ1mVpn2mNyvygQ/b+rLt6wKUXszX8 kzAsfRSV4mQ5En361PHH9MgO3O8M6tnvukuSWmoGO01kKXDjAHsWK7swNeP3Pwg3UTdl 6zBHWLwc8WExiRTC46VRAoAxzR6E/+P8PdVW2esf0jK7pnTgJU5fhRWpD789Zw1n95xG YD76jY2ZCxv1egZFqCBZKHUwrCh7KqdzIAfvuPUd+Nap6SbVtvNXuUIHrWI0HRQWv+5k RPcHpJ0QLSzUsorJt3+MkmwLiIyvqQswGlezXKkTzEtIzXXqVLQv/bm1bHTuryyfapXO ++pA== X-Gm-Message-State: AOAM532FUZcRA7gTYkuyMMpyrlq+kJVXPfOR6bwmHkmWF+R9/Cz1lVRE Her6hwho4j16nG8Vq6VKIhu02w== X-Received: by 2002:a65:4203:: with SMTP id c3mr15098898pgq.65.1611817085039; Wed, 27 Jan 2021 22:58:05 -0800 (PST) Received: from localhost ([122.172.59.240]) by smtp.gmail.com with ESMTPSA id j15sm4608977pfn.180.2021.01.27.22.58.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jan 2021 22:58:04 -0800 (PST) From: Viresh Kumar To: Viresh Kumar , Nishanth Menon , Stephen Boyd Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , Rafael Wysocki , linux-kernel@vger.kernel.org Subject: [PATCH] opp: Staticize _add_opp_table() Date: Thu, 28 Jan 2021 12:28:00 +0530 Message-Id: X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org _add_opp_table() isn't used outside of core.c, mark it static. Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 2 +- drivers/opp/opp.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.25.0.rc1.19.g042ed3e048af diff --git a/drivers/opp/core.c b/drivers/opp/core.c index 253bc87b5695..dc7a298f3611 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -1193,7 +1193,7 @@ struct opp_table *_add_opp_table_indexed(struct device *dev, int index) return opp_table; } -struct opp_table *_add_opp_table(struct device *dev) +static struct opp_table *_add_opp_table(struct device *dev) { return _add_opp_table_indexed(dev, 0); } diff --git a/drivers/opp/opp.h b/drivers/opp/opp.h index 4ced7ffa8158..ee2593afae0c 100644 --- a/drivers/opp/opp.h +++ b/drivers/opp/opp.h @@ -223,7 +223,6 @@ int _opp_compare_key(struct dev_pm_opp *opp1, struct dev_pm_opp *opp2); int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, struct opp_table *opp_table, bool rate_not_available); int _opp_add_v1(struct opp_table *opp_table, struct device *dev, unsigned long freq, long u_volt, bool dynamic); void _dev_pm_opp_cpumask_remove_table(const struct cpumask *cpumask, int last_cpu); -struct opp_table *_add_opp_table(struct device *dev); struct opp_table *_add_opp_table_indexed(struct device *dev, int index); void _put_opp_list_kref(struct opp_table *opp_table);