[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 3/3] xen/cppcheck: globally suppress unusedStructMember
- To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
- From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
- Date: Sat, 4 Mar 2023 07:44:15 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Fz8OvVumSsDVLte1KtHpxyElApUX5XNUfElLLwSnbqA=; b=SNEAMJAoXkIva2NnRCmT5CCXj1rUNR6yvAB0bNvB4lanzqZ1emN2kjCg2LEAuRGJSq0jcAeFgFqj1qTaiF3I80B/A9Tc8+aN3fyf16leLMVUrsz+xoE0oI3iEkY8WfxTcTzFh05bq/mdoF5ZYQrd7FirlsjBYjSmUEdV+Lfvuc+QzgLokb3X9mroInizGn8I+qLTgrTNjRZByCneNghQNlNouhhAGNvoMbIJaaHbab/xuBYLI9i4nL51f2S/YNH0tyOWwL/QGFPwr7d6Y4qbJsB3sKtDvuHboIXpgZ6VUKxH+sTd07iT3nmsi8VbEVfrCBeWY1oW5LQ/BBC5HWkJfQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=emGnonOu5oClh/AUamHzaFLN2DhiOmN91mVm4DMTeQ5pFZ5BpcejcigfXmlz9xwb5RoKQgNLR1Gt2kvTa924GVK48nBRDCo4x5j1ZS70V2YmZ+R1gzrfdXLv8KAwEylmrLaSkqFx92tMWBg8SZMnSy0x6L2CNGSfnncsrlzlqKJOFlV1Cyutqy0tI9rfxAz4GR9TV/hRM/q4QsNOf+YZ6CQsamRg8Ew3DHbOh40e1qWB0p/NYX+vqYQfRAWr2ygZHl5yry202jISAlp0VJjfK4KaX2rNWR62t7AUvWVSmDkhIhARO+JKcVG4H977Eh7QLpsA0gdnQpNzkmrqo2HWrQ==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Wei Chen <Wei.Chen@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Wei Liu <wl@xxxxxxx>
- Delivery-date: Sat, 04 Mar 2023 07:44:53 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHZTbQPQEQiXjeM3EGpafXhdsOtVK7piYCAgAC1RAA=
- Thread-topic: [PATCH v3 3/3] xen/cppcheck: globally suppress unusedStructMember
> On 3 Mar 2023, at 20:55, Stefano Stabellini <sstabellini@xxxxxxxxxx> wrote:
>
> On Fri, 3 Mar 2023, Luca Fancellu wrote:
>> unusedStructMember warnings from cppcheck are not reliable and
>> are causing a lot of false positives, suppress the checker
>> globally for now.
>>
>> Signed-off-by: Luca Fancellu <luca.fancellu@xxxxxxx>
>
> Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
>
> This is great! Results are much cleaner. With this series accepted, I
> think we can start looking into how to "diff" cppcheck results to spot
> regressions in new patches.
Yes indeed! I have some ideas about the diff, I’ll present something at the
FuSa meeting
>
>
>> ---
>> Changes from v2:
>> - New patch
>> ---
>> xen/scripts/xen_analysis/cppcheck_analysis.py | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/xen/scripts/xen_analysis/cppcheck_analysis.py
>> b/xen/scripts/xen_analysis/cppcheck_analysis.py
>> index e385e2c8f54a..ab52ce38d502 100644
>> --- a/xen/scripts/xen_analysis/cppcheck_analysis.py
>> +++ b/xen/scripts/xen_analysis/cppcheck_analysis.py
>> @@ -133,6 +133,8 @@ def generate_cppcheck_deps():
>> # - Explicitly suppress warnings on compiler-def.h because cppcheck
>> throws
>> # an unmatchedSuppression due to the rule we put in
>> suppression-list.txt
>> # to skip every finding in the file.
>> + # - Explicitly suppress findings for unusedStructMember that is not very
>> + # reliable and causes lots of false positives.
>> #
>> # Compiler defines are in compiler-def.h which is included in config.h
>> #
>> @@ -145,6 +147,7 @@ def generate_cppcheck_deps():
>> --inline-suppr
>> --suppressions-list={}/suppression-list.txt
>> --suppress='unmatchedSuppression:*'
>> + --suppress='unusedStructMember:*'
>> --include={}/include/xen/config.h
>> -DCPPCHECK
>> """.format(settings.outdir, CPPCHECK_BUILD_DIR, settings.xen_dir,
>> --
>> 2.34.1
>>
>
|