[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 01/34] x86: fix building !CONFIG_LOCK_PROFILE
The init function shouldn't be built or called at all when !CONFIG_LOCK_PROFILE. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- xen/common/spinlock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/common/spinlock.c b/xen/common/spinlock.c index 8f2ba08..36e31c9 100644 --- a/xen/common/spinlock.c +++ b/xen/common/spinlock.c @@ -471,6 +471,7 @@ void _lock_profile_deregister_struct( spin_unlock(&lock_profile_lock); } +#ifdef CONFIG_LOCK_PROFILE static int __init lock_prof_init(void) { struct lock_profile **q; @@ -489,5 +490,6 @@ static int __init lock_prof_init(void) return 0; } __initcall(lock_prof_init); +#endif #endif /* LOCK_PROFILE */ -- git-series 0.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |