diff options
author | Roland Dreier <roland@purestorage.com> | 2014-02-14 05:45:17 +0100 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-02-14 05:48:02 +0100 |
commit | 6ecde51dd7894ffe2f959cca1fea3ea2b9ee2394 (patch) | |
tree | b7dc953b338e86f165e85b161f1f70caf17b8cfa /include | |
parent | IB/mlx5: Don't set "block multicast loopback" capability (diff) | |
download | linux-6ecde51dd7894ffe2f959cca1fea3ea2b9ee2394.tar.xz linux-6ecde51dd7894ffe2f959cca1fea3ea2b9ee2394.zip |
mlx5: Add include of <linux/slab.h> because of kzalloc()/kfree() use
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mlx5/driver.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 32cb18c399c2..130bc8d77fa5 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h @@ -38,8 +38,10 @@ #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> |