checkpatch.pl
checkpatch.pl
find ./drivers/staging/ -name '*.c' | xargs ./scripts/checkpatch.pl -f
find ./drivers/staging/ -name '*.c' | xargs ./scripts/checkpatch.pl -f
find ./drivers/staging/ -name '*.c' | xargs ./scripts/checkpatch.pl -f
./scripts/checkpatch.pl --strict -f drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
./scripts/checkpatch.pl --strict -f drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
./scripts/checkpatch.pl --strict -f drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
--------------------------------------------------------------------------
ERROR: open brace '{' following function definitions go on the next line
#48: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:48:
+int
+sh_css_vf_downscale_log2(
+ const struct ia_css_frame_info *out_info,
+ const struct ia_css_frame_info *vf_info,
+ unsigned int *downscale_log2) { WARNING: please, no spaces at the start of a line
#50: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:50:
+ const struct ia_css_frame_info *out_info,$ WARNING: please, no spaces at the start of a line
#51: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:51:
+ const struct ia_css_frame_info *vf_info,$ WARNING: please, no spaces at the start of a line
#52: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:52:
+ unsigned int *downscale_log2) {$ WARNING: Block comments should align the * on each line
#65: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:65:
+ /* downscale until width smaller than the viewfinder width. We don't
+ * test for the height since the vmem buffers only put restrictions on ERROR: that open brace { should be on the previous line
#68: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:68:
+ while (out_width >= vf_info->res.width)
+ { ERROR: open brace '{' following function definitions go on the next line
#83: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:83:
+static int
+configure_kernel(
+ const struct ia_css_binary_info *info,
+ const struct ia_css_frame_info *out_info,
+ const struct ia_css_frame_info *vf_info,
+ unsigned int *downscale_log2,
+ struct ia_css_vf_configuration *config) { WARNING: please, no spaces at the start of a line
#85: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:85:
+ const struct ia_css_binary_info *info,$ WARNING: please, no spaces at the start of a line
#86: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:86:
+ const struct ia_css_frame_info *out_info,$ WARNING: please, no spaces at the start of a line
#87: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:87:
+ const struct ia_css_frame_info *vf_info,$ WARNING: please, no spaces at the start of a line
#88: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:88:
+ unsigned int *downscale_log2,$ WARNING: please, no spaces at the start of a line
#89: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:89:
+ struct ia_css_vf_configuration *config) {$ WARNING: please, no spaces at the start of a line
#109: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:109:
+ struct ia_css_vf_configuration *config,$ WARNING: please, no spaces at the start of a line
#110: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:110:
+ const struct ia_css_frame_info *vf_info)$ total: 3 errors, 11 warnings, 134 lines checked
./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
--------------------------------------------------------------------------
ERROR: open brace '{' following function definitions go on the next line
#48: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:48:
+int
+sh_css_vf_downscale_log2(
+ const struct ia_css_frame_info *out_info,
+ const struct ia_css_frame_info *vf_info,
+ unsigned int *downscale_log2) { WARNING: please, no spaces at the start of a line
#50: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:50:
+ const struct ia_css_frame_info *out_info,$ WARNING: please, no spaces at the start of a line
#51: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:51:
+ const struct ia_css_frame_info *vf_info,$ WARNING: please, no spaces at the start of a line
#52: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:52:
+ unsigned int *downscale_log2) {$ WARNING: Block comments should align the * on each line
#65: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:65:
+ /* downscale until width smaller than the viewfinder width. We don't
+ * test for the height since the vmem buffers only put restrictions on ERROR: that open brace { should be on the previous line
#68: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:68:
+ while (out_width >= vf_info->res.width)
+ { ERROR: open brace '{' following function definitions go on the next line
#83: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:83:
+static int
+configure_kernel(
+ const struct ia_css_binary_info *info,
+ const struct ia_css_frame_info *out_info,
+ const struct ia_css_frame_info *vf_info,
+ unsigned int *downscale_log2,
+ struct ia_css_vf_configuration *config) { WARNING: please, no spaces at the start of a line
#85: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:85:
+ const struct ia_css_binary_info *info,$ WARNING: please, no spaces at the start of a line
#86: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:86:
+ const struct ia_css_frame_info *out_info,$ WARNING: please, no spaces at the start of a line
#87: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:87:
+ const struct ia_css_frame_info *vf_info,$ WARNING: please, no spaces at the start of a line
#88: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:88:
+ unsigned int *downscale_log2,$ WARNING: please, no spaces at the start of a line
#89: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:89:
+ struct ia_css_vf_configuration *config) {$ WARNING: please, no spaces at the start of a line
#109: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:109:
+ struct ia_css_vf_configuration *config,$ WARNING: please, no spaces at the start of a line
#110: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:110:
+ const struct ia_css_frame_info *vf_info)$ total: 3 errors, 11 warnings, 134 lines checked
./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
--------------------------------------------------------------------------
ERROR: open brace '{' following function definitions go on the next line
#48: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:48:
+int
+sh_css_vf_downscale_log2(
+ const struct ia_css_frame_info *out_info,
+ const struct ia_css_frame_info *vf_info,
+ unsigned int *downscale_log2) { WARNING: please, no spaces at the start of a line
#50: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:50:
+ const struct ia_css_frame_info *out_info,$ WARNING: please, no spaces at the start of a line
#51: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:51:
+ const struct ia_css_frame_info *vf_info,$ WARNING: please, no spaces at the start of a line
#52: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:52:
+ unsigned int *downscale_log2) {$ WARNING: Block comments should align the * on each line
#65: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:65:
+ /* downscale until width smaller than the viewfinder width. We don't
+ * test for the height since the vmem buffers only put restrictions on ERROR: that open brace { should be on the previous line
#68: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:68:
+ while (out_width >= vf_info->res.width)
+ { ERROR: open brace '{' following function definitions go on the next line
#83: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:83:
+static int
+configure_kernel(
+ const struct ia_css_binary_info *info,
+ const struct ia_css_frame_info *out_info,
+ const struct ia_css_frame_info *vf_info,
+ unsigned int *downscale_log2,
+ struct ia_css_vf_configuration *config) { WARNING: please, no spaces at the start of a line
#85: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:85:
+ const struct ia_css_binary_info *info,$ WARNING: please, no spaces at the start of a line
#86: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:86:
+ const struct ia_css_frame_info *out_info,$ WARNING: please, no spaces at the start of a line
#87: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:87:
+ const struct ia_css_frame_info *vf_info,$ WARNING: please, no spaces at the start of a line
#88: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:88:
+ unsigned int *downscale_log2,$ WARNING: please, no spaces at the start of a line
#89: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:89:
+ struct ia_css_vf_configuration *config) {$ WARNING: please, no spaces at the start of a line
#109: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:109:
+ struct ia_css_vf_configuration *config,$ WARNING: please, no spaces at the start of a line
#110: FILE: ./drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c:110:
+ const struct ia_css_frame_info *vf_info)$ total: 3 errors, 11 warnings, 134 lines checked
git send-mail
git add drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
git add drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
git add drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
git commit -s
git commit -s
git commit -s
staging: atomisp: vf_1.0: fix open brace placement Fix open brace placement on function definitions and control statements to comply with kernel coding style. Signed-off-by: Anushka Badhe <[email protected]>
staging: atomisp: vf_1.0: fix open brace placement Fix open brace placement on function definitions and control statements to comply with kernel coding style. Signed-off-by: Anushka Badhe <[email protected]>
staging: atomisp: vf_1.0: fix open brace placement Fix open brace placement on function definitions and control statements to comply with kernel coding style. Signed-off-by: Anushka Badhe <[email protected]>
$ git format-patch -1 0001-staging-atomisp-vf_1.0-fix-open-brace-placement.patch
$ git format-patch -1 0001-staging-atomisp-vf_1.0-fix-open-brace-placement.patch
$ git format-patch -1 0001-staging-atomisp-vf_1.0-fix-open-brace-placement.patch
./scripts/checkpatch.pl --strict 0001-*.patch
./scripts/checkpatch.pl --strict 0001-*.patch
./scripts/checkpatch.pl --strict 0001-*.patch
get-maintainer.pl
./scripts/get_maintainer.pl -f drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
./scripts/get_maintainer.pl -f drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
./scripts/get_maintainer.pl -f drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c
git send-email [email protected] --cc=email2.gmail.com 0001-your-patch-name.patch
git send-email [email protected] --cc=email2.gmail.com 0001-your-patch-name.patch
git send-email [email protected] --cc=email2.gmail.com 0001-your-patch-name.patch
anu@laptop:~/kernel-dev/source/linux$ git send-email 0001-staging-atomisp-vf_1.0-fix-open-brace-placement.patch \ [email protected] \ [email protected] \ [email protected] \ [email protected] \ [email protected] \ [email protected] \ [email protected]
0001-staging-atomisp-vf_1.0-fix-open-brace-placement.patch (mbox) Adding cc: Anushka Badhe <[email protected]> from line 'From: Anushka Badhe <[email protected]>'
(body) Adding cc: Anushka Badhe <[email protected]> from line 'Signed-off-by: Anushka Badhe <[email protected]>' From: Anushka Badhe <[email protected]>
To: [email protected], [email protected], [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], Anushka Badhe <[email protected]>
Subject: [PATCH] staging: atomisp: vf_1.0: fix open brace placement
Date: Mon, 23 Mar 2026 15:00:24 +0530
Message-ID: <[email protected]>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit The Cc list above has been expanded by additional addresses found in the patch commit message. By default send-email prompts before sending whenever this occurs. This behavior is controlled by the sendemail.confirm configuration setting. For additional information, run 'git send-email --help'. To retain the current behavior, but squelch this message, run 'git config --global sendemail.confirm auto'. Send this email? ([y]es|[n]o|[e]dit|[q]uit|[a]ll): y
OK. Log says:
Sendmail: /usr/sbin/sendmail -i [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
From: Anushka Badhe <[email protected]>
To: [email protected], [email protected], [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], Anushka Badhe <[email protected]>
Subject: [PATCH] staging: atomisp: vf_1.0: fix open brace placement
Date: Mon, 23 Mar 2026 15:00:24 +0530
Message-ID: <[email protected]>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit Result: OK
anu@laptop:~/kernel-dev/source/linux$ git send-email 0001-staging-atomisp-vf_1.0-fix-open-brace-placement.patch \ [email protected] \ [email protected] \ [email protected] \ [email protected] \ [email protected] \ [email protected] \ [email protected]
0001-staging-atomisp-vf_1.0-fix-open-brace-placement.patch (mbox) Adding cc: Anushka Badhe <[email protected]> from line 'From: Anushka Badhe <[email protected]>'
(body) Adding cc: Anushka Badhe <[email protected]> from line 'Signed-off-by: Anushka Badhe <[email protected]>' From: Anushka Badhe <[email protected]>
To: [email protected], [email protected], [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], Anushka Badhe <[email protected]>
Subject: [PATCH] staging: atomisp: vf_1.0: fix open brace placement
Date: Mon, 23 Mar 2026 15:00:24 +0530
Message-ID: <[email protected]>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit The Cc list above has been expanded by additional addresses found in the patch commit message. By default send-email prompts before sending whenever this occurs. This behavior is controlled by the sendemail.confirm configuration setting. For additional information, run 'git send-email --help'. To retain the current behavior, but squelch this message, run 'git config --global sendemail.confirm auto'. Send this email? ([y]es|[n]o|[e]dit|[q]uit|[a]ll): y
OK. Log says:
Sendmail: /usr/sbin/sendmail -i [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
From: Anushka Badhe <[email protected]>
To: [email protected], [email protected], [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], Anushka Badhe <[email protected]>
Subject: [PATCH] staging: atomisp: vf_1.0: fix open brace placement
Date: Mon, 23 Mar 2026 15:00:24 +0530
Message-ID: <[email protected]>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit Result: OK
anu@laptop:~/kernel-dev/source/linux$ git send-email 0001-staging-atomisp-vf_1.0-fix-open-brace-placement.patch \ [email protected] \ [email protected] \ [email protected] \ [email protected] \ [email protected] \ [email protected] \ [email protected]
0001-staging-atomisp-vf_1.0-fix-open-brace-placement.patch (mbox) Adding cc: Anushka Badhe <[email protected]> from line 'From: Anushka Badhe <[email protected]>'
(body) Adding cc: Anushka Badhe <[email protected]> from line 'Signed-off-by: Anushka Badhe <[email protected]>' From: Anushka Badhe <[email protected]>
To: [email protected], [email protected], [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], Anushka Badhe <[email protected]>
Subject: [PATCH] staging: atomisp: vf_1.0: fix open brace placement
Date: Mon, 23 Mar 2026 15:00:24 +0530
Message-ID: <[email protected]>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit The Cc list above has been expanded by additional addresses found in the patch commit message. By default send-email prompts before sending whenever this occurs. This behavior is controlled by the sendemail.confirm configuration setting. For additional information, run 'git send-email --help'. To retain the current behavior, but squelch this message, run 'git config --global sendemail.confirm auto'. Send this email? ([y]es|[n]o|[e]dit|[q]uit|[a]ll): y
OK. Log says:
Sendmail: /usr/sbin/sendmail -i [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
From: Anushka Badhe <[email protected]>
To: [email protected], [email protected], [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], Anushka Badhe <[email protected]>
Subject: [PATCH] staging: atomisp: vf_1.0: fix open brace placement
Date: Mon, 23 Mar 2026 15:00:24 +0530
Message-ID: <[email protected]>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit Result: OK
Fix open brace placement on function definitions and control statements to comply with kernel coding style.
git commit --amend
git commit --amend
git commit --amend
lore.kernel.org
On Mon, Mar 23, 2026 at 03:51:04PM +0530, Anushka Badhe wrote: > Fix open brace placement on function definitions and control statements
> to comply with kernel coding style. ... > sh_css_vf_downscale_log2(
> const struct ia_css_frame_info *out_info,
> const struct ia_css_frame_info *vf_info,
> - unsigned int *downscale_log2) {
> + unsigned int *downscale_log2)
> +{ The indentation of the entire function is broken and needs to be fixed.
And IIRC there were already 3+ patches on the same, so please try instead
helping with reviewing existing stream on AtomISP patches. -- With Best Regards,
Andy Shevchenko
On Mon, Mar 23, 2026 at 03:51:04PM +0530, Anushka Badhe wrote: > Fix open brace placement on function definitions and control statements
> to comply with kernel coding style. ... > sh_css_vf_downscale_log2(
> const struct ia_css_frame_info *out_info,
> const struct ia_css_frame_info *vf_info,
> - unsigned int *downscale_log2) {
> + unsigned int *downscale_log2)
> +{ The indentation of the entire function is broken and needs to be fixed.
And IIRC there were already 3+ patches on the same, so please try instead
helping with reviewing existing stream on AtomISP patches. -- With Best Regards,
Andy Shevchenko
On Mon, Mar 23, 2026 at 03:51:04PM +0530, Anushka Badhe wrote: > Fix open brace placement on function definitions and control statements
> to comply with kernel coding style. ... > sh_css_vf_downscale_log2(
> const struct ia_css_frame_info *out_info,
> const struct ia_css_frame_info *vf_info,
> - unsigned int *downscale_log2) {
> + unsigned int *downscale_log2)
> +{ The indentation of the entire function is broken and needs to be fixed.
And IIRC there were already 3+ patches on the same, so please try instead
helping with reviewing existing stream on AtomISP patches. -- With Best Regards,
Andy Shevchenko - ERROR (strict, must fix)
- WARNING (requires review)
- CHECK (mild/stylistic) levels - title --- subsystem name and issue fixed
- short description of issues fixed
- signed off by