projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f34690a
)
xen: fix building !CONFIG_LOCK_PROFILE
author
Wei Liu
<wei.liu2@citrix.com>
Fri, 17 Aug 2018 15:12:19 +0000
(16:12 +0100)
committer
Wei Liu
<wei.liu2@citrix.com>
Tue, 21 Aug 2018 13:55:35 +0000
(14:55 +0100)
The init function shouldn't be built or called at all when
!CONFIG_LOCK_PROFILE.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/spinlock.c
patch
|
blob
|
history
diff --git
a/xen/common/spinlock.c
b/xen/common/spinlock.c
index 8f2ba0818c38da9de2cb0c573055c91fd0750a5f..36e31c91ffe2cd73c6bad032996106146340292d 100644
(file)
--- 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 */