[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201108091136.GA44749@kroah.com>
Date: Sun, 8 Nov 2020 10:11:36 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: Atul <leoatul12@...il.com>
Cc: perex@...ex.cz, tiwai@...e.com, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ALSA: usb-audio: Fix coding style problems
On Sun, Nov 08, 2020 at 02:05:16PM +0530, Atul wrote:
> From: Atul Gopinathan <leoatul12@...il.com>
>
> Hi,
No need for this to be in the changelog.
>
> This patch fixes some coding style warnings and errors that were
> generated using scripts/checkpatch.pl.
You should be explicit about _what_ warnings and errors. And probably
break them out into individual patches, one per warning/error type.
But more importantly, always run your patch through checkpatch.pl when
you are done, as you just _ADDED_ warnings to the kernel with this
change:
> @@ -895,9 +896,10 @@ static int snd_usb_nativeinstruments_boot_quirk(struct usb_device *dev)
> usb_reset_device(dev);
>
> /* return -EAGAIN, so the creation of an audio interface for this
> - * temporary device is aborted. The device will reconnect with a
> - * new product ID */
> - return -EAGAIN;
> + * temporary device is aborted. The device will reconnect with a
> + * new product ID
> + */
> + return -EAGAIN;
> }
>
> static void mbox2_setup_48_24_magic(struct usb_device *dev)
You turned tabs into spaces, not allowed, sorry.
If you want to do basic checkpatch cleanups, try starting in the
drivers/staging/ area of the kernel, which is much more forgiving and
set up just for this type of thing, instead of trying to do this in the
"core" kernel portions, where you have to deal with other real code
changing happening at the same time.
good luck!
greg k-h
Powered by blists - more mailing lists