linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] include: linux: pm: Remove duplicate declaration
@ 2021-03-24  7:29 Wan Jiabing
  2021-04-07 17:19 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Wan Jiabing @ 2021-03-24  7:29 UTC (permalink / raw)
  To: Rafael J. Wysocki, Pavel Machek, Len Brown, linux-pm, linux-kernel
  Cc: kael_w, Wan Jiabing

struct device is declared twice.So remove the duplicate.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 include/linux/pm.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/linux/pm.h b/include/linux/pm.h
index 482313a8ccfc..c9657408fee1 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -39,7 +39,6 @@ static inline void pm_vt_switch_unregister(struct device *dev)
  * Device power management
  */
 
-struct device;
 
 #ifdef CONFIG_PM
 extern const char power_group_name[];		/* = "power" */
-- 
2.25.1


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

* Re: [PATCH] include: linux: pm: Remove duplicate declaration
  2021-03-24  7:29 [PATCH] include: linux: pm: Remove duplicate declaration Wan Jiabing
@ 2021-04-07 17:19 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2021-04-07 17:19 UTC (permalink / raw)
  To: Wan Jiabing
  Cc: Rafael J. Wysocki, Pavel Machek, Len Brown, Linux PM,
	Linux Kernel Mailing List, kael_w

On Wed, Mar 24, 2021 at 8:30 AM Wan Jiabing <wanjiabing@vivo.com> wrote:
>
> struct device is declared twice.So remove the duplicate.
>
> Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
> ---
>  include/linux/pm.h | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/include/linux/pm.h b/include/linux/pm.h
> index 482313a8ccfc..c9657408fee1 100644
> --- a/include/linux/pm.h
> +++ b/include/linux/pm.h
> @@ -39,7 +39,6 @@ static inline void pm_vt_switch_unregister(struct device *dev)
>   * Device power management
>   */
>
> -struct device;
>
>  #ifdef CONFIG_PM
>  extern const char power_group_name[];          /* = "power" */
> --

Applied as 5.13 material, thanks!

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

end of thread, other threads:[~2021-04-07 17:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24  7:29 [PATCH] include: linux: pm: Remove duplicate declaration Wan Jiabing
2021-04-07 17:19 ` 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).