[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YkJd3cW4DeHZePpI@lunn.ch>
Date: Tue, 29 Mar 2022 03:16:13 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Alaa Mohamed <eng.alaamohamedsoliman.am@...il.com>
Cc: outreachy@...ts.linux.dev, toke@...e.dk, kvalo@...nel.org,
davem@...emloft.net, kuba@...nel.org,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] First Patch: Add Printk to pci.c
On Tue, Mar 29, 2022 at 01:24:49AM +0200, Alaa Mohamed wrote:
> This patch for adding Printk line to ath9k probe function as a task
> for Outreachy internship
>
> Signed-off-by: Alaa Mohamed <eng.alaamohamedsoliman.am@...il.com>
> ---
> drivers/net/wireless/ath/ath9k/pci.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c
> index a074e23013c5..e16bdf343a2f 100644
> --- a/drivers/net/wireless/ath/ath9k/pci.c
> +++ b/drivers/net/wireless/ath/ath9k/pci.c
> @@ -892,6 +892,7 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
> int ret = 0;
> char hw_name[64];
> int msi_enabled = 0;
> + printk(KERN_DEBUG "I can modify the Linux kernel!\n");
Hi Alaa
Nice first patch. Everybody has to start somewhere. The description is
good, it explains 'why', which is the important thing. The signed-off-by
is there, and it looks like it did not get mangled by your mailer.
I suspect if you run ./scripts/checkpatch.pl on the patch it will ask
you to use something other than printk(KERN_DEBUG). I guess this comes
later in the Outreach internship program, so don't worry about it. But
it is a useful script to know about.
Andrew
Powered by blists - more mailing lists