aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2022-02-26 17:25:43 +0000
committerScott Long <scottl@FreeBSD.org>2022-02-26 17:25:43 +0000
commite28289ca83673d753b7e479810947f6a1015ad39 (patch)
tree256edeeb5ebf0970f63268b01e0ad27bc87c18f5
parent407c34e735b5d17e2be574808a09e6d729b0a45a (diff)
downloadsrc-e28289ca83673d753b7e479810947f6a1015ad39.tar.gz
src-e28289ca83673d753b7e479810947f6a1015ad39.zip
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.
-rw-r--r--sys/dev/smartpqi/smartpqi_helper.c2
-rw-r--r--sys/dev/smartpqi/smartpqi_init.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/smartpqi/smartpqi_helper.c b/sys/dev/smartpqi/smartpqi_helper.c
index 809677c7cc1e..b49fb2d5a718 100644
--- a/sys/dev/smartpqi/smartpqi_helper.c
+++ b/sys/dev/smartpqi/smartpqi_helper.c
@@ -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");
diff --git a/sys/dev/smartpqi/smartpqi_init.c b/sys/dev/smartpqi/smartpqi_init.c
index 1f127cff21ec..6a9cca23f72d 100644
--- a/sys/dev/smartpqi/smartpqi_init.c
+++ b/sys/dev/smartpqi/smartpqi_init.c
@@ -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;