* Easy Kernel Patch
@ 2018-12-20 6:47 Hunter Lannon
2018-12-20 14:03 ` Jonathan Corbet
0 siblings, 1 reply; 2+ messages in thread
From: Hunter Lannon @ 2018-12-20 6:47 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 103 bytes --]
This is my first patch submitted. I hope I can finally say I have a
commit in the Linux source code :)
[-- Attachment #2: 0001-Removed-twin-forward-declaration-of-struct-device.patch --]
[-- Type: text/x-patch, Size: 694 bytes --]
From 1ce6365d07c734cea9965d3135dd64e2641021ef Mon Sep 17 00:00:00 2001
From: kindlehl <kindlehl@osuosl.org>
Date: Wed, 19 Dec 2018 22:36:22 -0800
Subject: [PATCH] Removed twin forward-declaration of struct device
Signed-off-by: kindlehl <kindlehl@osuosl.org>
---
include/linux/pm.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/include/linux/pm.h b/include/linux/pm.h
index e723b78d8357..d33147db9400 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -51,8 +51,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" */
#else
--
2.19.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: Easy Kernel Patch
2018-12-20 6:47 Easy Kernel Patch Hunter Lannon
@ 2018-12-20 14:03 ` Jonathan Corbet
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2018-12-20 14:03 UTC (permalink / raw)
To: Hunter Lannon; +Cc: linux-kernel
On Wed, 19 Dec 2018 22:47:18 -0800
Hunter Lannon <kindlehl@osuosl.org> wrote:
> This is my first patch submitted. I hope I can finally say I have a
> commit in the Linux source code :)
I expect you'll get there, but this patch won't be the one that crosses
the bar for you. Here's some suggestions for how to do it successfully
next time:
- Read Documentation/process/submitting-patches.rst all the way through.
There's a lot of information there that would have helped you to avoid
the errors made here.
- Use scripts/get_maintainer.pl to be sure that you direct your patches
to the correct maintainer(s) and lists. A patch just sent to LKML is
unlikely to come to the attention of the people who need to see it.
- Please send patches inline rather than as attachments.
With regard to the patch itself:
> From 1ce6365d07c734cea9965d3135dd64e2641021ef Mon Sep 17 00:00:00 2001
> From: kindlehl <kindlehl@osuosl.org>
> Date: Wed, 19 Dec 2018 22:36:22 -0800
> Subject: [PATCH] Removed twin forward-declaration of struct device
Patches should always have an informative changelog saying *why* your
change improves the kernel. Removing a redundant declaration certainly
does that, but you need to say so.
> Signed-off-by: kindlehl <kindlehl@osuosl.org>
The signoff line needs your full and real name.
> ---
> include/linux/pm.h | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/include/linux/pm.h b/include/linux/pm.h
> index e723b78d8357..d33147db9400 100644
> --- a/include/linux/pm.h
> +++ b/include/linux/pm.h
> @@ -51,8 +51,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" */
> #else
> --
> 2.19.1
Fix those up and submit the patch properly, and I see no reason why it
would not be accepted.
Thanks for working to improve the kernel!
jon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-12-20 14:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-20 6:47 Easy Kernel Patch Hunter Lannon
2018-12-20 14:03 ` Jonathan Corbet
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.