Skip to contentSkip to conversation

vfio-ccw: Fix a build error due to missing include of linux/slab.h

PATCH Applied Sean Christopherson 2 participants 2 messages Jul 3, 2020

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vfio-ccw: Fix a build error due to missing include of linux/slab.h

Include linux/slab.h to fix a build error due to kfree() being undefined.

Fixes 3f02cb2fd9d2d ("vfio-ccw: Wire up the CRW irq and CRW region")

---

Encountered this when cross-compiling with a pretty minimal config, didn't bother digging into why the error only showed up in my environment.

 drivers/s390/cio/vfio_ccw_chp.c | 1 +
 1 file changed, 1 insertion(+)
drivers/s390/cio/vfio_ccw_chp.c +1 -0
index a646fc81c872..13b26a1c7988 100644
@@ -8,6 +8,7 @@
  *            Eric Farman <[email protected]>
  */
 
+#include <linux/slab.h>
 #include <linux/vfio.h>
 #include "vfio_ccw_private.h"
 
Signature · 1 line
2.26.0
#1 lore raw
Quoted 17 lines · On Thu, 2 Jul 2020 19:26:28 -0700 Sean Christopherson…

Include linux/slab.h to fix a build error due to kfree() being undefined.

Fixes 3f02cb2fd9d2d ("vfio-ccw: Wire up the CRW irq and CRW region")

---

Encountered this when cross-compiling with a pretty minimal config, didn't bother digging into why the error only showed up in my environment.

 drivers/s390/cio/vfio_ccw_chp.c | 1 +
 1 file changed, 1 insertion(+)
drivers/s390/cio/vfio_ccw_chp.c +0 -0
index a646fc81c872..13b26a1c7988 100644

drivers/s390/cio/vfio_ccw_chp.c line 14

Quoted 7 lines
drivers/s390/cio/vfio_ccw_chp.c +1 -0
@@ -8,6 +8,7 @@
  *            Eric Farman <[email protected]>
  */
 
+#include <linux/slab.h>
 #include <linux/vfio.h>
 #include "vfio_ccw_private.h"
 

Thanks, applied.