[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 7/7] tests/style: check qemu/osdep.h is included in all .c
From: |
Peter Maydell |
Subject: |
Re: [PATCH v2 7/7] tests/style: check qemu/osdep.h is included in all .c files |
Date: |
Mon, 4 Jul 2022 16:47:16 +0100 |
On Mon, 4 Jul 2022 at 16:23, Daniel P. Berrangé <berrange@redhat.com> wrote:
>
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> +
> +sc_c_file_osdep_h:
> + @require='#include "qemu/osdep.h"' \
> + in_vc_files='\.c$$' \
> + halt='all C files must include qemu/osdep.h' \
> + $(_sc_search_regexp)
The rule is not just "included in all C files", but "included
as the *first* include in all C files".
thanks
-- PMM
[PATCH v2 6/7] misc: ensure qemu/osdep.h is included in all .c files, Daniel P . Berrangé, 2022/07/04