Merge tag 'Wimplicit-fallthrough-clang-5.14-rc1' of git://git.kernel.org/pub/scm...
[linux-2.6-microblaze.git] / net / bluetooth / msft.c
index e28f154..b4bfae4 100644 (file)
@@ -34,12 +34,12 @@ struct msft_le_monitor_advertisement_pattern {
        __u8 length;
        __u8 data_type;
        __u8 start_byte;
-       __u8 pattern[0];
+       __u8 pattern[];
 };
 
 struct msft_le_monitor_advertisement_pattern_data {
        __u8 count;
-       __u8 data[0];
+       __u8 data[];
 };
 
 struct msft_cp_le_monitor_advertisement {
@@ -49,7 +49,7 @@ struct msft_cp_le_monitor_advertisement {
        __u8 rssi_low_interval;
        __u8 rssi_sampling_period;
        __u8 cond_type;
-       __u8 data[0];
+       __u8 data[];
 } __packed;
 
 struct msft_rp_le_monitor_advertisement {
@@ -311,7 +311,7 @@ static void msft_le_monitor_advertisement_cb(struct hci_dev *hdev,
 
        monitor = idr_find(&hdev->adv_monitors_idr, msft->pending_add_handle);
        if (!monitor) {
-               bt_dev_err(hdev, "msft add advmon: monitor %d is not found!",
+               bt_dev_err(hdev, "msft add advmon: monitor %u is not found!",
                           msft->pending_add_handle);
                status = HCI_ERROR_UNSPECIFIED;
                goto unlock;