Commit 9efeccac authored by Michael S. Tsirkin's avatar Michael S. Tsirkin

linux: drop __bitwise__ everywhere

__bitwise__ used to mean "yes, please enable sparse checks
unconditionally", but now that we dropped __CHECK_ENDIAN__
__bitwise is exactly the same.
There aren't many users, replace it by __bitwise everywhere.
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: default avatarStefan Schmidt <stefan@osg.samsung.com>
Acked-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Akced-by: default avatarLee Duncan <lduncan@suse.com>
parent 46d832f5
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <linux/types.h> #include <linux/types.h>
typedef unsigned int __bitwise__ samsung_gpio_pull_t; typedef unsigned int __bitwise samsung_gpio_pull_t;
/* forward declaration if gpio-core.h hasn't been included */ /* forward declaration if gpio-core.h hasn't been included */
struct samsung_gpio_chip; struct samsung_gpio_chip;
......
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
* discard bitset. * discard bitset.
*/ */
typedef dm_block_t __bitwise__ dm_oblock_t; typedef dm_block_t __bitwise dm_oblock_t;
typedef uint32_t __bitwise__ dm_cblock_t; typedef uint32_t __bitwise dm_cblock_t;
typedef dm_block_t __bitwise__ dm_dblock_t; typedef dm_block_t __bitwise dm_dblock_t;
static inline dm_oblock_t to_oblock(dm_block_t b) static inline dm_oblock_t to_oblock(dm_block_t b)
{ {
......
...@@ -302,7 +302,7 @@ ...@@ -302,7 +302,7 @@
* Always write the address first before setting the ownership * Always write the address first before setting the ownership
* bits to avoid races with the hardware scanning the ring. * bits to avoid races with the hardware scanning the ring.
*/ */
typedef u32 __bitwise__ hme32; typedef u32 __bitwise hme32;
struct happy_meal_rxd { struct happy_meal_rxd {
hme32 rx_flags; hme32 rx_flags;
......
...@@ -228,7 +228,7 @@ enum iwl_ucode_tlv_flag { ...@@ -228,7 +228,7 @@ enum iwl_ucode_tlv_flag {
IWL_UCODE_TLV_FLAGS_BCAST_FILTERING = BIT(29), IWL_UCODE_TLV_FLAGS_BCAST_FILTERING = BIT(29),
}; };
typedef unsigned int __bitwise__ iwl_ucode_tlv_api_t; typedef unsigned int __bitwise iwl_ucode_tlv_api_t;
/** /**
* enum iwl_ucode_tlv_api - ucode api * enum iwl_ucode_tlv_api - ucode api
...@@ -258,7 +258,7 @@ enum iwl_ucode_tlv_api { ...@@ -258,7 +258,7 @@ enum iwl_ucode_tlv_api {
#endif #endif
}; };
typedef unsigned int __bitwise__ iwl_ucode_tlv_capa_t; typedef unsigned int __bitwise iwl_ucode_tlv_capa_t;
/** /**
* enum iwl_ucode_tlv_capa - ucode capabilities * enum iwl_ucode_tlv_capa - ucode capabilities
......
...@@ -246,7 +246,7 @@ struct lruvec { ...@@ -246,7 +246,7 @@ struct lruvec {
#define ISOLATE_UNEVICTABLE ((__force isolate_mode_t)0x8) #define ISOLATE_UNEVICTABLE ((__force isolate_mode_t)0x8)
/* LRU Isolation modes. */ /* LRU Isolation modes. */
typedef unsigned __bitwise__ isolate_mode_t; typedef unsigned __bitwise isolate_mode_t;
enum zone_watermarks { enum zone_watermarks {
WMARK_MIN, WMARK_MIN,
......
...@@ -111,8 +111,8 @@ struct uart_icount { ...@@ -111,8 +111,8 @@ struct uart_icount {
__u32 buf_overrun; __u32 buf_overrun;
}; };
typedef unsigned int __bitwise__ upf_t; typedef unsigned int __bitwise upf_t;
typedef unsigned int __bitwise__ upstat_t; typedef unsigned int __bitwise upstat_t;
struct uart_port { struct uart_port {
spinlock_t lock; /* port lock */ spinlock_t lock; /* port lock */
......
...@@ -154,8 +154,8 @@ typedef u64 dma_addr_t; ...@@ -154,8 +154,8 @@ typedef u64 dma_addr_t;
typedef u32 dma_addr_t; typedef u32 dma_addr_t;
#endif #endif
typedef unsigned __bitwise__ gfp_t; typedef unsigned __bitwise gfp_t;
typedef unsigned __bitwise__ fmode_t; typedef unsigned __bitwise fmode_t;
#ifdef CONFIG_PHYS_ADDR_T_64BIT #ifdef CONFIG_PHYS_ADDR_T_64BIT
typedef u64 phys_addr_t; typedef u64 phys_addr_t;
......
...@@ -74,7 +74,7 @@ static inline int iscsi_sna_gte(u32 n1, u32 n2) ...@@ -74,7 +74,7 @@ static inline int iscsi_sna_gte(u32 n1, u32 n2)
#define zero_data(p) {p[0]=0;p[1]=0;p[2]=0;} #define zero_data(p) {p[0]=0;p[1]=0;p[2]=0;}
/* initiator tags; opaque for target */ /* initiator tags; opaque for target */
typedef uint32_t __bitwise__ itt_t; typedef uint32_t __bitwise itt_t;
/* below makes sense only for initiator that created this tag */ /* below makes sense only for initiator that created this tag */
#define build_itt(itt, age) ((__force itt_t)\ #define build_itt(itt, age) ((__force itt_t)\
((itt) | ((age) << ISCSI_AGE_SHIFT))) ((itt) | ((age) << ISCSI_AGE_SHIFT)))
......
...@@ -149,7 +149,7 @@ enum se_cmd_flags_table { ...@@ -149,7 +149,7 @@ enum se_cmd_flags_table {
* Used by transport_send_check_condition_and_sense() * Used by transport_send_check_condition_and_sense()
* to signal which ASC/ASCQ sense payload should be built. * to signal which ASC/ASCQ sense payload should be built.
*/ */
typedef unsigned __bitwise__ sense_reason_t; typedef unsigned __bitwise sense_reason_t;
enum tcm_sense_reason_table { enum tcm_sense_reason_table {
#define R(x) (__force sense_reason_t )(x) #define R(x) (__force sense_reason_t )(x)
......
...@@ -39,8 +39,8 @@ ...@@ -39,8 +39,8 @@
* - __le{16,32,64} for standard-compliant virtio devices * - __le{16,32,64} for standard-compliant virtio devices
*/ */
typedef __u16 __bitwise__ __virtio16; typedef __u16 __bitwise __virtio16;
typedef __u32 __bitwise__ __virtio32; typedef __u32 __bitwise __virtio32;
typedef __u64 __bitwise__ __virtio64; typedef __u64 __bitwise __virtio64;
#endif /* _UAPI_LINUX_VIRTIO_TYPES_H */ #endif /* _UAPI_LINUX_VIRTIO_TYPES_H */
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include <net/inet_frag.h> #include <net/inet_frag.h>
#include <net/6lowpan.h> #include <net/6lowpan.h>
typedef unsigned __bitwise__ lowpan_rx_result; typedef unsigned __bitwise lowpan_rx_result;
#define RX_CONTINUE ((__force lowpan_rx_result) 0u) #define RX_CONTINUE ((__force lowpan_rx_result) 0u)
#define RX_DROP_UNUSABLE ((__force lowpan_rx_result) 1u) #define RX_DROP_UNUSABLE ((__force lowpan_rx_result) 1u)
#define RX_DROP ((__force lowpan_rx_result) 2u) #define RX_DROP ((__force lowpan_rx_result) 2u)
......
...@@ -159,7 +159,7 @@ enum ieee80211_bss_valid_data_flags { ...@@ -159,7 +159,7 @@ enum ieee80211_bss_valid_data_flags {
IEEE80211_BSS_VALID_ERP = BIT(3) IEEE80211_BSS_VALID_ERP = BIT(3)
}; };
typedef unsigned __bitwise__ ieee80211_tx_result; typedef unsigned __bitwise ieee80211_tx_result;
#define TX_CONTINUE ((__force ieee80211_tx_result) 0u) #define TX_CONTINUE ((__force ieee80211_tx_result) 0u)
#define TX_DROP ((__force ieee80211_tx_result) 1u) #define TX_DROP ((__force ieee80211_tx_result) 1u)
#define TX_QUEUED ((__force ieee80211_tx_result) 2u) #define TX_QUEUED ((__force ieee80211_tx_result) 2u)
...@@ -180,7 +180,7 @@ struct ieee80211_tx_data { ...@@ -180,7 +180,7 @@ struct ieee80211_tx_data {
}; };
typedef unsigned __bitwise__ ieee80211_rx_result; typedef unsigned __bitwise ieee80211_rx_result;
#define RX_CONTINUE ((__force ieee80211_rx_result) 0u) #define RX_CONTINUE ((__force ieee80211_rx_result) 0u)
#define RX_DROP_UNUSABLE ((__force ieee80211_rx_result) 1u) #define RX_DROP_UNUSABLE ((__force ieee80211_rx_result) 1u)
#define RX_DROP_MONITOR ((__force ieee80211_rx_result) 2u) #define RX_DROP_MONITOR ((__force ieee80211_rx_result) 2u)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment