[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200916134455.GD4678@dell>
Date: Wed, 16 Sep 2020 14:44:55 +0100
From: Lee Jones <lee.jones@...aro.org>
To: Allen Pais <allen.cryptic@...il.com>
Cc: kvalo@...eaurora.org, kuba@...nel.org, jirislaby@...nel.org,
mickflemm@...il.com, mcgrof@...nel.org, chunkeey@...glemail.com,
Larry.Finger@...inger.net, stas.yakovlev@...il.com,
helmut.schaa@...glemail.com, pkshih@...ltek.com,
yhchuang@...ltek.com, dsd@...too.org, kune@...ne-taler.de,
keescook@...omium.org, ath11k@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-wireless@...r.kernel.org,
netdev@...r.kernel.org, b43-dev@...ts.infradead.org,
brcm80211-dev-list.pdl@...adcom.com,
brcm80211-dev-list@...ress.com, Allen Pais <allen.lkml@...il.com>,
Romain Perier <romain.perier@...il.com>
Subject: Re: [PATCH 10/16] wireless: intersil: convert tasklets to use new
tasklet_setup() API
On Mon, 17 Aug 2020, Allen Pais wrote:
> From: Allen Pais <allen.lkml@...il.com>
>
> In preparation for unconditionally passing the
> struct tasklet_struct pointer to all tasklet
> callbacks, switch to using the new tasklet_setup()
> and from_tasklet() to pass the tasklet pointer explicitly
> and remove .data field.
>
> Signed-off-by: Romain Perier <romain.perier@...il.com>
> Signed-off-by: Allen Pais <allen.lkml@...il.com>
> ---
> .../net/wireless/intersil/hostap/hostap_hw.c | 18 +++++++++---------
> drivers/net/wireless/intersil/orinoco/main.c | 7 +++----
> drivers/net/wireless/intersil/p54/p54pci.c | 8 ++++----
> 3 files changed, 16 insertions(+), 17 deletions(-)
This patch seems to cause several warnings along the lines of:
drivers/net/wireless/intersil/hostap/hostap_hw.c: In function ‘prism2_init_local_data’:
drivers/net/wireless/intersil/hostap/hostap_hw.c:3185:48: warning: cast between incompatible function types from ‘void (*)(struct tasklet_struct *)’ to ‘void (*)(long unsigned int)’ [-Wcast-function-type]
3185 | do { memset((q), 0, sizeof(*(q))); (q)->func = (void(*)(unsigned long))(f); } | ^
drivers/net/wireless/intersil/hostap/hostap_hw.c:3187:2: note: in expansion of macro ‘HOSTAP_TASKLET_INIT’
3187 | HOSTAP_TASKLET_INIT(&local->bap_tasklet, hostap_bap_tasklet,
| ^~~~~~~~~~~~~~~~~~~
drivers/net/wireless/intersil/hostap/hostap_hw.c:3185:48: warning: cast between incompatible function types from ‘void (*)(struct tasklet_struct *)’ to ‘void (*)(long unsigned int)’ [-Wcast-function-type]
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
Powered by blists - more mailing lists