bsps/shared/: fix pedantic warnings for SPIN_DECLARE

Fixes #5483
This commit is contained in:
Bhuvan
2026-02-10 20:45:58 +05:30
committed by Bhuvan B
parent 03a2e44c9c
commit 314f38e8d4
19 changed files with 19 additions and 19 deletions

View File

@@ -51,7 +51,7 @@ struct gr1553bc_priv {
struct gr1553bc_list *list;
struct gr1553bc_list *alist;
int started;
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
/* IRQ log management */
void *irq_log_p;

View File

@@ -46,7 +46,7 @@
struct gr1553bm_priv {
struct drvmgr_dev **pdev;
struct gr1553b_regs *regs;
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
void *buffer;
unsigned int buffer_base_hw;

View File

@@ -83,7 +83,7 @@ struct gr1553rt_priv {
/* Software State */
int started;
struct gr1553rt_cfg cfg;
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
/* Handle to GR1553B RT device layer */
struct drvmgr_dev **pdev;

View File

@@ -95,7 +95,7 @@ struct ahbstat_priv {
uint32_t last_status;
uint32_t last_address;
/* Spin-lock ISR protection */
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
};
static int ahbstat_init2(struct drvmgr_dev *dev);

View File

@@ -88,7 +88,7 @@ struct grcan_priv {
struct grcan_stats stats;
rtems_id rx_sem, tx_sem, txempty_sem, dev_sem;
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
};
#ifdef GRCAN_REG_BYPASS_CACHE

View File

@@ -227,7 +227,7 @@ typedef struct {
typedef struct {
struct drvmgr_dev *dev;
char devName[52];
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
/* hardware shortcuts */
pelican_regs *regs;

View File

@@ -111,7 +111,7 @@ struct gr701_priv {
/* Driver management */
struct drvmgr_dev *dev;
char prefix[16];
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
struct pci_bridge_regs *pcib;
struct amba_bridge_regs *ambab;

View File

@@ -100,7 +100,7 @@ struct gr_rasta_adcdac_priv {
/* Driver management */
struct drvmgr_dev *dev;
char prefix[20];
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
/* PCI */
pci_dev_t pcidev;

View File

@@ -132,7 +132,7 @@ struct gr_rasta_io_priv {
/* Driver management */
struct drvmgr_dev *dev;
char prefix[16];
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
/* PCI */
pci_dev_t pcidev;

View File

@@ -115,7 +115,7 @@ struct gr_rasta_spw_router_priv {
/* Driver management */
struct drvmgr_dev *dev;
char prefix[20];
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
/* PCI */
pci_dev_t pcidev;

View File

@@ -128,7 +128,7 @@ struct gr_rasta_tmtc_priv {
/* Driver management */
struct drvmgr_dev *dev;
char prefix[20];
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
/* PCI */
pci_dev_t pcidev;

View File

@@ -83,7 +83,7 @@ struct gr_tmtc_1553_priv {
/* Driver management */
struct drvmgr_dev *dev;
char prefix[32];
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
/* PCI */
pci_dev_t pcidev;

View File

@@ -199,7 +199,7 @@ struct grpci2dma_priv {
void (*isr_register)( void (*isr)(void*), void * arg);
/* Spin-lock ISR protection */
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
};
/* The GRPCI2 DMA semaphore */

View File

@@ -450,7 +450,7 @@ struct grspw_priv {
struct grspw_dma_priv *dma;
/* Spin-lock ISR protection */
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
/* Descriptor Memory Area for TX & RX and all DMA channels */
unsigned int bd_mem;

View File

@@ -94,7 +94,7 @@ struct spwtdp_priv {
int freq; /* Frequency configured */
/* Spin-lock ISR protection */
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
/* Driver semaphore */
rtems_id sem;

View File

@@ -244,7 +244,7 @@ struct grtc_priv {
char devName[52]; /* Device Name */
struct grtc_regs *regs; /* TC Hardware Register MAP */
int irq; /* IRQ number of TC core */
SPIN_DECLARE(devlock); /* spin-lock of registers */
SPIN_DECLARE(devlock) /* spin-lock of registers */
int major; /* Driver major */
int minor; /* Device Minor */

View File

@@ -372,7 +372,7 @@ struct grtm_priv {
int irq;
int minor;
int subrev; /* GRTM Revision */
SPIN_DECLARE(devlock); /* spin-lock ISR protection */
SPIN_DECLARE(devlock) /* spin-lock ISR protection */
int open;
int running;

View File

@@ -121,7 +121,7 @@ struct gr_cpci_gr740_priv {
/* Driver management */
struct drvmgr_dev *dev;
char prefix[16];
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
/* PCI */
pci_dev_t pcidev;

View File

@@ -122,7 +122,7 @@ struct gr_cpci_leon4_n2x_priv {
/* Driver management */
struct drvmgr_dev *dev;
char prefix[20];
SPIN_DECLARE(devlock);
SPIN_DECLARE(devlock)
/* PCI */
pci_dev_t pcidev;