From: Stefano Brivio <sbrivio@redhat.com>
To: Peter Foley <pefoley@google.com>
Cc: passt-dev@passt.top
Subject: Re: [PATCH] Add missing includes to headers
Date: Mon, 23 Feb 2026 20:05:30 +0100 (CET) [thread overview]
Message-ID: <20260223200525.79be5cda@elisabeth> (raw)
In-Reply-To: <CAAAKUPMQZetb9RYoxaUZGyp7dWm8pifmvEfyV3M4Q6+j9jw89g@mail.gmail.com>
On Mon, 23 Feb 2026 13:08:07 -0500
Peter Foley <pefoley@google.com> wrote:
> On Mon, Feb 23, 2026 at 12:35 PM Stefano Brivio <sbrivio@redhat.com> wrote:
>
> > By the way, we already run clang-tidy tests ('make clang-tidy') as part
> > of our tests (test/build/static_checkers.sh).
> >
> > Would it be just a matter of enabling the misc-include-cleaner in the
> > list of tests we give clang-tidy from the Makefile:
> >
> > https://clang.llvm.org/extra/clang-tidy/checks/misc/include-cleaner.html
> >
> > ? I haven't tried.
>
> It appears so, a local change to pass -checks=misc-include-cleaner to
> clang-tidy resulted in a ton of errors like:
> /usr/local/google/home/pefoley/passt/vu_common.c:277:2: error: no header
> providing "iov_from_buf" is directly included
>
> [...]
Hmm, "nice". I guess we should find out if it's reasonable / doable to
"fix" all those.
> > > If you want, I can fold the two "include fixing" commits together and
> > > re-send.
> >
> > Yes, thanks, that would be appreciated. I would first try to settle on
> > a convenient way to keep Blaze/Bazel happy for the future, though.
>
> As I mentioned earlies, Bazel appears to be happy withough the include
> fixes, it's just Google's internal Blaze varient that has some kind of
> stricter checking that falls over.
Oh, I didn't understand, I thought Bazel reported a non-empty subset of
the failures from Blaze.
> I can send the change out for supporting the Bazel build, but I think using
> misc-include-cleaner would be a better plan.
Yeah, I think so too... as long as it's not hundreds of additional
warnings / fixes we need to take care of, it's definitely less effort
and should be less clunky too.
--
Stefano
next prev parent reply other threads:[~2026-02-23 19:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-19 17:45 Peter Foley
2026-02-21 17:57 ` Stefano Brivio
[not found] ` <CAAAKUPN=GPDp84tQAv4Kpxs-AzKR44pDkWda-AbXWaUomYN5eg@mail.gmail.com>
[not found] ` <CAAAKUPMP8goRHqk0VDn6UDWmyyPXpzs37UuCLL8x7wDp10tY6A@mail.gmail.com>
2026-02-23 17:35 ` Stefano Brivio
[not found] ` <CAAAKUPMQZetb9RYoxaUZGyp7dWm8pifmvEfyV3M4Q6+j9jw89g@mail.gmail.com>
2026-02-23 18:11 ` [PATCH v2] " Peter Foley
2026-02-23 19:05 ` Stefano Brivio [this message]
[not found] ` <CAAAKUPMRYcbeTXZHX9aQtZfv4L=sBbzqSWqo-xG91F6r7f8M1w@mail.gmail.com>
2026-02-23 20:47 ` [PATCH] " Stefano Brivio
2026-02-23 5:33 ` David Gibson
2026-02-23 16:32 ` Stefano Brivio
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=20260223200525.79be5cda@elisabeth \
--to=sbrivio@redhat.com \
--cc=passt-dev@passt.top \
--cc=pefoley@google.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.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).