]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
linux: drop __bitwise__ everywhere
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 11 Dec 2016 04:34:53 +0000 (06:34 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 15 Dec 2016 22:13:41 +0000 (00:13 +0200)
__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: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Stefan Schmidt <stefan@osg.samsung.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Akced-by: Lee Duncan <lduncan@suse.com>
12 files changed:
arch/arm/plat-samsung/include/plat/gpio-cfg.h
drivers/md/dm-cache-block-types.h
drivers/net/ethernet/sun/sunhme.h
drivers/net/wireless/intel/iwlwifi/iwl-fw-file.h
include/linux/mmzone.h
include/linux/serial_core.h
include/linux/types.h
include/scsi/iscsi_proto.h
include/target/target_core_base.h
include/uapi/linux/virtio_types.h
net/ieee802154/6lowpan/6lowpan_i.h
net/mac80211/ieee80211_i.h

index 21391faab068b5eb6bc027af7874f1e0defd8471..e55d1f597db8af85c2aaa6a6836a568030f9593c 100644 (file)
@@ -26,7 +26,7 @@
 
 #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 */
 struct samsung_gpio_chip;
index bed4ad4e1b7c037c107813eabb87d6bb4650b9b1..389c9e8ac785877cb91ac0f36e37b67051f80454 100644 (file)
@@ -17,9 +17,9 @@
  * discard bitset.
  */
 
-typedef dm_block_t __bitwise__ dm_oblock_t;
-typedef uint32_t __bitwise__ dm_cblock_t;
-typedef dm_block_t __bitwise__ dm_dblock_t;
+typedef dm_block_t __bitwise dm_oblock_t;
+typedef uint32_t __bitwise dm_cblock_t;
+typedef dm_block_t __bitwise dm_dblock_t;
 
 static inline dm_oblock_t to_oblock(dm_block_t b)
 {
index f4307654e4ae623c519a43b1202d3bec1949ffe2..4a8d5b18dfd5738d9254706b84174eb801f6c562 100644 (file)
  * Always write the address first before setting the ownership
  * bits to avoid races with the hardware scanning the ring.
  */
-typedef u32 __bitwise__ hme32;
+typedef u32 __bitwise hme32;
 
 struct happy_meal_rxd {
        hme32 rx_flags;
index 1ad0ec180d5dc25990a905873eefb3226d99c133..84813b550ef196566821c545ded9eca0b0568d09 100644 (file)
@@ -228,7 +228,7 @@ enum iwl_ucode_tlv_flag {
        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
@@ -258,7 +258,7 @@ enum iwl_ucode_tlv_api {
 #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
index 0f088f3a2fed8df6435819a52360940310272462..36d9896fbc1eb0d12e60682f15e96648c13ebf98 100644 (file)
@@ -246,7 +246,7 @@ struct lruvec {
 #define ISOLATE_UNEVICTABLE    ((__force isolate_mode_t)0x8)
 
 /* LRU Isolation modes. */
-typedef unsigned __bitwise__ isolate_mode_t;
+typedef unsigned __bitwise isolate_mode_t;
 
 enum zone_watermarks {
        WMARK_MIN,
index 5d494888a612a8a33c4f022bf7a6c77c5e5a24f8..5def8e830fb0ea1f62c084a89f31a4851ee191b4 100644 (file)
@@ -111,8 +111,8 @@ struct uart_icount {
        __u32   buf_overrun;
 };
 
-typedef unsigned int __bitwise__ upf_t;
-typedef unsigned int __bitwise__ upstat_t;
+typedef unsigned int __bitwise upf_t;
+typedef unsigned int __bitwise upstat_t;
 
 struct uart_port {
        spinlock_t              lock;                   /* port lock */
index baf718324f4ab5bbd10d0a9ffa7069fdba8b2f18..d501ad3ba2478c6ef23e01c3449bb129c5b181aa 100644 (file)
@@ -154,8 +154,8 @@ typedef u64 dma_addr_t;
 typedef u32 dma_addr_t;
 #endif
 
-typedef unsigned __bitwise__ gfp_t;
-typedef unsigned __bitwise__ fmode_t;
+typedef unsigned __bitwise gfp_t;
+typedef unsigned __bitwise fmode_t;
 
 #ifdef CONFIG_PHYS_ADDR_T_64BIT
 typedef u64 phys_addr_t;
index c1260d80ef30da9e91bea68ce0ae71eae304362b..df156f1d50b2d7e74297e2606ec5e4792f86d24e 100644 (file)
@@ -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;}
 
 /* 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 */
 #define build_itt(itt, age) ((__force itt_t)\
        ((itt) | ((age) << ISCSI_AGE_SHIFT)))
index c2119008990a36a54b43ee66d57024df6330e893..00558287936d9a0bcc2e386e8fa0b2bcb9af4f97 100644 (file)
@@ -149,7 +149,7 @@ enum se_cmd_flags_table {
  * Used by transport_send_check_condition_and_sense()
  * 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 {
 #define R(x)   (__force sense_reason_t )(x)
index e845e8c4cbee8a2553a681491dbbea9350b76a3d..55c3b738722ca44530192f57c64a68dbce5482f8 100644 (file)
@@ -39,8 +39,8 @@
  * - __le{16,32,64} for standard-compliant virtio devices
  */
 
-typedef __u16 __bitwise__ __virtio16;
-typedef __u32 __bitwise__ __virtio32;
-typedef __u64 __bitwise__ __virtio64;
+typedef __u16 __bitwise __virtio16;
+typedef __u32 __bitwise __virtio32;
+typedef __u64 __bitwise __virtio64;
 
 #endif /* _UAPI_LINUX_VIRTIO_TYPES_H */
index 5ac778962e4ee4895903f707c00d7750a104b3bd..ac7c96b73ad568c17681e0099a86aef92c208a79 100644 (file)
@@ -7,7 +7,7 @@
 #include <net/inet_frag.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_DROP_UNUSABLE       ((__force lowpan_rx_result) 1u)
 #define RX_DROP                        ((__force lowpan_rx_result) 2u)
index d37a577f63a1809b3ef56bfa471d46241edd0de5..b2069fbd60f9e13a7888a3daed3fba789cd3593b 100644 (file)
@@ -159,7 +159,7 @@ enum ieee80211_bss_valid_data_flags {
        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_DROP                ((__force ieee80211_tx_result) 1u)
 #define TX_QUEUED      ((__force ieee80211_tx_result) 2u)
@@ -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_DROP_UNUSABLE       ((__force ieee80211_rx_result) 1u)
 #define RX_DROP_MONITOR                ((__force ieee80211_rx_result) 2u)