Skip to contentSkip to conversation

s390: vfio-ap: include <asm/facility> for test_facility()

PATCH Applied Petr Tesarik 4 participants 5 messages Nov 16, 2018

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

PATCH 1/1 s390: vfio-ap: include <asm/facility> for test_facility()

The driver uses test_facility(), but does not include the corresponding include file explicitly. The driver currently builds only thanks to the following include chain:

vfio_ap_drv.c

    <linux/module.h>
      <linux/elf.h>
        <asm/elf.h>
	  <linux/compat.h>
	    <asm/uaccess.h>
	      <asm/facility.h>

Files should not rely on such fragile implicit includes.

---
 drivers/s390/crypto/vfio_ap_drv.c | 1 +
 1 file changed, 1 insertion(+)
drivers/s390/crypto/vfio_ap_drv.c +1 -0
index 7667b38728f0..31c6c847eaca 100644
@@ -11,6 +11,7 @@
 #include <linux/mod_devicetable.h>
 #include <linux/slab.h>
 #include <linux/string.h>
+#include <asm/facility.h>
 #include "vfio_ap_private.h"
 
 #define VFIO_AP_ROOT_NAME "vfio_ap"
Signature · 1 line
2.16.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 24 lines · On Fri, 16 Nov 2018 11:47:48 +0100 Petr Tesarik <[email protected]> wrote:

The driver uses test_facility(), but does not include the corresponding include file explicitly. The driver currently builds only thanks to the following include chain:

vfio_ap_drv.c

    <linux/module.h>
      <linux/elf.h>
        <asm/elf.h>
	  <linux/compat.h>
	    <asm/uaccess.h>
	      <asm/facility.h>

Files should not rely on such fragile implicit includes.

---
 drivers/s390/crypto/vfio_ap_drv.c | 1 +
 1 file changed, 1 insertion(+)
drivers/s390/crypto/vfio_ap_drv.c +0 -0
index 7667b38728f0..31c6c847eaca 100644

drivers/s390/crypto/vfio_ap_drv.c line 17

Quoted 7 lines
drivers/s390/crypto/vfio_ap_drv.c +1 -0
@@ -11,6 +11,7 @@
 #include <linux/mod_devicetable.h>
 #include <linux/slab.h>
 #include <linux/string.h>
+#include <asm/facility.h>
 #include "vfio_ap_private.h"
 
 #define VFIO_AP_ROOT_NAME "vfio_ap"
Acked-by on v1 1/1
#2 lore raw
In reply to Petr Tesarik
Quoted 12 lines · Petr Tesarik

The driver uses test_facility(), but does not include the corresponding include file explicitly. The driver currently builds only thanks to the following include chain:

vfio_ap_drv.c

    <linux/module.h>
      <linux/elf.h>
        <asm/elf.h>
	  <linux/compat.h>
	    <asm/uaccess.h>
	      <asm/facility.h>
Quoted 3 lines

Files should not rely on such fragile implicit includes.

Quoted 17 lines
---
 drivers/s390/crypto/vfio_ap_drv.c | 1 +
 1 file changed, 1 insertion(+)
drivers/s390/crypto/vfio_ap_drv.c +1 -0
index 7667b38728f0..31c6c847eaca 100644
@@ -11,6 +11,7 @@
 #include <linux/mod_devicetable.h>
 #include <linux/slab.h>
 #include <linux/string.h>
+#include <asm/facility.h>
 #include "vfio_ap_private.h"
 
 #define VFIO_AP_ROOT_NAME "vfio_ap"
maintainer Applied
#3 lore raw
In reply to Petr Tesarik
Quoted 24 lines · On Fri, 16 Nov 2018 11:47:48 +0100 Petr Tesarik <[email protected]> wrote:

The driver uses test_facility(), but does not include the corresponding include file explicitly. The driver currently builds only thanks to the following include chain:

vfio_ap_drv.c

    <linux/module.h>
      <linux/elf.h>
        <asm/elf.h>
	  <linux/compat.h>
	    <asm/uaccess.h>
	      <asm/facility.h>

Files should not rely on such fragile implicit includes.

---
 drivers/s390/crypto/vfio_ap_drv.c | 1 +
 1 file changed, 1 insertion(+)
(quoted diff) +0 -0

b/drivers/s390/crypto/vfio_ap_drv.c index 7667b38728f0..31c6c847eaca 100644 --- a/drivers/s390/crypto/vfio_ap_drv.c
+++ b/drivers/s390/crypto/vfio_ap_drv.c

drivers/s390/crypto/vfio_ap_drv.c line 17

Quoted 7 lines
drivers/s390/crypto/vfio_ap_drv.c +1 -0
@@ -11,6 +11,7 @@
 #include <linux/mod_devicetable.h>
 #include <linux/slab.h>
 #include <linux/string.h>
+#include <asm/facility.h>
 #include "vfio_ap_private.h"
 
 #define VFIO_AP_ROOT_NAME "vfio_ap"

Applied. Is going to go via Martins S390 tree.

Thanks,
Halil

#4 lore raw
Quoted 33 lines · On Fri, 16 Nov 2018 13:20:33 +0100 Halil Pasic <[email protected]> wrote:
Quoted 30 lines · On Fri, 16 Nov 2018 11:47:48 +0100 Petr Tesarik <[email protected]> wrote:

The driver uses test_facility(), but does not include the corresponding include file explicitly. The driver currently builds only thanks to the following include chain:

vfio_ap_drv.c

    <linux/module.h>
      <linux/elf.h>
        <asm/elf.h>
	  <linux/compat.h>
	    <asm/uaccess.h>
	      <asm/facility.h>

Files should not rely on such fragile implicit includes.

---
 drivers/s390/crypto/vfio_ap_drv.c | 1 +
 1 file changed, 1 insertion(+)
(quoted diff) +0 -0

b/drivers/s390/crypto/vfio_ap_drv.c index 7667b38728f0..31c6c847eaca 100644 --- a/drivers/s390/crypto/vfio_ap_drv.c
+++ b/drivers/s390/crypto/vfio_ap_drv.c

drivers/s390/crypto/vfio_ap_drv.c +1 -0
@@ -11,6 +11,7 @@
 #include <linux/mod_devicetable.h>
 #include <linux/slab.h>
 #include <linux/string.h>
+#include <asm/facility.h>
 #include "vfio_ap_private.h"
 
Quoted 3 lines

drivers/s390/crypto/vfio_ap_drv.c line 17

Quoted 1 line
drivers/s390/crypto/vfio_ap_drv.c +0 -0
 #define VFIO_AP_ROOT_NAME "vfio_ap"  

Applied. Is going to go via Martins S390 tree.

Thank you for the quick turnaround.

Petr Tesarik
SUSE HW Enablement Team