mirror of
https://github.com/torvalds/linux.git
synced 2024-12-24 20:01:55 +00:00
cd078cb6a0
This patch fixes all the sparse warnings in cavium/nitrox: - Fix endianness warnings by adding the correct markers to unions. - Add missing header inclusions for prototypes. - Move nitrox_sriov_configure prototype into the isr header file. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
22 lines
587 B
C
22 lines
587 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __NITROX_ISR_H
|
|
#define __NITROX_ISR_H
|
|
|
|
#include "nitrox_dev.h"
|
|
|
|
int nitrox_register_interrupts(struct nitrox_device *ndev);
|
|
void nitrox_unregister_interrupts(struct nitrox_device *ndev);
|
|
int nitrox_sriov_register_interupts(struct nitrox_device *ndev);
|
|
void nitrox_sriov_unregister_interrupts(struct nitrox_device *ndev);
|
|
|
|
#ifdef CONFIG_PCI_IOV
|
|
int nitrox_sriov_configure(struct pci_dev *pdev, int num_vfs);
|
|
#else
|
|
static inline int nitrox_sriov_configure(struct pci_dev *pdev, int num_vfs)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __NITROX_ISR_H */
|