History

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.

Michael S. Tsirkin committed 9 years ago

Commit 9efecca1 parent 46d832f12 files · +20 −20Browse files

Unified · Split

12 files
  1. arch/arm/plat-samsung/include/plat/gpio-cfg.h +1 −1
  2. drivers/md/dm-cache-block-types.h +3 −3
  3. drivers/net/ethernet/sun/sunhme.h +1 −1
  4. drivers/net/wireless/intel/iwlwifi/iwl-fw-file.h +2 −2
  5. include/linux/mmzone.h +1 −1
  6. include/linux/serial_core.h +2 −2
  7. include/linux/types.h +2 −2
  8. include/scsi/iscsi_proto.h +1 −1
  9. include/target/target_core_base.h +1 −1
  10. include/uapi/linux/virtio_types.h +3 −3
  11. net/ieee802154/6lowpan/6lowpan_i.h +1 −1
  12. net/mac80211/ieee80211_i.h +2 −2
arch/arm/plat-samsung/include/plat/gpio-cfg.h+1−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626
2727 #include <linux/types.h>
2828
29−typedef unsigned int __bitwise__ samsung_gpio_pull_t;
29+typedef unsigned int __bitwise samsung_gpio_pull_t;
3030
3131 /* forward declaration if gpio-core.h hasn't been included */
3232 struct samsung_gpio_chip;
drivers/md/dm-cache-block-types.h+3−3
@@ -17,9 +17,9 @@ · 16 unmodified lines
1717 * discard bitset.
1818 */
1919
20−typedef dm_block_t __bitwise__ dm_oblock_t;
21−typedef uint32_t __bitwise__ dm_cblock_t;
22−typedef dm_block_t __bitwise__ dm_dblock_t;
20+typedef dm_block_t __bitwise dm_oblock_t;
21+typedef uint32_t __bitwise dm_cblock_t;
22+typedef dm_block_t __bitwise dm_dblock_t;
2323
2424 static inline dm_oblock_t to_oblock(dm_block_t b)
2525 {
drivers/net/ethernet/sun/sunhme.h+1−1
@@ -302,7 +302,7 @@ · 301 unmodified lines
302302 * Always write the address first before setting the ownership
303303 * bits to avoid races with the hardware scanning the ring.
304304 */
305−typedef u32 __bitwise__ hme32;
305+typedef u32 __bitwise hme32;
306306
307307 struct happy_meal_rxd {
308308 hme32 rx_flags;
drivers/net/wireless/intel/iwlwifi/iwl-fw-file.h+2−2
@@ -228,7 +228,7 @@ enum iwl_ucode_tlv_flag { · 227 unmodified lines
228228 IWL_UCODE_TLV_FLAGS_BCAST_FILTERING = BIT(29),
229229 };
230230
231−typedef unsigned int __bitwise__ iwl_ucode_tlv_api_t;
231+typedef unsigned int __bitwise iwl_ucode_tlv_api_t;
232232
233233 /**
234234 * enum iwl_ucode_tlv_api - ucode api
@@ -258,7 +258,7 @@ enum iwl_ucode_tlv_api { · 23 unmodified lines
258258 #endif
259259 };
260260
261−typedef unsigned int __bitwise__ iwl_ucode_tlv_capa_t;
261+typedef unsigned int __bitwise iwl_ucode_tlv_capa_t;
262262
263263 /**
264264 * enum iwl_ucode_tlv_capa - ucode capabilities
include/linux/mmzone.h+1−1
@@ -246,7 +246,7 @@ struct lruvec { · 245 unmodified lines
246246 #define ISOLATE_UNEVICTABLE ((__force isolate_mode_t)0x8)
247247
248248 /* LRU Isolation modes. */
249−typedef unsigned __bitwise__ isolate_mode_t;
249+typedef unsigned __bitwise isolate_mode_t;
250250
251251 enum zone_watermarks {
252252 WMARK_MIN,
include/linux/serial_core.h+2−2
@@ -111,8 +111,8 @@ struct uart_icount { · 110 unmodified lines
111111 __u32 buf_overrun;
112112 };
113113
114−typedef unsigned int __bitwise__ upf_t;
115−typedef unsigned int __bitwise__ upstat_t;
114+typedef unsigned int __bitwise upf_t;
115+typedef unsigned int __bitwise upstat_t;
116116
117117 struct uart_port {
118118 spinlock_t lock; /* port lock */
include/linux/types.h+2−2
@@ -154,8 +154,8 @@ typedef u64 dma_addr_t; · 153 unmodified lines
154154 typedef u32 dma_addr_t;
155155 #endif
156156
157−typedef unsigned __bitwise__ gfp_t;
158−typedef unsigned __bitwise__ fmode_t;
157+typedef unsigned __bitwise gfp_t;
158+typedef unsigned __bitwise fmode_t;
159159
160160 #ifdef CONFIG_PHYS_ADDR_T_64BIT
161161 typedef u64 phys_addr_t;
include/scsi/iscsi_proto.h+1−1
@@ -74,7 +74,7 @@ static inline int iscsi_sna_gte(u32 n1, u32 n2) · 73 unmodified lines
7474 #define zero_data(p) {p[0]=0;p[1]=0;p[2]=0;}
7575
7676 /* initiator tags; opaque for target */
77−typedef uint32_t __bitwise__ itt_t;
77+typedef uint32_t __bitwise itt_t;
7878 /* below makes sense only for initiator that created this tag */
7979 #define build_itt(itt, age) ((__force itt_t)\
8080 ((itt) | ((age) << ISCSI_AGE_SHIFT)))
include/target/target_core_base.h+1−1
@@ -149,7 +149,7 @@ enum se_cmd_flags_table { · 148 unmodified lines
149149 * Used by transport_send_check_condition_and_sense()
150150 * to signal which ASC/ASCQ sense payload should be built.
151151 */
152−typedef unsigned __bitwise__ sense_reason_t;
152+typedef unsigned __bitwise sense_reason_t;
153153
154154 enum tcm_sense_reason_table {
155155 #define R(x) (__force sense_reason_t )(x)
include/uapi/linux/virtio_types.h+3−3
@@ -39,8 +39,8 @@ · 38 unmodified lines
3939 * - __le{16,32,64} for standard-compliant virtio devices
4040 */
4141
42−typedef __u16 __bitwise__ __virtio16;
43−typedef __u32 __bitwise__ __virtio32;
44−typedef __u64 __bitwise__ __virtio64;
42+typedef __u16 __bitwise __virtio16;
43+typedef __u32 __bitwise __virtio32;
44+typedef __u64 __bitwise __virtio64;
4545
4646 #endif /* _UAPI_LINUX_VIRTIO_TYPES_H */
net/ieee802154/6lowpan/6lowpan_i.h+1−1
@@ -7,7 +7,7 @@ · 6 unmodified lines
77 #include <net/inet_frag.h>
88 #include <net/6lowpan.h>
99
10−typedef unsigned __bitwise__ lowpan_rx_result;
10+typedef unsigned __bitwise lowpan_rx_result;
1111 #define RX_CONTINUE ((__force lowpan_rx_result) 0u)
1212 #define RX_DROP_UNUSABLE ((__force lowpan_rx_result) 1u)
1313 #define RX_DROP ((__force lowpan_rx_result) 2u)
net/mac80211/ieee80211_i.h+2−2
@@ -159,7 +159,7 @@ enum ieee80211_bss_valid_data_flags { · 158 unmodified lines
159159 IEEE80211_BSS_VALID_ERP = BIT(3)
160160 };
161161
162−typedef unsigned __bitwise__ ieee80211_tx_result;
162+typedef unsigned __bitwise ieee80211_tx_result;
163163 #define TX_CONTINUE ((__force ieee80211_tx_result) 0u)
164164 #define TX_DROP ((__force ieee80211_tx_result) 1u)
165165 #define TX_QUEUED ((__force ieee80211_tx_result) 2u)
@@ -180,7 +180,7 @@ struct ieee80211_tx_data { · 14 unmodified lines
180180 };
181181
182182
183−typedef unsigned __bitwise__ ieee80211_rx_result;
183+typedef unsigned __bitwise ieee80211_rx_result;
184184 #define RX_CONTINUE ((__force ieee80211_rx_result) 0u)
185185 #define RX_DROP_UNUSABLE ((__force ieee80211_rx_result) 1u)
186186 #define RX_DROP_MONITOR ((__force ieee80211_rx_result) 2u)