All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iwlwifi: acpi: remove unused function iwl_acpi_eval_dsm_func()
@ 2021-06-24  5:29 Kalle Valo
  2021-06-24  6:30 ` Coelho, Luciano
  2021-06-24 16:22 ` Kalle Valo
  0 siblings, 2 replies; 3+ messages in thread
From: Kalle Valo @ 2021-06-24  5:29 UTC (permalink / raw)
  To: linux-wireless; +Cc: sfr, luciano.coelho

Stephen reported a warning:

drivers/net/wireless/intel/iwlwifi/fw/acpi.c:720:12: warning: 'iwl_acpi_eval_dsm_func' defined but not used [-Wunused-function]

The warning is correct and the function is not used anywhere, so let's
just remove it.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: 7119f02b5d34 ("iwlwifi: mvm: support BIOS enable/disable for 11ax in Russia")
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
 drivers/net/wireless/intel/iwlwifi/fw/acpi.c | 36 --------------------
 1 file changed, 36 deletions(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/fw/acpi.c b/drivers/net/wireless/intel/iwlwifi/fw/acpi.c
index 8cf7bc3aa09a..34933f133a0a 100644
--- a/drivers/net/wireless/intel/iwlwifi/fw/acpi.c
+++ b/drivers/net/wireless/intel/iwlwifi/fw/acpi.c
@@ -717,42 +717,6 @@ int iwl_sar_geo_init(struct iwl_fw_runtime *fwrt,
 }
 IWL_EXPORT_SYMBOL(iwl_sar_geo_init);
 
-static u32 iwl_acpi_eval_dsm_func(struct device *dev, enum iwl_dsm_funcs_rev_0 eval_func)
-{
-	union acpi_object *obj;
-	u32 ret;
-
-	obj = iwl_acpi_get_dsm_object(dev, 0,
-				      eval_func, NULL,
-				      &iwl_guid);
-
-	if (IS_ERR(obj)) {
-		IWL_DEBUG_DEV_RADIO(dev,
-				    "ACPI: DSM func '%d': Got Error in obj = %ld\n",
-				    eval_func,
-				    PTR_ERR(obj));
-		return 0;
-	}
-
-	if (obj->type != ACPI_TYPE_INTEGER) {
-		IWL_DEBUG_DEV_RADIO(dev,
-				    "ACPI: DSM func '%d' did not return a valid object, type=%d\n",
-				    eval_func,
-				    obj->type);
-		ret = 0;
-		goto out;
-	}
-
-	ret = obj->integer.value;
-	IWL_DEBUG_DEV_RADIO(dev,
-			    "ACPI: DSM method evaluated: func='%d', ret=%d\n",
-			    eval_func,
-			    ret);
-out:
-	ACPI_FREE(obj);
-	return ret;
-}
-
 __le32 iwl_acpi_get_lari_config_bitmap(struct iwl_fw_runtime *fwrt)
 {
 	int ret;
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] iwlwifi: acpi: remove unused function iwl_acpi_eval_dsm_func()
  2021-06-24  5:29 [PATCH] iwlwifi: acpi: remove unused function iwl_acpi_eval_dsm_func() Kalle Valo
@ 2021-06-24  6:30 ` Coelho, Luciano
  2021-06-24 16:22 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Coelho, Luciano @ 2021-06-24  6:30 UTC (permalink / raw)
  To: linux-wireless, kvalo; +Cc: sfr

On Thu, 2021-06-24 at 08:29 +0300, Kalle Valo wrote:
> Stephen reported a warning:
> 
> drivers/net/wireless/intel/iwlwifi/fw/acpi.c:720:12: warning: 'iwl_acpi_eval_dsm_func' defined but not used [-Wunused-function]
> 
> The warning is correct and the function is not used anywhere, so let's
> just remove it.
> 
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Fixes: 7119f02b5d34 ("iwlwifi: mvm: support BIOS enable/disable for 11ax in Russia")
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Looks correct! This was a rebasing issue because I sent some patches in
this area as fixes and others for -next.

Thanks, Kalle and Stephen!

Acked-by: Luca Coelho <luciano.coelho@intel.com>

--
Cheers,
Luca.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] iwlwifi: acpi: remove unused function iwl_acpi_eval_dsm_func()
  2021-06-24  5:29 [PATCH] iwlwifi: acpi: remove unused function iwl_acpi_eval_dsm_func() Kalle Valo
  2021-06-24  6:30 ` Coelho, Luciano
@ 2021-06-24 16:22 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2021-06-24 16:22 UTC (permalink / raw)
  To: Kalle Valo; +Cc: linux-wireless, sfr, luciano.coelho

Kalle Valo <kvalo@codeaurora.org> wrote:

> Stephen reported a warning:
> 
> drivers/net/wireless/intel/iwlwifi/fw/acpi.c:720:12: warning: 'iwl_acpi_eval_dsm_func' defined but not used [-Wunused-function]
> 
> The warning is correct and the function is not used anywhere, so let's
> just remove it.
> 
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Fixes: 7119f02b5d34 ("iwlwifi: mvm: support BIOS enable/disable for 11ax in Russia")
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
> Acked-by: Luca Coelho <luciano.coelho@intel.com>

Patch applied to wireless-drivers-next.git, thanks.

c2a3823dad49 iwlwifi: acpi: remove unused function iwl_acpi_eval_dsm_func()

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20210624052918.4946-1-kvalo@codeaurora.org/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-24 16:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-24  5:29 [PATCH] iwlwifi: acpi: remove unused function iwl_acpi_eval_dsm_func() Kalle Valo
2021-06-24  6:30 ` Coelho, Luciano
2021-06-24 16:22 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.