From: Louis Chauvet <louis.chauvet@bootlin.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
igt-dev@lists.freedesktop.org, miquel.raynal@bootlin.com,
thomas.petazzoni@bootlin.com, jeremie.dautheribes@bootlin.com,
arthurgrillo@riseup.net, seanpaul@google.com, marcheu@google.com,
nicolejadeyee@google.com,
Ashutosh Dixit <ashutosh.dixit@intel.com>,
Bhanuprakash Modem <bhanuprakash.modem@intel.com>,
Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>,
Petri Latvala <adrinael@adrinael.net>
Subject: Re: [PATCH i-g-t] CONTRIBUTING: Add coding style guidelines
Date: Wed, 20 Mar 2024 10:42:03 +0100 [thread overview]
Message-ID: <ZfqvawDU-5Eh5duy@localhost.localdomain> (raw)
In-Reply-To: <87cyrrpres.fsf@intel.com>
Le 18/03/24 - 16:04, Jani Nikula a écrit :
> On Mon, 18 Mar 2024, Kamil Konieczny <kamil.konieczny@linux.intel.com> wrote:
> > Hi Louis,
> > On 2024-03-15 at 17:08:37 +0100, Louis Chauvet wrote:
> >> As explained in [1], the submitted patches should follow the same style as
> >> the Linux kernel and must be checked against checkpatch.pl, so add this
> >> recommendation in the CONTRIBUTING.md file.
> >>
> >> [1]: https://lore.kernel.org/all/20240314170643.77vzqqoie2otyu4w@kamilkon-desk.igk.intel.com/
> >>
> >> Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
> >>
> >> To: igt-dev@lists.freedesktop.org
> > -^^^^^^^^^^^^^^
> > Drop this.
> >
> >> Cc: miquel.raynal@bootlin.com
> >> Cc: thomas.petazzoni@bootlin.com
> >> Cc: jeremie.dautheribes@bootlin.com
> >> Cc: arthurgrillo@riseup.net
> >> Cc: seanpaul@google.com
> >> Cc: marcheu@google.com
> >> Cc: nicolejadeyee@google.com
> >> Cc: kamil.konieczny@linux.intel.com
> >
> > These should be before your s-o-b above.
> > I will add here few more maintainers:
> >
> > Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
> > Cc: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
> > Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> > Cc: Petri Latvala <adrinael@adrinael.net>
> >
> >> ---
> >
> > Here you could add your notes which will be ignored by git
> > at merging but I do not see any?
> >
> >> To: igt-dev@lists.freedesktop.org
> >> Cc: miquel.raynal@bootlin.com
> >> Cc: thomas.petazzoni@bootlin.com
> >> Cc: jeremie.dautheribes@bootlin.com
> >> Cc: arthurgrillo@riseup.net
> >> Cc: seanpaul@google.com
> >> Cc: marcheu@google.com
> >> Cc: nicolejadeyee@google.com
> >> Cc: kamil.konieczny@linux.intel.com
> >>
> >> Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
>
> Looks like you didn't run checkpatch on this contribution! ;D
Probably, I will run it for the v2.
> >> ---
> >> CONTRIBUTING.md | 2 ++
> >> 1 file changed, 2 insertions(+)
> >>
> >> diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
> >> index 2ab8a48f6ae9..ec8debb4091e 100644
> >> --- a/CONTRIBUTING.md
> >> +++ b/CONTRIBUTING.md
> >> @@ -78,6 +78,8 @@ Sending Patches
> >> - Changes to the testcases are automatically tested. Take the results into
> >> account before merging.
> >>
> >> +- The coding rules are the same as for the Linux kernel. To check for common
> > -------------------------^
> > insert 'almost' here: s/are the same/are almost the same/
> >
> >> + style problems, you need to use the kernel's checkpatch.pl script.
> >
> > There are known variations like we do not have MAINTAINERS, or
> > we allow to use typdefs, allow to have (reasonable) longer lines
> > and few others differences.
>
> You could define the checkpatch.pl options to use. Maybe even add a
> script wrapper to run, with the options set.
>
> For example, we use these command-line options for i915:
>
> scripts/checkpatch.pl -q --emacs --strict --show-types --max-line-length=100 --ignore=BIT_MACRO,SPLIT_STRING,LONG_LINE_STRING,BOOL_MEMBER
Is this line applicable for the whole repository?
> Alternatively, define a clang-format configuration file and use that
> instead of checkpatch. Linux repo root has .clang-format.
I tried to use the Linux' .clang-format, but there are some limitation,
espicialy for alignment:
#define REG_LONG_NAME 0x2
#define REG_SHORT 0x3
is changed to
#define REG_LONG_NAME 0x2
#define REG_SHORT 0x3
(same for all structure members, multiple assignements...)
Kind regards,
Louis Chauvet
>
> BR,
> Jani.
>
>
> >
> > Regards,
> > Kamil
> >
> >>
> >> Commit Rights
> >> -------------
> >>
> >> ---
> >> base-commit: ed47dd9fb6b5be6c88513c2816f0f7cfdd0e02f6
> >> change-id: 20240315-add_coding_style-b755454de958
> >>
> >> Best regards,
> >> --
> >> Louis Chauvet <louis.chauvet@bootlin.com>
> >>
>
> --
> Jani Nikula, Intel
--
Louis Chauvet, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2024-03-20 9:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-15 16:08 [PATCH i-g-t] CONTRIBUTING: Add coding style guidelines Louis Chauvet
2024-03-15 16:35 ` ✓ CI.xeBAT: success for " Patchwork
2024-03-15 16:50 ` [PATCH i-g-t] " Arthur Grillo
2024-03-15 16:54 ` ✗ Fi.CI.BAT: failure for " Patchwork
2024-03-18 11:44 ` Kamil Konieczny
2024-03-21 4:28 ` Illipilli, TejasreeX
2024-03-18 11:43 ` [PATCH i-g-t] " Kamil Konieczny
2024-03-18 14:04 ` Jani Nikula
2024-03-20 9:42 ` Louis Chauvet [this message]
2024-03-20 9:42 ` Louis Chauvet
2024-03-20 7:07 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-03-20 15:22 ` [PATCH i-g-t] " Kamil Konieczny
2024-03-20 16:41 ` Louis Chauvet
2024-03-20 17:48 ` ✗ Fi.CI.IGT: failure for " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZfqvawDU-5Eh5duy@localhost.localdomain \
--to=louis.chauvet@bootlin.com \
--cc=adrinael@adrinael.net \
--cc=arthurgrillo@riseup.net \
--cc=ashutosh.dixit@intel.com \
--cc=bhanuprakash.modem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=jeremie.dautheribes@bootlin.com \
--cc=juhapekka.heikkila@gmail.com \
--cc=kamil.konieczny@linux.intel.com \
--cc=marcheu@google.com \
--cc=miquel.raynal@bootlin.com \
--cc=nicolejadeyee@google.com \
--cc=seanpaul@google.com \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.