[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] xen: fix building !CONFIG_LOCK_PROFILE



commit 1fe5e617d41f9ba05f7d53f6f34e433bf41e0d43
Author:     Wei Liu <wei.liu2@xxxxxxxxxx>
AuthorDate: Fri Aug 17 16:12:19 2018 +0100
Commit:     Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Tue Aug 21 14:55:35 2018 +0100

    xen: 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>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 xen/common/spinlock.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/common/spinlock.c b/xen/common/spinlock.c
index 8f2ba0818c..36e31c91ff 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 */
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.