From: Geert Uytterhoeven <geert+renesas@glider.be>
To: Yoshinori Sato <ysato@users.sourceforge.jp>,
Rich Felker <dalias@libc.org>,
John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>,
Arnd Bergmann <arnd@arndb.de>
Cc: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org,
Geert Uytterhoeven <geert+renesas@glider.be>
Subject: [PATCH 2/3] sh: smp: Protect setup_profiling_timer() by CONFIG_PROFILING
Date: Mon, 13 May 2024 15:20:54 +0200 [thread overview]
Message-ID: <effa5eecbd2389c6661974e91bb834db210989ea.1715606232.git.geert+renesas@glider.be> (raw)
In-Reply-To: <cover.1715606232.git.geert+renesas@glider.be>
arch/sh/kernel/smp.c:326:5: warning: no previous prototype for 'setup_profiling_timer' [-Wmissing-prototypes]
The function is unconditionally defined in smp.c, but conditionally
declared in <linux/profile.h>.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/sh/kernel/smp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c
index b3ea50aabba3d7f2..108d808767fa9984 100644
--- a/arch/sh/kernel/smp.c
+++ b/arch/sh/kernel/smp.c
@@ -322,11 +322,13 @@ void smp_message_recv(unsigned int msg)
}
}
+#ifdef CONFIG_PROFILING
/* Not really SMP stuff ... */
int setup_profiling_timer(unsigned int multiplier)
{
return 0;
}
+#endif
#ifdef CONFIG_MMU
--
2.34.1
next prev parent reply other threads:[~2024-05-13 13:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-13 13:20 [PATCH 0/3] sh: Fix missing prototypes (part three) Geert Uytterhoeven
2024-05-13 13:20 ` [PATCH 1/3] sh: of-generic: Add missing #include <asm/clock.h> Geert Uytterhoeven
2024-05-13 13:20 ` Geert Uytterhoeven [this message]
2024-05-13 13:20 ` [PATCH 3/3] sh: setup: Add missing forward declaration for sh_fdt_init() Geert Uytterhoeven
2024-05-13 13:30 ` [PATCH 0/3] sh: Fix missing prototypes (part three) John Paul Adrian Glaubitz
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=effa5eecbd2389c6661974e91bb834db210989ea.1715606232.git.geert+renesas@glider.be \
--to=geert+renesas@glider.be \
--cc=arnd@arndb.de \
--cc=dalias@libc.org \
--cc=glaubitz@physik.fu-berlin.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=ysato@users.sourceforge.jp \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).