All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [RFC PATCH] cpuidle : cpuidle_cpu_online() can be static
Date: Fri, 24 Jul 2020 11:40:34 +0800	[thread overview]
Message-ID: <20200724034034.GA9342@721e66870f52> (raw)
In-Reply-To: <20200723061339.9747-1-huntbag@linux.vnet.ibm.com>

[-- Attachment #1: Type: text/plain, Size: 1878 bytes --]


Signed-off-by: kernel test robot <lkp@intel.com>
---
 cpuidle-test.c |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/cpuidle/cpuidle-test.c b/drivers/cpuidle/cpuidle-test.c
index 399729440569d8..d6f037fc00e6ec 100644
--- a/drivers/cpuidle/cpuidle-test.c
+++ b/drivers/cpuidle/cpuidle-test.c
@@ -115,7 +115,7 @@ static struct cpuidle_state cpuidle_states_intel[] = {
 		.enter = idle_loop },
 };
 
-int cpuidle_cpu_online(unsigned int cpu)
+static int cpuidle_cpu_online(unsigned int cpu)
 {
 	struct cpuidle_device *dev;
 
@@ -131,7 +131,7 @@ int cpuidle_cpu_online(unsigned int cpu)
 	return 0;
 }
 
-int cpuidle_cpu_dead(unsigned int cpu)
+static int cpuidle_cpu_dead(unsigned int cpu)
 {
 	struct cpuidle_device *dev;
 
@@ -142,7 +142,7 @@ int cpuidle_cpu_dead(unsigned int cpu)
 	return 0;
 }
 
-int cpuidle_driver_init(void)
+static int cpuidle_driver_init(void)
 {
 	int idle_state;
 	struct cpuidle_driver *drv = &test_cpuidle_driver;
@@ -163,7 +163,7 @@ int cpuidle_driver_init(void)
 	return 0;
 }
 
-int add_cpuidle_states(void)
+static int add_cpuidle_states(void)
 {
 	/* Parse the module param and initialize the idle states here
 	 * in cpuidle_state_table.
@@ -220,7 +220,7 @@ int add_cpuidle_states(void)
 	return nr_states;
 }
 
-void test_cpuidle_uninit(void)
+static void test_cpuidle_uninit(void)
 {
 	if (test_hp_idlestate)
 		cpuhp_remove_state(test_hp_idlestate);
@@ -230,7 +230,7 @@ void test_cpuidle_uninit(void)
 	test_cpuidle_devices = NULL;
 }
 
-int __init test_cpuidle_init(void)
+static int __init test_cpuidle_init(void)
 {
 	int retval;
 
@@ -263,7 +263,7 @@ int __init test_cpuidle_init(void)
 	return retval;
 }
 
-void __exit test_cpuidle_exit(void)
+static void __exit test_cpuidle_exit(void)
 {
 	test_cpuidle_uninit();
 }

  parent reply	other threads:[~2020-07-24  3:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-23  6:13 [RFC] cpuidle : Add support for pseudo-cpuidle driver Abhishek Goel
2020-07-23  6:24 ` Randy Dunlap
2020-07-24  3:40 ` kernel test robot
2020-07-24  3:40 ` kernel test robot [this message]
2020-07-24  3:41 ` kernel test robot
2020-07-24 10:51 ` kernel test robot
2020-08-05 11:56 ` Dan Carpenter
2020-08-05 11:56   ` Dan Carpenter
2020-08-20 19:33 ` Fontenot, Nathan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200724034034.GA9342@721e66870f52 \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.