mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen/treewide: Adjust parameter names and types
MISRA Rule 8.2 says that parameters must all have names. Rule 8.3 says that the names and types must match between declaration and definition. No functional change. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Michal Orzel <michal.orzel@amd.com>
This commit is contained in:
1 parent
8d061c5b7a
commit
7df89867c6
8 files changed
+16
-16
No files matched your search
@@ -98,7 +98,7 @@ struct pci_ecam_ops {
|
||||
unsigned int bus_shift;
|
||||
struct pci_ops pci_ops;
|
||||
int (*cfg_reg_index)(struct dt_device_node *dev);
|
||||
int (*init)(struct pci_config_window *);
|
||||
int (*init)(struct pci_config_window *cfg);
|
||||
};
|
||||
|
||||
/* Default ECAM ops */
|
||||
|
||||
@@ -135,9 +135,9 @@ static void pci_config_write(pci_sbdf_t sbdf, unsigned int reg,
|
||||
|
||||
#define PCI_OP_WRITE(size, type) \
|
||||
void pci_conf_write##size(pci_sbdf_t sbdf, \
|
||||
unsigned int reg, type val) \
|
||||
unsigned int reg, type data) \
|
||||
{ \
|
||||
pci_config_write(sbdf, reg, size / 8, val); \
|
||||
pci_config_write(sbdf, reg, size / 8, data); \
|
||||
}
|
||||
|
||||
#define PCI_OP_READ(size, type) \
|
||||
|
||||
@@ -16,7 +16,7 @@ typedef unsigned long full_ptr_t;
|
||||
|
||||
struct domain;
|
||||
#ifdef CONFIG_PV32
|
||||
int switch_compat(struct domain *);
|
||||
int switch_compat(struct domain *d);
|
||||
#else
|
||||
#include <xen/errno.h>
|
||||
static inline int switch_compat(struct domain *d) { return -EOPNOTSUPP; }
|
||||
|
||||
@@ -773,7 +773,7 @@ static inline int relinquish_p2m_mapping(struct domain *d)
|
||||
*/
|
||||
|
||||
/* Modify p2m table for shared gfn */
|
||||
int set_shared_p2m_entry(struct domain *d, unsigned long gfn, mfn_t mfn);
|
||||
int set_shared_p2m_entry(struct domain *d, unsigned long gfn_l, mfn_t mfn);
|
||||
|
||||
/* Tell xenpaging to drop a paged out frame */
|
||||
void p2m_mem_paging_drop_page(struct domain *d, gfn_t gfn, p2m_type_t p2mt);
|
||||
|
||||
@@ -156,7 +156,7 @@ void p2m_mem_paging_populate(struct domain *d, gfn_t gfn)
|
||||
*
|
||||
* If the gfn was dropped the vcpu needs to be unpaused.
|
||||
*/
|
||||
void p2m_mem_paging_resume(struct domain *d, vm_event_response_t *rsp)
|
||||
void p2m_mem_paging_resume(struct domain *d, struct vm_event_st *rsp)
|
||||
{
|
||||
struct p2m_domain *p2m = p2m_get_hostp2m(d);
|
||||
p2m_type_t p2mt;
|
||||
|
||||
+1
-1
@@ -702,7 +702,7 @@ static uint64_t l3hash(uint64_t p1, uint64_t p2,
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
||||
void vhash_update(unsigned char *m,
|
||||
void vhash_update(unsigned char m[],
|
||||
unsigned int mbytes, /* Pos multiple of VMAC_NHBYTES */
|
||||
vmac_ctx_t *ctx)
|
||||
{
|
||||
|
||||
@@ -45,14 +45,14 @@ typedef struct {
|
||||
u32 dk[4*(AES_MAXROUNDS + 1)]; /* decrypt key schedule */
|
||||
} rijndael_ctx;
|
||||
|
||||
int rijndael_set_key(rijndael_ctx *, const unsigned char *, int);
|
||||
int rijndael_set_key_enc_only(rijndael_ctx *, const unsigned char *, int);
|
||||
void rijndael_decrypt(rijndael_ctx *, const unsigned char *, unsigned char *);
|
||||
void rijndael_encrypt(rijndael_ctx *, const unsigned char *, unsigned char *);
|
||||
int rijndael_set_key(rijndael_ctx *ctx, const unsigned char *key, int bits);
|
||||
int rijndael_set_key_enc_only(rijndael_ctx *ctx, const unsigned char *key, int bits);
|
||||
void rijndael_decrypt(rijndael_ctx *ctx, const unsigned char *src, unsigned char *dst);
|
||||
void rijndael_encrypt(rijndael_ctx *ctx, const unsigned char *src, unsigned char *dst);
|
||||
|
||||
int rijndaelKeySetupEnc(unsigned int [], const unsigned char [], int);
|
||||
int rijndaelKeySetupDec(unsigned int [], const unsigned char [], int);
|
||||
void rijndaelEncrypt(const unsigned int [], int, const unsigned char [16],
|
||||
unsigned char [16]);
|
||||
int rijndaelKeySetupEnc(unsigned int rk[], const unsigned char cipherKey[], int keyBits);
|
||||
int rijndaelKeySetupDec(unsigned int rk[], const unsigned char cipkerKey[], int keyBits);
|
||||
void rijndaelEncrypt(const unsigned int rk[], int Nr, const unsigned char pt[16],
|
||||
unsigned char ct[16]);
|
||||
|
||||
#endif /* __RIJNDAEL_H */
|
||||
@@ -75,7 +75,7 @@ typedef int (*acpi_table_handler) (struct acpi_table_header *table);
|
||||
typedef int (*acpi_table_entry_handler) (struct acpi_subtable_header *header, const unsigned long end);
|
||||
|
||||
unsigned int acpi_get_processor_id (unsigned int cpu);
|
||||
char * __acpi_map_table (paddr_t phys_addr, unsigned long size);
|
||||
char * __acpi_map_table (paddr_t phys, unsigned long size);
|
||||
bool __acpi_unmap_table(const void *ptr, unsigned long size);
|
||||
int acpi_boot_init (void);
|
||||
int acpi_boot_table_init (void);
|
||||
|
||||