From: Ashutosh Naik <ashutosh.naik@gmail.com>
To: linux-kernel@vger.kernel.org, davem@redhat.com,
kuznet@ms2.inr.ac.ru, Andrew Morton <akpm@osdl.org>,
linux-net@vger.kernel.org
Subject: [PATCH] net/core/flow.c CONFIG_SMP Fix in flow_cache_flush(void)
Date: Sat, 28 Jan 2006 18:14:37 +0530 [thread overview]
Message-ID: <81083a450601280444y683a3899h12054edfe610a51f@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 212 bytes --]
This patch fixes a warning in the function flow_cache_flush(), where
the the function smp_call_function is entered even when CONFIG_SMP is
not defined
Signed-off-by: Ashutosh Naik <ashutosh.naik@gmail.com>
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 456 bytes --]
--- /usr/src/linux-2.6.16-rc1/net/core/flow.c.orig 2006-01-28 18:00:48.000000000 +0530
+++ /usr/src/linux-2.6.16-rc1/net/core/flow.c 2006-01-28 18:02:16.000000000 +0530
@@ -296,7 +296,9 @@ void flow_cache_flush(void)
init_completion(&info.completion);
local_bh_disable();
+#ifdef CONFIG_SMP
smp_call_function(flow_cache_flush_per_cpu, &info, 1, 0);
+#endif /* CONFIG_SMP */
flow_cache_flush_tasklet((unsigned long)&info);
local_bh_enable();
next reply other threads:[~2006-01-28 12:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-28 12:44 Ashutosh Naik [this message]
2006-01-28 14:43 ` Patrick McHardy
2006-01-28 19:00 ` David S. Miller
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=81083a450601280444y683a3899h12054edfe610a51f@mail.gmail.com \
--to=ashutosh.naik@gmail.com \
--cc=akpm@osdl.org \
--cc=davem@redhat.com \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®