lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 8 Aug 2009 16:21:53 -0700
From:	"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
To:	Ingo Molnar <mingo@...e.hu>
Cc:	linux-tip-commits@...r.kernel.org, linux-kernel@...r.kernel.org,
	hpa@...or.com, mingo@...hat.com, tglx@...utronix.de
Subject: Re: [tip:core/rcu] rcu: Add second diagnostic check for a possible
	CPU-hotplug race

On Sat, Aug 08, 2009 at 05:01:03PM +0200, Ingo Molnar wrote:
> 
> * tip-bot for Paul E. McKenney <paulmck@...ux.vnet.ibm.com> wrote:
> 
> > Commit-ID:  0d84abdae6740ee5290a7a523ee35916f65e16ec
> > Gitweb:     http://git.kernel.org/tip/0d84abdae6740ee5290a7a523ee35916f65e16ec
> > Author:     Paul E. McKenney <paulmck@...ux.vnet.ibm.com>
> > AuthorDate: Wed, 5 Aug 2009 18:26:45 -0700
> > Committer:  Ingo Molnar <mingo@...e.hu>
> > CommitDate: Sat, 8 Aug 2009 16:51:08 +0200
> > 
> > rcu: Add second diagnostic check for a possible CPU-hotplug race
> 
> hm, got this build failure in -tip testing:
> 
> kernel/rcupdate.c: In function ‘rcu_cpu_notified’:
> kernel/rcupdate.c:251: error: implicit declaration of function ‘cpu_notified’
> 
> with the config below.

Gah...  I didn't take !CONFIG_HOTPLUG_CPU into account.  Fix below.

							Thanx, Paul

------------------------------------------------------------------------

Fix build breakage in diagnostic patch.

Move cpu_notified() declaration out from under #ifdef.

Signed-off-by: Paul E. McKenney <paulmck@...ux.vnet.ibm.com>
---

 cpu.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/cpu.h b/include/linux/cpu.h
index d9b3c18..1b1c30c 100644
--- a/include/linux/cpu.h
+++ b/include/linux/cpu.h
@@ -45,13 +45,13 @@ extern int sched_create_sysfs_power_savings_entries(struct sysdev_class *cls);
 extern void unregister_cpu(struct cpu *cpu);
 #endif
 struct notifier_block;
+extern int cpu_notified(int (*fn)(struct notifier_block *, unsigned long, void *));
 
 #ifdef CONFIG_SMP
 /* Need to know about CPUs going up/down? */
 #ifdef CONFIG_HOTPLUG_CPU
 extern int register_cpu_notifier(struct notifier_block *nb);
 extern void unregister_cpu_notifier(struct notifier_block *nb);
-extern int cpu_notified(int (*fn)(struct notifier_block *, unsigned long, void *));
 extern int raw_notifier_chain_is_registered(struct raw_notifier_head *nh,
 		int (*fn)(struct notifier_block *, unsigned long, void *));
 #else
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ