From: Johannes Berg <johannes@sipsolutions.net>
To: Tomas Winkler <tomas.winkler@intel.com>
Cc: linville@tuxdriver.com, yi.zhu@intel.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 1/1] mac80211: rc80211_pid eliminate sparse warnings
Date: Sun, 09 Nov 2008 09:52:42 +0100 [thread overview]
Message-ID: <1226220762.3614.12.camel@johannes.berg> (raw)
In-Reply-To: <1226181055-713-1-git-send-email-tomas.winkler@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1578 bytes --]
On Sat, 2008-11-08 at 23:50 +0200, Tomas Winkler wrote:
> This patch eliminates sparse warnings in pid rate scale algorithm
> 'debugfs: allow access to signed values' patch hit the dead end
> year ago w/o much echo so I guess there is no real need to address this
> properly.
And I guess nobody uses these debugfs knobs anyway :)
Looks like an acceptable workaround.
> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
> ---
> net/mac80211/rc80211_pid_algo.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/net/mac80211/rc80211_pid_algo.c b/net/mac80211/rc80211_pid_algo.c
> index 2328ba5..96ceb7e 100644
> --- a/net/mac80211/rc80211_pid_algo.c
> +++ b/net/mac80211/rc80211_pid_algo.c
> @@ -403,11 +403,11 @@ static void *rate_control_pid_alloc(struct ieee80211_hw *hw,
> S_IRUSR | S_IWUSR, debugfsdir,
> &pinfo->sampling_period);
> de->coeff_p = debugfs_create_u32("coeff_p", S_IRUSR | S_IWUSR,
> - debugfsdir, &pinfo->coeff_p);
> + debugfsdir, (u32 *)&pinfo->coeff_p);
> de->coeff_i = debugfs_create_u32("coeff_i", S_IRUSR | S_IWUSR,
> - debugfsdir, &pinfo->coeff_i);
> + debugfsdir, (u32 *)&pinfo->coeff_i);
> de->coeff_d = debugfs_create_u32("coeff_d", S_IRUSR | S_IWUSR,
> - debugfsdir, &pinfo->coeff_d);
> + debugfsdir, (u32 *)&pinfo->coeff_d);
> de->smoothing_shift = debugfs_create_u32("smoothing_shift",
> S_IRUSR | S_IWUSR, debugfsdir,
> &pinfo->smoothing_shift);
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2008-11-09 8:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-08 21:50 [PATCH 1/1] mac80211: rc80211_pid eliminate sparse warnings Tomas Winkler
2008-11-09 8:52 ` Johannes Berg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1226220762.3614.12.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=tomas.winkler@intel.com \
--cc=yi.zhu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox