linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build warning after merge of the devfreq tree
@ 2019-08-26 11:50 Stephen Rothwell
  2019-08-26 12:37 ` Leonard Crestez
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Stephen Rothwell @ 2019-08-26 11:50 UTC (permalink / raw)
  To: MyungJoo Ham
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, Leonard Crestez

[-- Attachment #1: Type: text/plain, Size: 487 bytes --]

Hi all,

After merging the devfreq tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

drivers/devfreq/governor_passive.c: In function 'devfreq_passive_event_handler':
drivers/devfreq/governor_passive.c:152:17: warning: unused variable 'dev' [-Wunused-variable]
  struct device *dev = devfreq->dev.parent;
                 ^~~

Introduced by commit

  0ef7c7cce43f ("PM / devfreq: passive: Use non-devm notifiers")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: linux-next: build warning after merge of the devfreq tree
  2019-08-26 11:50 linux-next: build warning after merge of the devfreq tree Stephen Rothwell
@ 2019-08-26 12:37 ` Leonard Crestez
  2019-08-26 12:43 ` [PATCH] PM / devfreq: passive: fix compiler warning MyungJoo Ham
  2019-08-26 12:46 ` linux-next: build warning after merge of the devfreq tree MyungJoo Ham
  2 siblings, 0 replies; 5+ messages in thread
From: Leonard Crestez @ 2019-08-26 12:37 UTC (permalink / raw)
  To: Stephen Rothwell, MyungJoo Ham
  Cc: Linux Next Mailing List, Linux Kernel Mailing List

On 26.08.2019 14:50, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the devfreq tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
> 
> drivers/devfreq/governor_passive.c: In function 'devfreq_passive_event_handler':
> drivers/devfreq/governor_passive.c:152:17: warning: unused variable 'dev' [-Wunused-variable]
>    struct device *dev = devfreq->dev.parent;
>                   ^~~
> 
> Introduced by commit
> 
>    0ef7c7cce43f ("PM / devfreq: passive: Use non-devm notifiers")
>
An older version was merged somehow, this was fixed in v3: 
https://patchwork.kernel.org/patch/11091793/

--
Regards,
Leonard

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

* [PATCH] PM / devfreq: passive: fix compiler warning
  2019-08-26 11:50 linux-next: build warning after merge of the devfreq tree Stephen Rothwell
  2019-08-26 12:37 ` Leonard Crestez
@ 2019-08-26 12:43 ` MyungJoo Ham
  2019-08-26 12:46 ` linux-next: build warning after merge of the devfreq tree MyungJoo Ham
  2 siblings, 0 replies; 5+ messages in thread
From: MyungJoo Ham @ 2019-08-26 12:43 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, Leonard Crestez

The recent commit of
PM / devfreq: passive: Use non-devm notifiers
had incurred compiler warning, "unused variable 'dev'".

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
---
 drivers/devfreq/governor_passive.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/devfreq/governor_passive.c
b/drivers/devfreq/governor_passive.c
index da48547..be6eeab 100644
--- a/drivers/devfreq/governor_passive.c
+++ b/drivers/devfreq/governor_passive.c
@@ -149,7 +149,6 @@ static int devfreq_passive_notifier_call(struct
notifier_block *nb,
 static int devfreq_passive_event_handler(struct devfreq *devfreq,
                 unsigned int event, void *data)
 {
-    struct device *dev = devfreq->dev.parent;
     struct devfreq_passive_data *p_data
             = (struct devfreq_passive_data *)devfreq->data;
     struct devfreq *parent = (struct devfreq *)p_data->parent;
-- 
2.7.4

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

* Re: linux-next: build warning after merge of the devfreq tree
  2019-08-26 11:50 linux-next: build warning after merge of the devfreq tree Stephen Rothwell
  2019-08-26 12:37 ` Leonard Crestez
  2019-08-26 12:43 ` [PATCH] PM / devfreq: passive: fix compiler warning MyungJoo Ham
@ 2019-08-26 12:46 ` MyungJoo Ham
  2019-08-28  9:06   ` Rafael J. Wysocki
  2 siblings, 1 reply; 5+ messages in thread
From: MyungJoo Ham @ 2019-08-26 12:46 UTC (permalink / raw)
  To: Stephen Rothwell, Rafael J. Wysocki
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, Leonard Crestez

Thank you for pointing this out!

I've added a fix to the tree:
https://git.kernel.org/pub/scm/linux/kernel/git/mzx/devfreq.git/log/?h=for-next
(and shared the patch in a previous reply)

Rafael, could you please pull the fix from the git repo above?


Cheers,
MyungJoo

On Mon, Aug 26, 2019 at 8:51 PM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Hi all,
>
> After merging the devfreq tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
>
> drivers/devfreq/governor_passive.c: In function 'devfreq_passive_event_handler':
> drivers/devfreq/governor_passive.c:152:17: warning: unused variable 'dev' [-Wunused-variable]
>   struct device *dev = devfreq->dev.parent;
>                  ^~~
>
> Introduced by commit
>
>   0ef7c7cce43f ("PM / devfreq: passive: Use non-devm notifiers")
>
> --
> Cheers,
> Stephen Rothwell



-- 
MyungJoo Ham, Ph.D.
S/W Center, Samsung Electronics

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

* Re: linux-next: build warning after merge of the devfreq tree
  2019-08-26 12:46 ` linux-next: build warning after merge of the devfreq tree MyungJoo Ham
@ 2019-08-28  9:06   ` Rafael J. Wysocki
  0 siblings, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2019-08-28  9:06 UTC (permalink / raw)
  To: myungjoo.ham
  Cc: Stephen Rothwell, Linux Next Mailing List,
	Linux Kernel Mailing List, Leonard Crestez

On Monday, August 26, 2019 2:46:08 PM CEST MyungJoo Ham wrote:
> Thank you for pointing this out!
> 
> I've added a fix to the tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/mzx/devfreq.git/log/?h=for-next
> (and shared the patch in a previous reply)
> 
> Rafael, could you please pull the fix from the git repo above?

Done, thanks!




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

end of thread, other threads:[~2019-08-28  9:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-26 11:50 linux-next: build warning after merge of the devfreq tree Stephen Rothwell
2019-08-26 12:37 ` Leonard Crestez
2019-08-26 12:43 ` [PATCH] PM / devfreq: passive: fix compiler warning MyungJoo Ham
2019-08-26 12:46 ` linux-next: build warning after merge of the devfreq tree MyungJoo Ham
2019-08-28  9:06   ` Rafael J. Wysocki

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).