Re: [PATCH v2] rust: check type of `$ptr` in `container_of!`
From: Tamir Duberstein
Date: Mon Apr 14 2025 - 10:28:34 EST
On Mon, Apr 14, 2025 at 9:57 AM Miguel Ojeda
<miguel.ojeda.sandonis@xxxxxxxxx> wrote:
>
> On Mon, Apr 14, 2025 at 3:27 PM Tamir Duberstein <tamird@xxxxxxxxx> wrote:
> >
> > `b4 prep --check` complains:
> > ● checkpatch.pl: :207: ERROR: Avoid using diff content in the commit
> > message - patch(1) might not work
> >
> > What do you suggest?
>
> (It is `checkpatch.pl` the one that complains, no?)
Yes, of course, I just mentioned b4 because that is how I invoke it -
better to over-communicate :)
>
> I don't think it really matters, since `git am` is OK with it. So
> unless you are sending the patch to a subsystem that still uses
> `patch` or `quilt` or similar, and those are quite rare nowadays, I
> wouldn't worry.
>
> But if you care and want to be extra nice, then I would suggest doing
> what others do, i.e. checking the Git log. That tells me to use `>` or
> `:`, since they seem to be common. I don't see `;`.
Will use `>` on respin since I need to fix up that comment anyhow.
> I would also recommend patching `patch`... :)
>
> Thanks for clarifying!
Thanks!