* [PATCH -next] soundwire: intel: Make sdw_intel_init static
@ 2020-04-10 11:57 YueHaibing
2020-04-10 15:25 ` Pierre-Louis Bossart
2020-04-20 7:12 ` Vinod Koul
0 siblings, 2 replies; 4+ messages in thread
From: YueHaibing @ 2020-04-10 11:57 UTC (permalink / raw)
To: vkoul, sanyog.r.kale, pierre-louis.bossart
Cc: alsa-devel, linux-kernel, YueHaibing
Fix sparse warning:
drivers/soundwire/intel_init.c:193:6: warning:
symbol 'sdw_intel_init' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
drivers/soundwire/intel_init.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/soundwire/intel_init.c b/drivers/soundwire/intel_init.c
index 4b769409f6f8..ad7053463889 100644
--- a/drivers/soundwire/intel_init.c
+++ b/drivers/soundwire/intel_init.c
@@ -190,7 +190,8 @@ static acpi_status sdw_intel_acpi_cb(acpi_handle handle, u32 level,
* This scans the namespace and creates SoundWire link controller devices
* based on the info queried.
*/
-void *sdw_intel_init(acpi_handle *parent_handle, struct sdw_intel_res *res)
+static void *sdw_intel_init(acpi_handle *parent_handle,
+ struct sdw_intel_res *res)
{
acpi_status status;
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH -next] soundwire: intel: Make sdw_intel_init static
2020-04-10 11:57 [PATCH -next] soundwire: intel: Make sdw_intel_init static YueHaibing
@ 2020-04-10 15:25 ` Pierre-Louis Bossart
2020-04-20 7:12 ` Vinod Koul
1 sibling, 0 replies; 4+ messages in thread
From: Pierre-Louis Bossart @ 2020-04-10 15:25 UTC (permalink / raw)
To: YueHaibing, vkoul, sanyog.r.kale; +Cc: alsa-devel, linux-kernel
On 4/10/20 6:57 AM, YueHaibing wrote:
> Fix sparse warning:
>
> drivers/soundwire/intel_init.c:193:6: warning:
> symbol 'sdw_intel_init' was not declared. Should it be static?
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
> drivers/soundwire/intel_init.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/soundwire/intel_init.c b/drivers/soundwire/intel_init.c
> index 4b769409f6f8..ad7053463889 100644
> --- a/drivers/soundwire/intel_init.c
> +++ b/drivers/soundwire/intel_init.c
> @@ -190,7 +190,8 @@ static acpi_status sdw_intel_acpi_cb(acpi_handle handle, u32 level,
> * This scans the namespace and creates SoundWire link controller devices
> * based on the info queried.
> */
> -void *sdw_intel_init(acpi_handle *parent_handle, struct sdw_intel_res *res)
> +static void *sdw_intel_init(acpi_handle *parent_handle,
> + struct sdw_intel_res *res)
This declaration has been this way since 2017, there are no users and it
will be removed with the Intel patchsets, so fixing this warning doesn't
really add much value. No sustained objection though.
> {
> acpi_status status;
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -next] soundwire: intel: Make sdw_intel_init static
2020-04-10 11:57 [PATCH -next] soundwire: intel: Make sdw_intel_init static YueHaibing
2020-04-10 15:25 ` Pierre-Louis Bossart
@ 2020-04-20 7:12 ` Vinod Koul
2020-04-23 18:03 ` Nathan Chancellor
1 sibling, 1 reply; 4+ messages in thread
From: Vinod Koul @ 2020-04-20 7:12 UTC (permalink / raw)
To: YueHaibing; +Cc: sanyog.r.kale, pierre-louis.bossart, alsa-devel, linux-kernel
On 10-04-20, 19:57, YueHaibing wrote:
> Fix sparse warning:
>
> drivers/soundwire/intel_init.c:193:6: warning:
> symbol 'sdw_intel_init' was not declared. Should it be static?
Applied, thanks
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -next] soundwire: intel: Make sdw_intel_init static
2020-04-20 7:12 ` Vinod Koul
@ 2020-04-23 18:03 ` Nathan Chancellor
0 siblings, 0 replies; 4+ messages in thread
From: Nathan Chancellor @ 2020-04-23 18:03 UTC (permalink / raw)
To: Vinod Koul
Cc: YueHaibing, sanyog.r.kale, pierre-louis.bossart, alsa-devel,
linux-kernel
On Mon, Apr 20, 2020 at 12:42:12PM +0530, Vinod Koul wrote:
> On 10-04-20, 19:57, YueHaibing wrote:
> > Fix sparse warning:
> >
> > drivers/soundwire/intel_init.c:193:6: warning:
> > symbol 'sdw_intel_init' was not declared. Should it be static?
>
> Applied, thanks
>
> --
> ~Vinod
Why was this applied? It replaces one warning with another (that is
actually visible during a normal kernel build):
$ make -j$(nproc) -s allyesconfig drivers/soundwire/intel_init.o
drivers/soundwire/intel_init.c:193:14: warning: ‘sdw_intel_init’ defined
but not used [-Wunused-function]
static void *sdw_intel_init(acpi_handle *parent_handle,
^~~~~~~~~~~~~~
Cheers,
Nathan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-04-23 18:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-10 11:57 [PATCH -next] soundwire: intel: Make sdw_intel_init static YueHaibing
2020-04-10 15:25 ` Pierre-Louis Bossart
2020-04-20 7:12 ` Vinod Koul
2020-04-23 18:03 ` Nathan Chancellor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).