[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1468340137.8745.20.camel@perches.com>
Date: Tue, 12 Jul 2016 09:15:37 -0700
From: Joe Perches <joe@...ches.com>
To: Shuah Khan <shuahkh@....samsung.com>, kyungmin.park@...sung.com,
k.debski@...sung.com, jtp.park@...sung.com, mchehab@...nel.org,
javier@....samsung.com
Cc: linux-arm-kernel@...ts.infradead.org, linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] media: s5p-mfc Fix misspelled error message and
checkpatch errors
On Tue, 2016-07-12 at 10:08 -0600, Shuah Khan wrote:
> On 07/12/2016 09:51 AM, Joe Perches wrote:
> > On Tue, 2016-07-12 at 08:42 -0600, Shuah Khan wrote:
> > > On 07/12/2016 08:06 AM, Joe Perches wrote:
> > > > On Mon, 2016-07-11 at 16:39 -0600, Shuah Khan wrote:
> > > > >
> > > > > Fix misspelled error message and existing checkpatch errors in the
> > > > > error message conditional.
> > > > []
> > > > >
> > > > > diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
> > > > []
> > > > >
> > > > > @@ -775,11 +775,11 @@ static int vidioc_g_crop(struct file *file, void *priv,
> > > > > u32 left, right, top, bottom;
> > > > >
> > > > > if (ctx->state != MFCINST_HEAD_PARSED &&
> > > > > - ctx->state != MFCINST_RUNNING && ctx->state != MFCINST_FINISHING
> > > > > - && ctx->state != MFCINST_FINISHED) {
> > > > > - mfc_err("Cannont set crop\n");
> > > > > - return -EINVAL;
> > > > > - }
> > > > > + ctx->state != MFCINST_RUNNING && ctx->state != MFCINST_FINISHING
> > > > > + && ctx->state != MFCINST_FINISHED) {
> > > > > + mfc_err("Can not get crop information\n");
> > > > > + return -EINVAL;
> > > > > + }
> > > > is it a set or a get?
> > > vidioc_g_crop is a get routine.
> > > >
> > > >
> > > > It'd be nicer for humans to read if the alignment was consistent
> > > Are you okay with this alignment change or would you like it
> > > changed?
> > Well, if you're resubmitting, I'd prefer it changed.
> > Thanks.
> >
> chekcpatch stopped complaining. Are you looking for the entire file
> alignments changed? I am not clear on what needs to be changed?
I think doing just this spelling and get/set correction and
fixing the alignment in this single case in a single patch
would be fine here.
Foxing the alignment for the entire file would be a more
significant change and isn't necessary in this patch.
Another thing possible for the file would be to change the
mfc_debug and mfc_err/mfc_info macros to use pr_<level>
without the generally unnecessary __func__ and __LINE__
uses.
This could both enable dynamic_debug uses for the KERN_DEBUG
cases and reduce overall object size.
Powered by blists - more mailing lists