diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index fc84a30483c258f30cdf3fe5d23a626ad3209dd5..022d2ed7fd8bf6644f7fb636dc4f5bbd361066b1 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -2396,6 +2396,10 @@ static inline int separate_irq_context(struct task_struct *curr,
 	return 0;
 }
 
+void lockdep_trace_alloc(gfp_t gfp_mask)
+{
+}
+
 #endif
 
 /*