]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: use vmalloc include
authorShannon Nelson <snelson@pensando.io>
Wed, 23 Feb 2022 01:57:31 +0000 (17:57 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 23 Feb 2022 03:53:14 +0000 (19:53 -0800)
commite72616c61e75b84f2ee5a2dd9d88e9a163ab5645
treedbefad5b171e3b4282de9b4eaf0470fa217c4fa8
parentb96d622adc32cbfca91df2cec7cc931849f4c570
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: 67ad71ff8b43 ("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>
drivers/net/ethernet/pensando/ionic/ionic_lif.c