From: Sergey Senozhatsky Date: Mon, 18 Mar 2019 11:22:21 +0000 (+0900) Subject: staging: rtl8723bs: do not use __constant_cpu_to_le16 X-Git-Tag: v5.4-rc1~1076^2~363 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=403fa6deca578f2eabc59d54dd58d1802fe04c9a;p=platform%2Fkernel%2Flinux-rpi.git staging: rtl8723bs: do not use __constant_cpu_to_le16 cpu_to_le16() is capable enough to detect __builtin_constant_p() and to use an appropriate compile time ___constant_swahbXX() function. So we can use cpu_to_le16() instead of __constant_cpu_to_le16(). Signed-off-by: Sergey Senozhatsky Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/include/wifi.h b/drivers/staging/rtl8723bs/include/wifi.h index 559bf26..1e79e6f 100644 --- a/drivers/staging/rtl8723bs/include/wifi.h +++ b/drivers/staging/rtl8723bs/include/wifi.h @@ -266,8 +266,8 @@ enum WIFI_REG_DOMAIN { #define SetFrameType(pbuf, type) \ do { \ - *(unsigned short *)(pbuf) &= __constant_cpu_to_le16(~(BIT(3) | BIT(2))); \ - *(unsigned short *)(pbuf) |= __constant_cpu_to_le16(type); \ + *(unsigned short *)(pbuf) &= cpu_to_le16(~(BIT(3) | BIT(2))); \ + *(unsigned short *)(pbuf) |= cpu_to_le16(type); \ } while (0) #define GetFrameSubType(pbuf) (le16_to_cpu(*(__le16 *)(pbuf)) & (BIT(7) |\