linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ACPI / PNP: Fix missing-prototypes in acpi_pnp.c
@ 2020-09-22  2:11 Tian Tao
  2020-09-25 16:12 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Tian Tao @ 2020-09-22  2:11 UTC (permalink / raw)
  To: rjw, lenb, linux-acpi

Fix the following warnings.
drivers/acpi/acpi_pnp.c:382:13: warning: no previous prototype
for ‘acpi_pnp_init’ [-Wmissing-prototypes].

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 drivers/acpi/acpi_pnp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/acpi/acpi_pnp.c b/drivers/acpi/acpi_pnp.c
index f3039b9..4ed755a 100644
--- a/drivers/acpi/acpi_pnp.c
+++ b/drivers/acpi/acpi_pnp.c
@@ -11,6 +11,8 @@
 #include <linux/module.h>
 #include <linux/ctype.h>
 
+#include "internal.h"
+
 static const struct acpi_device_id acpi_pnp_device_ids[] = {
 	/* pata_isapnp */
 	{"PNP0600"},		/* Generic ESDI/IDE/ATA compatible hard disk controller */
-- 
2.7.4


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

* Re: [PATCH] ACPI / PNP: Fix missing-prototypes in acpi_pnp.c
  2020-09-22  2:11 [PATCH] ACPI / PNP: Fix missing-prototypes in acpi_pnp.c Tian Tao
@ 2020-09-25 16:12 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2020-09-25 16:12 UTC (permalink / raw)
  To: Tian Tao; +Cc: Rafael J. Wysocki, Len Brown, ACPI Devel Maling List

On Tue, Sep 22, 2020 at 4:13 AM Tian Tao <tiantao6@hisilicon.com> wrote:
>
> Fix the following warnings.
> drivers/acpi/acpi_pnp.c:382:13: warning: no previous prototype
> for ‘acpi_pnp_init’ [-Wmissing-prototypes].
>
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
> ---
>  drivers/acpi/acpi_pnp.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/acpi/acpi_pnp.c b/drivers/acpi/acpi_pnp.c
> index f3039b9..4ed755a 100644
> --- a/drivers/acpi/acpi_pnp.c
> +++ b/drivers/acpi/acpi_pnp.c
> @@ -11,6 +11,8 @@
>  #include <linux/module.h>
>  #include <linux/ctype.h>
>
> +#include "internal.h"
> +
>  static const struct acpi_device_id acpi_pnp_device_ids[] = {
>         /* pata_isapnp */
>         {"PNP0600"},            /* Generic ESDI/IDE/ATA compatible hard disk controller */
> --

Applied as 5.10 material with a minor edit in the subject, thanks!

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

end of thread, other threads:[~2020-09-25 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-22  2:11 [PATCH] ACPI / PNP: Fix missing-prototypes in acpi_pnp.c Tian Tao
2020-09-25 16:12 ` 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).