]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/percpu.h
PCI Hotplug: convert acpi_pci_detect_ejectable() to take an acpi_handle
[karo-tx-linux.git] / include / linux / percpu.h
index 1581ff235c7e341f0cc3b43c0ad1663a03b0b027..26fd9d12f050b32a1d766071ab4e3e4fc0a1aeff 100644 (file)
@@ -86,7 +86,12 @@ struct percpu_data {
        void *ptrs[1];
 };
 
+/* pointer disguising messes up the kmemleak objects tracking */
+#ifndef CONFIG_DEBUG_KMEMLEAK
 #define __percpu_disguise(pdata) (struct percpu_data *)~(unsigned long)(pdata)
+#else
+#define __percpu_disguise(pdata) (struct percpu_data *)(pdata)
+#endif
 
 #define per_cpu_ptr(ptr, cpu)                                          \
 ({                                                                     \