From: Sasha Levin <sashal@kernel.org>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Cc: Michael Ellerman <mpe@ellerman.id.au>,
Sasha Levin <sashal@kernel.org>,
srikar@linux.vnet.ibm.com, ego@linux.vnet.ibm.com,
hbathini@linux.ibm.com, valentin.schneider@arm.com, clg@kaod.org,
parth@linux.ibm.com, npiggin@gmail.com, robh@kernel.org,
yukuai3@huawei.com, linuxppc-dev@lists.ozlabs.org
Subject: [PATCH AUTOSEL 4.14 08/16] powerpc/smp: Move setup_profiling_timer() under CONFIG_PROFILING
Date: Mon, 17 Jan 2022 12:06:30 -0500 [thread overview]
Message-ID: <20220117170638.1472900-8-sashal@kernel.org> (raw)
In-Reply-To: <20220117170638.1472900-1-sashal@kernel.org>
From: Michael Ellerman <mpe@ellerman.id.au>
[ Upstream commit a4ac0d249a5db80e79d573db9e4ad29354b643a8 ]
setup_profiling_timer() is only needed when CONFIG_PROFILING is enabled.
Fixes the following W=1 warning when CONFIG_PROFILING=n:
linux/arch/powerpc/kernel/smp.c:1638:5: error: no previous prototype for ‘setup_profiling_timer’
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211124093254.1054750-5-mpe@ellerman.id.au
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
arch/powerpc/kernel/smp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c
index 7c7aa7c98ba31..cf25b95ceee13 100644
--- a/arch/powerpc/kernel/smp.c
+++ b/arch/powerpc/kernel/smp.c
@@ -1009,10 +1009,12 @@ void start_secondary(void *unused)
BUG();
}
+#ifdef CONFIG_PROFILING
int setup_profiling_timer(unsigned int multiplier)
{
return 0;
}
+#endif
#ifdef CONFIG_SCHED_SMT
/* cpumask of CPUs with asymetric SMT dependancy */
--
2.34.1
next prev parent reply other threads:[~2022-01-17 17:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-17 17:06 [PATCH AUTOSEL 4.14 01/16] clk: imx: Use div64_ul instead of do_div Sasha Levin
2022-01-17 17:06 ` [PATCH AUTOSEL 4.14 02/16] powerpc/6xx: add missing of_node_put Sasha Levin
2022-01-17 17:06 ` [PATCH AUTOSEL 4.14 03/16] powerpc/powernv: " Sasha Levin
2022-01-17 17:06 ` [PATCH AUTOSEL 4.14 04/16] powerpc/cell: " Sasha Levin
2022-01-17 17:06 ` [PATCH AUTOSEL 4.14 05/16] powerpc/btext: " Sasha Levin
2022-01-17 17:06 ` [PATCH AUTOSEL 4.14 06/16] powerpc/watchdog: Fix missed watchdog reset due to memory ordering race Sasha Levin
2022-01-17 17:06 ` [PATCH AUTOSEL 4.14 07/16] i2c: i801: Don't silently correct invalid transfer size Sasha Levin
2022-01-17 17:06 ` Sasha Levin [this message]
2022-01-17 17:06 ` [PATCH AUTOSEL 4.14 09/16] i2c: mpc: Correct I2C reset procedure Sasha Levin
2022-01-17 17:06 ` [PATCH AUTOSEL 4.14 10/16] w1: Misuse of get_user()/put_user() reported by sparse Sasha Levin
2022-01-17 17:06 ` [PATCH AUTOSEL 4.14 11/16] ALSA: seq: Set upper limit of processed events Sasha Levin
2022-01-17 17:06 ` [PATCH AUTOSEL 4.14 12/16] MIPS: OCTEON: add put_device() after of_find_device_by_node() Sasha Levin
2022-01-17 17:06 ` [PATCH AUTOSEL 4.14 13/16] i2c: designware-pci: Fix to change data types of hcnt and lcnt parameters Sasha Levin
2022-01-17 17:06 ` [PATCH AUTOSEL 4.14 14/16] MIPS: Octeon: Fix build errors using clang Sasha Levin
2022-01-17 17:06 ` [PATCH AUTOSEL 4.14 15/16] scsi: sr: Don't use GFP_DMA Sasha Levin
2022-01-17 17:06 ` [PATCH AUTOSEL 4.14 16/16] ASoC: mediatek: mt8173: fix device_node leak Sasha Levin
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=20220117170638.1472900-8-sashal@kernel.org \
--to=sashal@kernel.org \
--cc=clg@kaod.org \
--cc=ego@linux.vnet.ibm.com \
--cc=hbathini@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=npiggin@gmail.com \
--cc=parth@linux.ibm.com \
--cc=robh@kernel.org \
--cc=srikar@linux.vnet.ibm.com \
--cc=stable@vger.kernel.org \
--cc=valentin.schneider@arm.com \
--cc=yukuai3@huawei.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome