From: Vaishali Thakkar Date: Fri, 6 Mar 2015 13:22:28 +0000 (+0530) Subject: Staging: rtl8192u: Convert use of __constant_ to X-Git-Tag: omap-for-v4.1/fixes-rc1~165^2~138^2~416 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6465144c3d19ca1c2f5fb1dd12d0a6496254c85c;p=pandora-kernel.git Staging: rtl8192u: Convert use of __constant_ to Using functions of the form __constant_ isn't preferred outside of include/uapi/ as using the function without __constant_ is identical when the argument is a constant. So, this patch replaces __constant_htons with htons. This is done using Coccinelle and semantic patch used for this is as follows: @@identifier x;@@ ( - __constant_htons(x) + htons(x) | - __constant_htonl(x) + htonl(x) | - __constant_ntohs(x) + htons(x) | - __constant_ntohl(x) + htonl(x) ) Signed-off-by: Vaishali Thakkar Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed