Skip to content

Commit

Permalink
KABI: Init base for KABI paddings
Browse files Browse the repository at this point in the history
Add KABI paddings for base.

Signed-off-by: Lugang He <helugang@uniontech.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
  • Loading branch information
Avenger-285714 committed Aug 28, 2024
1 parent 8d0bcfc commit 7a11a39
Show file tree
Hide file tree
Showing 84 changed files with 658 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/pci/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,15 @@ struct pci_sriov {
u16 subsystem_device; /* VF subsystem device */
resource_size_t barsz[PCI_SRIOV_NUM_BARS]; /* VF BAR size */
bool drivers_autoprobe; /* Auto probing of VFs by driver */

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
DEEPIN_KABI_RESERVE(3)
DEEPIN_KABI_RESERVE(4)
DEEPIN_KABI_RESERVE(5)
DEEPIN_KABI_RESERVE(6)
DEEPIN_KABI_RESERVE(7)
DEEPIN_KABI_RESERVE(8)
};

#ifdef CONFIG_PCI_DOE
Expand Down
5 changes: 5 additions & 0 deletions include/crypto/akcipher.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include <linux/atomic.h>
#include <linux/crypto.h>
#include <linux/deepin_kabi.h>

/**
* struct akcipher_request - public key request
Expand Down Expand Up @@ -127,6 +128,10 @@ struct akcipher_alg {
int (*init)(struct crypto_akcipher *tfm);
void (*exit)(struct crypto_akcipher *tfm);

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
DEEPIN_KABI_RESERVE(3)

#ifdef CONFIG_CRYPTO_STATS
struct crypto_istat_akcipher stat;
#endif
Expand Down
5 changes: 5 additions & 0 deletions include/crypto/public_key.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include <linux/keyctl.h>
#include <linux/oid_registry.h>
#include <linux/deepin_kabi.h>

/*
* Cryptographic data for the public-key subtype of the asymmetric key type.
Expand All @@ -32,6 +33,10 @@ struct public_key {
#define KEY_EFLAG_CA 0 /* set if the CA basic constraints is set */
#define KEY_EFLAG_DIGITALSIG 1 /* set if the digitalSignature usage is set */
#define KEY_EFLAG_KEYCERTSIGN 2 /* set if the keyCertSign usage is set */
DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
DEEPIN_KABI_RESERVE(3)
DEEPIN_KABI_RESERVE(4)
};

extern void public_key_free(struct public_key *key);
Expand Down
4 changes: 4 additions & 0 deletions include/linux/can/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/can.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/deepin_kabi.h>

#define DNAME(dev) ((dev) ? (dev)->name : "any")

Expand All @@ -32,6 +33,9 @@ struct can_proto {
int protocol;
const struct proto_ops *ops;
struct proto *prot;

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
};

/* required_size
Expand Down
6 changes: 6 additions & 0 deletions include/linux/can/dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/can/skb.h>
#include <linux/ethtool.h>
#include <linux/netdevice.h>
#include <linux/deepin_kabi.h>

/*
* CAN mode
Expand Down Expand Up @@ -85,6 +86,11 @@ struct can_priv {
int (*do_get_berr_counter)(const struct net_device *dev,
struct can_berr_counter *bec);
int (*do_get_auto_tdcv)(const struct net_device *dev, u32 *tdcv);

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
DEEPIN_KABI_RESERVE(3)
DEEPIN_KABI_RESERVE(4)
};

static inline bool can_tdc_is_enabled(const struct can_priv *priv)
Expand Down
4 changes: 4 additions & 0 deletions include/linux/can/rx-offload.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include <linux/netdevice.h>
#include <linux/can.h>
#include <linux/deepin_kabi.h>

struct can_rx_offload {
struct net_device *dev;
Expand All @@ -29,6 +30,9 @@ struct can_rx_offload {
struct napi_struct napi;

bool inc;

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
};

int can_rx_offload_add_timestamp(struct net_device *dev,
Expand Down
5 changes: 5 additions & 0 deletions include/linux/cred.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/atomic.h>
#include <linux/uidgid.h>
#include <linux/sched.h>
#include <linux/deepin_kabi.h>
#include <linux/sched/user.h>

struct cred;
Expand Down Expand Up @@ -143,6 +144,10 @@ struct cred {
int non_rcu; /* Can we skip RCU deletion? */
struct rcu_head rcu; /* RCU deletion hook */
};
DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
DEEPIN_KABI_RESERVE(3)
DEEPIN_KABI_RESERVE(4)
} __randomize_layout;

extern void __put_cred(struct cred *);
Expand Down
10 changes: 10 additions & 0 deletions include/linux/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#ifndef _DEVICE_H_
#define _DEVICE_H_

#include <linux/deepin_kabi.h>
#include <linux/dev_printk.h>
#include <linux/energy_model.h>
#include <linux/ioport.h>
Expand Down Expand Up @@ -805,6 +806,15 @@ struct device {
#ifdef CONFIG_DMA_OPS_BYPASS
bool dma_ops_bypass : 1;
#endif
DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
DEEPIN_KABI_RESERVE(3)
DEEPIN_KABI_RESERVE(4)
DEEPIN_KABI_RESERVE(5)
DEEPIN_KABI_RESERVE(6)
DEEPIN_KABI_RESERVE(7)
DEEPIN_KABI_RESERVE(8)

};

/**
Expand Down
6 changes: 6 additions & 0 deletions include/linux/device/class.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/klist.h>
#include <linux/pm.h>
#include <linux/device/bus.h>
#include <linux/deepin_kabi.h>

struct device;
struct fwnode_handle;
Expand Down Expand Up @@ -69,6 +70,11 @@ struct class {
void (*get_ownership)(const struct device *dev, kuid_t *uid, kgid_t *gid);

const struct dev_pm_ops *pm;

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
DEEPIN_KABI_RESERVE(3)
DEEPIN_KABI_RESERVE(4)
};

struct class_dev_iter {
Expand Down
6 changes: 6 additions & 0 deletions include/linux/device/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#ifndef _DEVICE_DRIVER_H_
#define _DEVICE_DRIVER_H_

#include <linux/deepin_kabi.h>
#include <linux/kobject.h>
#include <linux/klist.h>
#include <linux/pm.h>
Expand Down Expand Up @@ -119,6 +120,11 @@ struct device_driver {
void (*coredump) (struct device *dev);

struct driver_private *p;

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
DEEPIN_KABI_RESERVE(3)
DEEPIN_KABI_RESERVE(4)
};


Expand Down
7 changes: 7 additions & 0 deletions include/linux/dma-map-ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <linux/dma-mapping.h>
#include <linux/pgtable.h>
#include <linux/slab.h>
#include <linux/deepin_kabi.h>

struct cma;

Expand Down Expand Up @@ -82,6 +83,12 @@ struct dma_map_ops {
size_t (*max_mapping_size)(struct device *dev);
size_t (*opt_mapping_size)(void);
unsigned long (*get_merge_boundary)(struct device *dev);
DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
DEEPIN_KABI_RESERVE(3)
DEEPIN_KABI_RESERVE(4)
DEEPIN_KABI_RESERVE(5)
DEEPIN_KABI_RESERVE(6)
};

#ifdef CONFIG_DMA_OPS
Expand Down
6 changes: 6 additions & 0 deletions include/linux/ethtool.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/if_ether.h>
#include <linux/netlink.h>
#include <uapi/linux/ethtool.h>
#include <linux/deepin_kabi.h>

struct compat_ethtool_rx_flow_spec {
u32 flow_type;
Expand Down Expand Up @@ -912,6 +913,11 @@ struct ethtool_ops {
int (*set_mm)(struct net_device *dev, struct ethtool_mm_cfg *cfg,
struct netlink_ext_ack *extack);
void (*get_mm_stats)(struct net_device *dev, struct ethtool_mm_stats *stats);

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
DEEPIN_KABI_RESERVE(3)
DEEPIN_KABI_RESERVE(4)
};

int ethtool_check_ops(const struct ethtool_ops *ops);
Expand Down
10 changes: 10 additions & 0 deletions include/linux/fwnode.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/list.h>
#include <linux/bits.h>
#include <linux/err.h>
#include <linux/deepin_kabi.h>

struct fwnode_operations;
struct device;
Expand Down Expand Up @@ -42,9 +43,13 @@ struct fwnode_handle {
struct fwnode_handle *secondary;
const struct fwnode_operations *ops;
struct device *dev;

struct list_head suppliers;
struct list_head consumers;
u8 flags;

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
};

/*
Expand Down Expand Up @@ -164,6 +169,11 @@ struct fwnode_operations {
void __iomem *(*iomap)(struct fwnode_handle *fwnode, int index);
int (*irq_get)(const struct fwnode_handle *fwnode, unsigned int index);
int (*add_links)(struct fwnode_handle *fwnode);

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
DEEPIN_KABI_RESERVE(3)
DEEPIN_KABI_RESERVE(4)
};

#define fwnode_has_op(fwnode, op) \
Expand Down
12 changes: 12 additions & 0 deletions include/linux/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/of.h> /* for struct device_node */
#include <linux/swab.h> /* for swab16 */
#include <uapi/linux/i2c.h>
#include <linux/deepin_kabi.h>

extern struct bus_type i2c_bus_type;
extern struct device_type i2c_adapter_type;
Expand Down Expand Up @@ -433,6 +434,8 @@ struct i2c_board_info {
const struct resource *resources;
unsigned int num_resources;
int irq;

DEEPIN_KABI_RESERVE(1)
};

/**
Expand Down Expand Up @@ -566,6 +569,9 @@ struct i2c_algorithm {
int (*reg_slave)(struct i2c_client *client);
int (*unreg_slave)(struct i2c_client *client);
#endif

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
};

/**
Expand Down Expand Up @@ -655,6 +661,9 @@ struct i2c_bus_recovery_info {
struct pinctrl *pinctrl;
struct pinctrl_state *pins_default;
struct pinctrl_state *pins_gpio;

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
};

int i2c_recover_bus(struct i2c_adapter *adap);
Expand Down Expand Up @@ -746,6 +755,9 @@ struct i2c_adapter {

struct irq_domain *host_notify_domain;
struct regulator *bus_regulator;

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
};
#define to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev)

Expand Down
4 changes: 4 additions & 0 deletions include/linux/inetdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/sysctl.h>
#include <linux/rtnetlink.h>
#include <linux/refcount.h>
#include <linux/deepin_kabi.h>

struct ipv4_devconf {
void *sysctl;
Expand Down Expand Up @@ -50,6 +51,9 @@ struct in_device {
struct neigh_parms *arp_parms;
struct ipv4_devconf cnf;
struct rcu_head rcu_head;

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
};

#define IPV4_DEVCONF(cnf, attr) ((cnf).data[IPV4_DEVCONF_ ## attr - 1])
Expand Down
3 changes: 3 additions & 0 deletions include/linux/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <linux/fs.h>
#include <linux/timer.h>
#include <linux/mod_devicetable.h>
#include <linux/deepin_kabi.h>

struct input_dev_poller;

Expand Down Expand Up @@ -209,6 +210,8 @@ struct input_dev {
ktime_t timestamp[INPUT_CLK_MAX];

bool inhibited;
DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
};
#define to_input_dev(d) container_of(d, struct input_dev, dev)

Expand Down
14 changes: 14 additions & 0 deletions include/linux/iommu.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/err.h>
#include <linux/of.h>
#include <uapi/linux/iommu.h>
#include <linux/deepin_kabi.h>

#define IOMMU_READ (1 << 0)
#define IOMMU_WRITE (1 << 1)
Expand Down Expand Up @@ -111,6 +112,11 @@ struct iommu_domain {
int users;
};
};

DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
DEEPIN_KABI_RESERVE(3)
DEEPIN_KABI_RESERVE(4)
};

static inline bool iommu_is_dma_domain(struct iommu_domain *domain)
Expand Down Expand Up @@ -294,6 +300,14 @@ struct iommu_ops {
const struct iommu_domain_ops *default_domain_ops;
unsigned long pgsize_bitmap;
struct module *owner;
DEEPIN_KABI_RESERVE(1)
DEEPIN_KABI_RESERVE(2)
DEEPIN_KABI_RESERVE(3)
DEEPIN_KABI_RESERVE(4)
DEEPIN_KABI_RESERVE(5)
DEEPIN_KABI_RESERVE(6)
DEEPIN_KABI_RESERVE(7)
DEEPIN_KABI_RESERVE(8)
};

/**
Expand Down
Loading

0 comments on commit 7a11a39

Please sign in to comment.