scsi: cxlflash: Add argument identifier names
Checkpatch throws a warning when the argument identifier names are not included in the function definitions. To avoid these warnings, argument identifiers are added in the existing function definitions. Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com> Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
465891fe92
commit
fb77e52804
|
@ -16,26 +16,29 @@ extern const struct cxlflash_backend_ops cxlflash_cxl_ops;
|
||||||
|
|
||||||
struct cxlflash_backend_ops {
|
struct cxlflash_backend_ops {
|
||||||
struct module *module;
|
struct module *module;
|
||||||
void __iomem * (*psa_map)(void *);
|
void __iomem * (*psa_map)(void *ctx_cookie);
|
||||||
void (*psa_unmap)(void __iomem *);
|
void (*psa_unmap)(void __iomem *addr);
|
||||||
int (*process_element)(void *);
|
int (*process_element)(void *ctx_cookie);
|
||||||
int (*map_afu_irq)(void *, int, irq_handler_t, void *, char *);
|
int (*map_afu_irq)(void *ctx_cookie, int num, irq_handler_t handler,
|
||||||
void (*unmap_afu_irq)(void *, int, void *);
|
void *cookie, char *name);
|
||||||
int (*start_context)(void *);
|
void (*unmap_afu_irq)(void *ctx_cookie, int num, void *cookie);
|
||||||
int (*stop_context)(void *);
|
int (*start_context)(void *ctx_cookie);
|
||||||
int (*afu_reset)(void *);
|
int (*stop_context)(void *ctx_cookie);
|
||||||
void (*set_master)(void *);
|
int (*afu_reset)(void *ctx_cookie);
|
||||||
void * (*get_context)(struct pci_dev *, void *);
|
void (*set_master)(void *ctx_cookie);
|
||||||
void * (*dev_context_init)(struct pci_dev *, void *);
|
void * (*get_context)(struct pci_dev *dev, void *afu_cookie);
|
||||||
int (*release_context)(void *);
|
void * (*dev_context_init)(struct pci_dev *dev, void *afu_cookie);
|
||||||
void (*perst_reloads_same_image)(void *, bool);
|
int (*release_context)(void *ctx_cookie);
|
||||||
ssize_t (*read_adapter_vpd)(struct pci_dev *, void *, size_t);
|
void (*perst_reloads_same_image)(void *afu_cookie, bool image);
|
||||||
int (*allocate_afu_irqs)(void *, int);
|
ssize_t (*read_adapter_vpd)(struct pci_dev *dev, void *buf,
|
||||||
void (*free_afu_irqs)(void *);
|
size_t count);
|
||||||
void * (*create_afu)(struct pci_dev *);
|
int (*allocate_afu_irqs)(void *ctx_cookie, int num);
|
||||||
struct file * (*get_fd)(void *, struct file_operations *, int *);
|
void (*free_afu_irqs)(void *ctx_cookie);
|
||||||
void * (*fops_get_context)(struct file *);
|
void * (*create_afu)(struct pci_dev *dev);
|
||||||
int (*start_work)(void *, u64);
|
struct file * (*get_fd)(void *ctx_cookie, struct file_operations *fops,
|
||||||
int (*fd_mmap)(struct file *, struct vm_area_struct *);
|
int *fd);
|
||||||
int (*fd_release)(struct inode *, struct file *);
|
void * (*fops_get_context)(struct file *file);
|
||||||
|
int (*start_work)(void *ctx_cookie, u64 irqs);
|
||||||
|
int (*fd_mmap)(struct file *file, struct vm_area_struct *vm);
|
||||||
|
int (*fd_release)(struct inode *inode, struct file *file);
|
||||||
};
|
};
|
||||||
|
|
|
@ -232,8 +232,8 @@ struct hwq {
|
||||||
|
|
||||||
struct afu {
|
struct afu {
|
||||||
struct hwq hwqs[CXLFLASH_MAX_HWQS];
|
struct hwq hwqs[CXLFLASH_MAX_HWQS];
|
||||||
int (*send_cmd)(struct afu *, struct afu_cmd *);
|
int (*send_cmd)(struct afu *afu, struct afu_cmd *cmd);
|
||||||
int (*context_reset)(struct hwq *);
|
int (*context_reset)(struct hwq *hwq);
|
||||||
|
|
||||||
/* AFU HW */
|
/* AFU HW */
|
||||||
struct cxlflash_afu_map __iomem *afu_map; /* entire MMIO map */
|
struct cxlflash_afu_map __iomem *afu_map; /* entire MMIO map */
|
||||||
|
|
Loading…
Reference in New Issue