2008-10-07 07:50:03

by Rami Rosen

[permalink] [raw]
Subject: [PATCH ] [RESEND] iwlwifi: fix compilation warning when CONFIG_IWLWIFI_DEBUG is not set.

When CONFIG_IWLWIFI_DEBUG is not set and CONFIG_IWLWIFI is set,
we get this compilation warning:
/wireless-next-2.6/drivers/net/wireless/iwlwifi/iwl-agn-rs.c: In
function 'rs_free_sta':
/wireless-next-2.6/drivers/net/wireless/iwlwifi/iwl-agn-rs.c:2425:
warning: unused variable 'priv'

This patch fixes it by adding __maybe_unused attribute.

Signed-off-by: Rami Rosen <[email protected]>


Attachments:
(No filename) (390.00 B)
patch.txt (506.00 B)
Download all attachments

2008-10-07 07:58:53

by Tomas Winkler

[permalink] [raw]
Subject: Re: [PATCH ] [RESEND] iwlwifi: fix compilation warning when CONFIG_IWLWIFI_DEBUG is not set.

On Tue, Oct 7, 2008 at 9:50 AM, Rami Rosen <[email protected]> wrote:
> When CONFIG_IWLWIFI_DEBUG is not set and CONFIG_IWLWIFI is set,
> we get this compilation warning:
> /wireless-next-2.6/drivers/net/wireless/iwlwifi/iwl-agn-rs.c: In
> function 'rs_free_sta':
> /wireless-next-2.6/drivers/net/wireless/iwlwifi/iwl-agn-rs.c:2425:
> warning: unused variable 'priv'
>
> This patch fixes it by adding __maybe_unused attribute.
>
> Signed-off-by: Rami Rosen <[email protected]>
>
ACK