History

Merge tag 'noinstr-x86-kvm-2020-05-16' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into HEAD

Paolo Bonzini committed 6 years ago

Commit 9d5272f2 parents febd668 3a7c8fa868 files · +8779 −4517Browse files

Showing the changes to include/uapi/linux (10 of 868 files). Show all

Unified · Split

10 files
  1. include/uapi/linux/bpf.h +2 −2
  2. include/uapi/linux/dlm_device.h +2 −2
  3. include/uapi/linux/dma-buf.h +6 −0
  4. include/uapi/linux/fiemap.h +1 −1
  5. include/uapi/linux/hyperv.h +2 −2
  6. include/uapi/linux/if_arcnet.h +3 −3
  7. include/uapi/linux/mmc/ioctl.h +1 −1
  8. include/uapi/linux/net_dropmon.h +2 −2
  9. include/uapi/linux/netfilter_bridge/ebt_among.h +1 −1
  10. include/uapi/linux/virtio_balloon.h +9 −2
include/uapi/linux/bpf.h+2−2
@@ -73,7 +73,7 @@ struct bpf_insn { · 72 unmodified lines
7373 /* Key of an a BPF_MAP_TYPE_LPM_TRIE entry */
7474 struct bpf_lpm_trie_key {
7575 __u32 prefixlen; /* up to 32 for AF_INET, 128 for AF_INET6 */
76− __u8 data[]; /* Arbitrary size */
76+ __u8 data[0]; /* Arbitrary size */
7777 };
7878
7979 struct bpf_cgroup_storage_key {
@@ -1642,7 +1642,7 @@ union bpf_attr { · 1562 unmodified lines
16421642 * ifindex, but doesn't require a map to do so.
16431643 * Return
16441644 * **XDP_REDIRECT** on success, or the value of the two lower bits
1645− * of the **flags* argument on error.
1645+ * of the *flags* argument on error.
16461646 *
16471647 * int bpf_sk_redirect_map(struct sk_buff *skb, struct bpf_map *map, u32 key, u64 flags)
16481648 * Description
include/uapi/linux/dlm_device.h+2−2
@@ -45,13 +45,13 @@ struct dlm_lock_params { · 44 unmodified lines
4545 void __user *bastaddr;
4646 struct dlm_lksb __user *lksb;
4747 char lvb[DLM_USER_LVB_LEN];
48− char name[];
48+ char name[0];
4949 };
5050
5151 struct dlm_lspace_params {
5252 __u32 flags;
5353 __u32 minor;
54− char name[];
54+ char name[0];
5555 };
5656
5757 struct dlm_purge_params {
include/uapi/linux/dma-buf.h+6−0
@@ -39,6 +39,12 @@ struct dma_buf_sync { · 38 unmodified lines
3939
4040 #define DMA_BUF_BASE 'b'
4141 #define DMA_BUF_IOCTL_SYNC _IOW(DMA_BUF_BASE, 0, struct dma_buf_sync)
42+
43+/* 32/64bitness of this uapi was botched in android, there's no difference
44+ * between them in actual uapi, they're just different numbers.
45+ */
4246 #define DMA_BUF_SET_NAME _IOW(DMA_BUF_BASE, 1, const char *)
47+#define DMA_BUF_SET_NAME_A _IOW(DMA_BUF_BASE, 1, u32)
48+#define DMA_BUF_SET_NAME_B _IOW(DMA_BUF_BASE, 1, u64)
4349
4450 #endif
include/uapi/linux/fiemap.h+1−1
@@ -34,7 +34,7 @@ struct fiemap { · 33 unmodified lines
3434 __u32 fm_mapped_extents;/* number of extents that were mapped (out) */
3535 __u32 fm_extent_count; /* size of fm_extents array (in) */
3636 __u32 fm_reserved;
37− struct fiemap_extent fm_extents[]; /* array of mapped extents (out) */
37+ struct fiemap_extent fm_extents[0]; /* array of mapped extents (out) */
3838 };
3939
4040 #define FIEMAP_MAX_OFFSET (~0ULL)
include/uapi/linux/hyperv.h+2−2
@@ -119,8 +119,8 @@ enum hv_fcopy_op { · 118 unmodified lines
119119
120120 struct hv_fcopy_hdr {
121121 __u32 operation;
122− uuid_le service_id0; /* currently unused */
123− uuid_le service_id1; /* currently unused */
122+ __u8 service_id0[16]; /* currently unused */
123+ __u8 service_id1[16]; /* currently unused */
124124 } __attribute__((packed));
125125
126126 #define OVER_WRITE 0x1
include/uapi/linux/if_arcnet.h+3−3
@@ -60,7 +60,7 @@ struct arc_rfc1201 { · 59 unmodified lines
6060 __u8 proto; /* protocol ID field - varies */
6161 __u8 split_flag; /* for use with split packets */
6262 __be16 sequence; /* sequence number */
63− __u8 payload[]; /* space remaining in packet (504 bytes)*/
63+ __u8 payload[0]; /* space remaining in packet (504 bytes)*/
6464 };
6565 #define RFC1201_HDR_SIZE 4
6666
@@ -69,7 +69,7 @@ struct arc_rfc1201 { · 2 unmodified lines
6969 */
7070 struct arc_rfc1051 {
7171 __u8 proto; /* ARC_P_RFC1051_ARP/RFC1051_IP */
72− __u8 payload[]; /* 507 bytes */
72+ __u8 payload[0]; /* 507 bytes */
7373 };
7474 #define RFC1051_HDR_SIZE 1
7575
@@ -80,7 +80,7 @@ struct arc_rfc1051 { · 4 unmodified lines
8080 struct arc_eth_encap {
8181 __u8 proto; /* Always ARC_P_ETHER */
8282 struct ethhdr eth; /* standard ethernet header (yuck!) */
83− __u8 payload[]; /* 493 bytes */
83+ __u8 payload[0]; /* 493 bytes */
8484 };
8585 #define ETH_ENCAP_HDR_SIZE 14
8686
include/uapi/linux/mmc/ioctl.h+1−1
@@ -57,7 +57,7 @@ struct mmc_ioc_cmd { · 56 unmodified lines
5757 */
5858 struct mmc_ioc_multi_cmd {
5959 __u64 num_of_cmds;
60− struct mmc_ioc_cmd cmds[];
60+ struct mmc_ioc_cmd cmds[0];
6161 };
6262
6363 #define MMC_IOC_CMD _IOWR(MMC_BLOCK_MAJOR, 0, struct mmc_ioc_cmd)
include/uapi/linux/net_dropmon.h+2−2
@@ -29,12 +29,12 @@ struct net_dm_config_entry { · 28 unmodified lines
2929
3030 struct net_dm_config_msg {
3131 __u32 entries;
32− struct net_dm_config_entry options[];
32+ struct net_dm_config_entry options[0];
3333 };
3434
3535 struct net_dm_alert_msg {
3636 __u32 entries;
37− struct net_dm_drop_point points[];
37+ struct net_dm_drop_point points[0];
3838 };
3939
4040 struct net_dm_user_msg {
include/uapi/linux/netfilter_bridge/ebt_among.h+1−1
@@ -40,7 +40,7 @@ struct ebt_mac_wormhash_tuple { · 39 unmodified lines
4040 struct ebt_mac_wormhash {
4141 int table[257];
4242 int poolsize;
43− struct ebt_mac_wormhash_tuple pool[];
43+ struct ebt_mac_wormhash_tuple pool[0];
4444 };
4545
4646 #define ebt_mac_wormhash_size(x) ((x) ? sizeof(struct ebt_mac_wormhash) \
include/uapi/linux/virtio_balloon.h+9−2
@@ -48,8 +48,15 @@ struct virtio_balloon_config { · 47 unmodified lines
4848 __u32 num_pages;
4949 /* Number of pages we've actually got in balloon. */
5050 __u32 actual;
51− /* Free page report command id, readonly by guest */
52− __u32 free_page_report_cmd_id;
51+ /*
52+ * Free page hint command id, readonly by guest.
53+ * Was previously named free_page_report_cmd_id so we
54+ * need to carry that name for legacy support.
55+ */
56+ union {
57+ __u32 free_page_hint_cmd_id;
58+ __u32 free_page_report_cmd_id; /* deprecated */
59+ };
5360 /* Stores PAGE_POISON if page poisoning is in use */
5461 __u32 poison_val;
5562 };