summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2018-09-24 10:37:40 +0200
committerJohannes Berg <johannes.berg@intel.com>2018-09-24 10:37:40 +0200
commite1613d0c99e7ff352c0d59aa6a99ba1a3d8eb609 (patch)
tree4b2d728c3a26a7c67608514f0caeb35b511e5da9
parent946a4e77df5f239ac06daf852bd867352ff79000 (diff)
patches: make coredump support conditional on 4.17
On 4.16, the coredump method returns int rather than void. It would be possible to fix that up, but so far I'm too lazy. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--patches/0088-coredump.cocci16
1 files changed, 8 insertions, 8 deletions
diff --git a/patches/0088-coredump.cocci b/patches/0088-coredump.cocci
index 329e0315..917d6d2c 100644
--- a/patches/0088-coredump.cocci
+++ b/patches/0088-coredump.cocci
@@ -3,7 +3,7 @@ identifier drv, fn;
@@
static struct pci_driver drv = {
.driver = {
-+#if LINUX_VERSION_IS_GEQ(4,16,0)
++#if LINUX_VERSION_IS_GEQ(4,17,0)
.coredump = fn,
+#endif
...
@@ -14,7 +14,7 @@ static struct pci_driver drv = {
@r11 depends on r1@
identifier r1.fn;
@@
-+#if LINUX_VERSION_IS_GEQ(4,16,0)
++#if LINUX_VERSION_IS_GEQ(4,17,0)
fn(...)
{
...
@@ -26,7 +26,7 @@ fn(...)
identifier drv, fn;
@@
static struct pci_driver drv = {
-+#if LINUX_VERSION_IS_GEQ(4,16,0)
++#if LINUX_VERSION_IS_GEQ(4,17,0)
.driver.coredump = fn,
+#endif
...
@@ -35,7 +35,7 @@ identifier drv, fn;
@r21 depends on r2@
identifier r2.fn;
@@
-+#if LINUX_VERSION_IS_GEQ(4,16,0)
++#if LINUX_VERSION_IS_GEQ(4,17,0)
fn(...)
{
...
@@ -48,7 +48,7 @@ identifier drv, fn;
@@
static struct usb_driver drv = {
.drvwrap.driver = {
-+#if LINUX_VERSION_IS_GEQ(4,16,0)
++#if LINUX_VERSION_IS_GEQ(4,17,0)
.coredump = fn,
+#endif
...
@@ -60,7 +60,7 @@ static struct usb_driver drv = {
@r31 depends on r3@
identifier r3.fn;
@@
-+#if LINUX_VERSION_IS_GEQ(4,16,0)
++#if LINUX_VERSION_IS_GEQ(4,17,0)
fn(...)
{
...
@@ -73,7 +73,7 @@ identifier driver, fn;
@@
static struct sdio_driver driver = {
.drv = {
-+#if LINUX_VERSION_IS_GEQ(4,16,0)
++#if LINUX_VERSION_IS_GEQ(4,17,0)
.coredump = fn,
+#endif
...
@@ -85,7 +85,7 @@ identifier driver, fn;
@r41 depends on r4@
identifier r4.fn;
@@
-+#if LINUX_VERSION_IS_GEQ(4,16,0)
++#if LINUX_VERSION_IS_GEQ(4,17,0)
fn(...)
{
...