From: Alessandro Zucchelli <alessandro.zucchelli@bugseng.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: nicola.vetrini@bugseng.com, consulting@bugseng.com,
"Simone Ballarin" <simone.ballarin@bugseng.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Julien Grall" <julien@xen.org>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"Daniel P. Smith" <dpsmith@apertussolutions.com>,
"Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH 10/17] x86/asm: address violations of MISRA C:2012 Directive 4.10
Date: Thu, 04 Jul 2024 09:50:19 +0200 [thread overview]
Message-ID: <5f68a556c6bc263fe958a105b87dcf1e@bugseng.com> (raw)
In-Reply-To: <8a0c0cec-c168-471f-88ad-228ddcdd4f0a@suse.com>
On 2024-07-03 14:49, Jan Beulich wrote:
> On 01.07.2024 15:36, Alessandro Zucchelli wrote:
>> --- a/docs/misra/safe.json
>> +++ b/docs/misra/safe.json
>> @@ -90,6 +90,14 @@
>> "name": "Dir 4.10: direct inclusion guard before",
>> "text": "Headers with just the direct inclusion guard
>> before the inclusion guard are safe."
>> },
>> + {
>> + "id": "SAF-11-safe",
>> + "analyser": {
>> + "eclair": "MC3R1.D4.10"
>> + },
>> + "name": "Dir 4.10: file intended for multiple inclusion",
>> + "text": "Files intended for multiple inclusion are not
>> supposed to comply with D4.10."
>> + },
>> {
>> "id": "SAF-11-safe",
>
> This can't be right; the sentinel must have its number changed.
Yes, this must have been overlooked during the rebasing of the previous
patch version's commits.
>
>> --- a/xen/include/Makefile
>> +++ b/xen/include/Makefile
>> @@ -104,10 +104,17 @@ $(obj)/compat/.xlat/%.lst: $(srcdir)/xlat.lst
>> FORCE
>> xlat-y := $(shell sed -ne 's,@arch@,$(compat-arch-y),g' -re
>> 's,^[?!][[:blank:]]+[^[:blank:]]+[[:blank:]]+,,p' $(srcdir)/xlat.lst |
>> uniq)
>> xlat-y := $(filter $(patsubst compat/%,%,$(headers-y)),$(xlat-y))
>>
>> +ARCHDIR = $(shell echo $(SRCARCH) | tr a-z A-Z)
>
> Why is this being added here? It's not used ...
It was mistakenly left here from the previous version of the patch
series.
>
>> quiet_cmd_xlat_h = GEN $@
>> -cmd_xlat_h = \
>> - cat $(filter %.h,$^) >$@.new; \
>> +define cmd_xlat_h
>> + guard=$$(echo ASM_${SRCARCH}_COMPAT_XLAT_H | tr a-z A-Z); \
>> + echo "#ifndef $$guard" > $@.new; \
>> + echo "#define $$guard" >> $@.new; \
>> + cat $(filter %.h,$^) >> $@.new; \
>> + echo "#endif /* $$guard */" >> $@.new; \
>> mv -f $@.new $@
>> +endef
>>
>> $(obj)/compat/xlat.h: $(addprefix $(obj)/compat/.xlat/,$(xlat-y))
>> FORCE
>> $(call if_changed,xlat_h)
>
> ... anywhere. Did you mean to use it in place of ${SRCARCH}?
No, SRCARCH is correct, as ARCHDIR was supposed to be removed.
--
Alessandro Zucchelli, B.Sc.
Software Engineer, BUGSENG (https://bugseng.com)
next prev parent reply other threads:[~2024-07-04 7:50 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-01 11:10 [PATCH 00/17] xen: address violation of MISRA C:2012 Directive 4.10 Alessandro Zucchelli
2024-07-01 11:10 ` [PATCH 01/17] misra: add deviation for headers that explicitly avoid guards Alessandro Zucchelli
2024-07-03 12:46 ` Jan Beulich
2024-07-01 11:10 ` [PATCH 02/17] misra: modify deviations for empty and generated headers Alessandro Zucchelli
2024-07-01 11:10 ` [PATCH 03/17] misra: add deviations for direct inclusion guards Alessandro Zucchelli
2024-07-01 14:16 ` Jan Beulich
2024-07-12 22:00 ` Stefano Stabellini
2024-07-01 13:35 ` [PATCH 04/17] xen/arm: address violations of MISRA C:2012 Directive 4.10 Alessandro Zucchelli
2024-07-12 22:09 ` Stefano Stabellini
2024-07-01 13:36 ` [PATCH 05/17] xen/x86: " Alessandro Zucchelli
2024-07-01 14:21 ` Jan Beulich
2024-07-09 7:38 ` Alessandro Zucchelli
2024-07-09 7:45 ` Jan Beulich
2024-07-12 22:09 ` Stefano Stabellini
2024-07-15 7:27 ` Jan Beulich
2024-07-01 13:36 ` [PATCH 06/17] x86/EFI: " Alessandro Zucchelli
2024-07-01 14:09 ` Marek Marczykowski-Górecki
2024-07-01 14:36 ` Alessandro Zucchelli
2024-07-01 14:11 ` Jan Beulich
2024-07-12 22:10 ` Stefano Stabellini
2024-07-01 13:36 ` [PATCH 07/17] xen/common: " Alessandro Zucchelli
2024-07-01 13:36 ` [PATCH 08/17] xen/efi: " Alessandro Zucchelli
2024-07-01 13:36 ` [PATCH 09/17] xen: " Alessandro Zucchelli
2024-07-03 12:30 ` Jan Beulich
2024-07-12 22:16 ` Stefano Stabellini
2024-07-01 13:36 ` [PATCH 10/17] x86/asm: " Alessandro Zucchelli
2024-07-03 12:49 ` Jan Beulich
2024-07-04 7:50 ` Alessandro Zucchelli [this message]
2024-07-01 13:43 ` [PATCH 11/17] xen/arm: " Alessandro Zucchelli
2024-07-12 22:19 ` Stefano Stabellini
2024-07-01 13:43 ` [PATCH 12/17] xen: " Alessandro Zucchelli
2024-07-03 12:51 ` Jan Beulich
2024-07-04 8:14 ` Alessandro Zucchelli
2024-07-01 13:45 ` [PATCH 13/17] xen: add deviations for MISRA C 2012 Dir D4.10 Alessandro Zucchelli
2024-07-12 22:22 ` Stefano Stabellini
2024-07-01 13:45 ` [PATCH 14/17] xen: add SAF deviation for MISRA C Dir 4.10 Alessandro Zucchelli
2024-07-03 13:23 ` Jan Beulich
2024-07-12 22:28 ` Stefano Stabellini
2024-07-22 8:54 ` Alessandro Zucchelli
2024-07-22 9:14 ` Jan Beulich
2024-07-01 13:46 ` [PATCH 15/17] xen/x86: rename inclusion guards for consistency Alessandro Zucchelli
2024-07-03 13:26 ` Jan Beulich
2024-07-01 13:46 ` [PATCH 16/17] xen/build: address violation of MISRA C Directive 4.10 Alessandro Zucchelli
2024-07-03 13:32 ` Jan Beulich
2024-07-01 13:46 ` [RFC PATCH 17/17] CODING_STYLE: Add a section on header guards naming conventions Alessandro Zucchelli
2024-07-03 13:48 ` Jan Beulich
2024-07-12 22:38 ` Stefano Stabellini
2024-07-15 7:23 ` Jan Beulich
2024-07-15 9:08 ` Alessandro Zucchelli
2024-07-16 0:43 ` Stefano Stabellini
2024-07-16 7:17 ` Jan Beulich
2024-07-17 0:20 ` Stefano Stabellini
2024-07-17 10:24 ` Jan Beulich
2024-07-17 23:02 ` Stefano Stabellini
2024-07-18 8:59 ` Jan Beulich
2024-07-18 22:01 ` Stefano Stabellini
2024-07-19 9:05 ` Jan Beulich
2024-07-19 15:21 ` Stefano Stabellini
2024-07-22 6:56 ` Alessandro Zucchelli
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=5f68a556c6bc263fe958a105b87dcf1e@bugseng.com \
--to=alessandro.zucchelli@bugseng.com \
--cc=andrew.cooper3@citrix.com \
--cc=consulting@bugseng.com \
--cc=dpsmith@apertussolutions.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=marmarek@invisiblethingslab.com \
--cc=nicola.vetrini@bugseng.com \
--cc=roger.pau@citrix.com \
--cc=simone.ballarin@bugseng.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/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.