mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Fix "set but not used" in smartpqi. The PCI_MEM macros don't require a
physical/absolute address in FreeBSD, but it looks like the calling code might be somewhat portable to other OS's that do require this. Therefore, set the variables to __unused instead of removing the code entirely.
This commit is contained in:
parent
407c34e735
commit
e28289ca83
|
@ -98,7 +98,7 @@ void
|
|||
pqisrc_configure_legacy_intx(pqisrc_softstate_t *softs, boolean_t enable_intx)
|
||||
{
|
||||
uint32_t intx_mask;
|
||||
uint32_t *reg_addr = NULL;
|
||||
uint32_t *reg_addr __unused;
|
||||
|
||||
DBG_FUNC("IN\n");
|
||||
|
||||
|
|
|
@ -590,7 +590,7 @@ pqisrc_process_config_table(pqisrc_softstate_t *softs)
|
|||
int ret = PQI_STATUS_FAILURE;
|
||||
uint32_t config_table_size;
|
||||
uint32_t section_off;
|
||||
uint8_t *config_table_abs_addr;
|
||||
uint8_t *config_table_abs_addr __unused;
|
||||
struct pqi_conf_table *conf_table;
|
||||
struct pqi_conf_table_section_header *section_hdr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue