mlx5: Add include of <linux/slab.h> because of kzalloc()/kfree() use
authorRoland Dreier <roland@purestorage.com>
Fri, 14 Feb 2014 04:45:17 +0000 (20:45 -0800)
committerRoland Dreier <roland@purestorage.com>
Fri, 14 Feb 2014 04:48:02 +0000 (20:48 -0800)
On some architectures (for example, arm), we don't end up indirectly
pulling in the declaration of kzalloc() and kfree(), and so building
anything that includes <linux/mlx5/driver.h> breaks.  Fix this by adding
an explicit include to get the declaration.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
include/linux/mlx5/driver.h

index 32cb18c399c2048692f0c173d8708365ae849455..130bc8d77fa5e38173b90c157092189cb3ff7479 100644 (file)
 #include <linux/pci.h>
 #include <linux/spinlock_types.h>
 #include <linux/semaphore.h>
+#include <linux/slab.h>
 #include <linux/vmalloc.h>
 #include <linux/radix-tree.h>
+
 #include <linux/mlx5/device.h>
 #include <linux/mlx5/doorbell.h>