Merge branches 'topic/fix/misc' and 'topic/fix/asoc' into for-linus
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / include / asm / sections.h
index 07956f3e78444f5f63390d8d328c000af957061f..6fbce725c710f97453079205e190c02c7365cd0b 100644 (file)
@@ -18,6 +18,12 @@ static inline int in_kernel_text(unsigned long addr)
        return 0;
 }
 
+static inline int overlaps_kernel_text(unsigned long start, unsigned long end)
+{
+       return start < (unsigned long)__init_end &&
+               (unsigned long)_stext < end;
+}
+
 #undef dereference_function_descriptor
 static inline void *dereference_function_descriptor(void *ptr)
 {