diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 13:47:16 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 15:07:20 +0100 |
commit | 96545da02b05515745f26db43ed64c81c1da14a9 (patch) | |
tree | 2b73677fe4e9e031414a5eb799367d458142fa23 /patches | |
parent | 897008ac39ffa050180009e1c7783bd19315259b (diff) |
backports: add ifdefs to PCI error handler reset_notify
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'patches')
-rw-r--r-- | patches/0076-reset-notify.cocci | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/0076-reset-notify.cocci b/patches/0076-reset-notify.cocci new file mode 100644 index 00000000..e6ad7a02 --- /dev/null +++ b/patches/0076-reset-notify.cocci @@ -0,0 +1,19 @@ +@@ +identifier handlers; +identifier fn; +@@ +struct pci_error_handlers handlers = { ++#if LINUX_VERSION_IS_GEQ(3,16,0) +.reset_notify = fn, ++#endif + }; + +@@ +identifier handlers; +identifier fn; +@@ +struct pci_error_handlers handlers[] = {{ ++#if LINUX_VERSION_IS_GEQ(3,16,0) +.reset_notify = fn, ++#endif + }}; |