diff options
author | Shannon Nelson <snelson@pensando.io> | 2022-02-22 17:57:31 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-02-22 19:53:14 -0800 |
commit | 922ea87ff6f2b63f413c6afa2c25b287dce76639 (patch) | |
tree | dbefad5b171e3b4282de9b4eaf0470fa217c4fa8 /drivers/net/ethernet/pensando | |
parent | fa4fad40d5959373e3c6046d30344fc4f586bb20 (diff) | |
download | lwn-922ea87ff6f2b63f413c6afa2c25b287dce76639.tar.gz lwn-922ea87ff6f2b63f413c6afa2c25b287dce76639.zip |
ionic: use vmalloc include
The ever-vigilant Linux kernel test robot reminded us that
we need to use the correct include files to be sure that
all the build variations will work correctly. Adding the
vmalloc.h include takes care of declaring our use of vzalloc()
and vfree().
drivers/net/ethernet/pensando/ionic/ionic_lif.c:396:17: error: implicit
declaration of function 'vfree'; did you mean 'kvfree'?
drivers/net/ethernet/pensando/ionic/ionic_lif.c:531:21: warning:
assignment to 'struct ionic_desc_info *' from 'int' makes pointer from
integer without a cast
Fixes: 116dce0ff047 ("ionic: Use vzalloc for large per-queue related buffers")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Link: https://lore.kernel.org/r/20220223015731.22025-1-snelson@pensando.io
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/pensando')
-rw-r--r-- | drivers/net/ethernet/pensando/ionic/ionic_lif.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.c b/drivers/net/ethernet/pensando/ionic/ionic_lif.c index d19d977e5ee6..f3568901eb91 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_lif.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.c @@ -12,6 +12,7 @@ #include <linux/pci.h> #include <linux/cpumask.h> #include <linux/crash_dump.h> +#include <linux/vmalloc.h> #include "ionic.h" #include "ionic_bus.h" |