[PATCH 1/9] patches: do not add backports code for recent kernel versions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This caused a warning on recent kernel versions.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 patches/collateral-evolutions/network/0031-sk_data_ready.cocci | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/patches/collateral-evolutions/network/0031-sk_data_ready.cocci b/patches/collateral-evolutions/network/0031-sk_data_ready.cocci
index 3dc218c..2716edd 100644
--- a/patches/collateral-evolutions/network/0031-sk_data_ready.cocci
+++ b/patches/collateral-evolutions/network/0031-sk_data_ready.cocci
@@ -68,10 +68,12 @@ drv_data_ready(struct sock *sk)
 	...
 }
 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0)
 +static void backport_drv_data_ready(struct sock *sk, int unused)
 +{
 +	drv_data_ready(sk);
 +}
++#endif
 
 @ sk_data_ready_assigned_mod_e depends on sk_data_ready_assigned @
 expression E;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux