All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleksandr Andrushchenko <andr2000@gmail.com>
To: xen-devel@lists.xenproject.org
Cc: Artem_Mygaiev@epam.com, sstabellini@kernel.org,
	Andrii_Anisov@epam.com,
	Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>,
	andr2000@gmail.com, julien.grall@arm.com
Subject: [RFC PATCH 0/4] Add missing default labels to switch statements
Date: Fri, 22 Feb 2019 11:57:17 +0200	[thread overview]
Message-ID: <20190222095721.24764-1-andr2000@gmail.com> (raw)

From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>

Hello, everybody!

We at EPAM Systems would like to present first series of patches targeting Xen
on ARM Functional Safety certification (ISO61508 based): implementation of
MISRA [1] C:2012 Rule 16.4 which requires that every switch statement has a
default label as a measure of defensive programming technique.

Current patch series is against the source code used by Xen hypervisor on ARM
only and does not include Xen tools and x86 implementation. Although the target
is limited to ARM it does touch the code common to other architectures as well.

[1] https://www.misra.org.uk/

Oleksandr Andrushchenko (4):
  cert:arch/arm: Add missing default labels to switch statements
  cert:xen/common: Add missing default labels to switch statements
  cert:xen/drivers: Add missing default labels to switch statements
  cert:xen/xsm/flask: Add missing default labels to switch statements

 xen/arch/arm/decode.c              |  3 +++
 xen/arch/arm/domain.c              | 10 ++++++++++
 xen/arch/arm/guest_walk.c          |  2 ++
 xen/arch/arm/mm.c                  |  3 +++
 xen/arch/arm/p2m.c                 |  7 +++++++
 xen/arch/arm/traps.c               |  6 ++++++
 xen/arch/arm/vsmc.c                |  9 +++++++++
 xen/common/device_tree.c           |  2 ++
 xen/common/domain.c                |  4 ++++
 xen/common/efi/boot.c              |  2 ++
 xen/common/event_channel.c         |  5 +++++
 xen/common/grant_table.c           | 18 +++++++++++++++++-
 xen/common/kernel.c                |  6 ++++++
 xen/common/libelf/libelf-dominfo.c |  3 +++
 xen/common/libfdt/fdt.c            |  2 ++
 xen/common/libfdt/fdt_ro.c         |  3 +++
 xen/common/sched_arinc653.c        |  3 +++
 xen/common/sched_credit.c          |  3 +++
 xen/common/sched_credit2.c         |  3 +++
 xen/common/sched_rt.c              |  3 +++
 xen/common/trace.c                 |  2 ++
 xen/common/vsprintf.c              |  8 ++++++++
 xen/drivers/char/console.c         |  5 +++++
 xen/drivers/char/ns16550.c         |  2 ++
 xen/drivers/passthrough/arm/smmu.c |  9 +++++++++
 xen/xsm/flask/avc.c                |  2 ++
 xen/xsm/flask/hooks.c              |  4 ++++
 xen/xsm/flask/ss/services.c        |  5 +++++
 28 files changed, 133 insertions(+), 1 deletion(-)

-- 
2.20.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

             reply	other threads:[~2019-02-22  9:57 UTC|newest]

Thread overview: 81+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-22  9:57 Oleksandr Andrushchenko [this message]
2019-02-22  9:57 ` [RFC PATCH 1/4] cert:arch/arm: Add missing default labels to switch statements Oleksandr Andrushchenko
2019-02-22 18:24   ` Julien Grall
2019-02-22  9:57 ` [RFC PATCH 2/4] cert:xen/common: " Oleksandr Andrushchenko
2019-02-22  9:57 ` [RFC PATCH 3/4] cert:xen/drivers: " Oleksandr Andrushchenko
2019-02-22  9:57 ` [RFC PATCH 4/4] cert:xen/xsm/flask: " Oleksandr Andrushchenko
2019-02-22 10:27 ` [RFC PATCH 0/4] " Andrew Cooper
2019-02-22 11:05   ` Julien Grall
2019-02-22 11:13     ` Oleksandr Andrushchenko
2019-02-22 11:27       ` Julien Grall
2019-02-22 12:01         ` Oleksandr Andrushchenko
2019-02-22 13:27           ` Julien Grall
2019-02-22 21:00             ` Stefano Stabellini
2019-02-22 21:33               ` Andrew Cooper
2019-02-22 21:58                 ` Stefano Stabellini
2019-02-22 22:11                   ` Julien Grall
2019-02-22 22:34                     ` Stefano Stabellini
2019-02-22 23:11                       ` Julien Grall
2019-02-25 17:38                         ` Stefano Stabellini
2019-02-22 23:13                       ` Julien Grall
2019-02-25 10:27                         ` Oleksandr Andrushchenko
2019-02-25 10:57                           ` Julien Grall
2019-02-22 22:34                     ` Andrew Cooper
2019-02-22 22:38                       ` Stefano Stabellini
2019-02-22 23:34                         ` Julien Grall
2019-02-25 10:00                           ` Oleksandr Andrushchenko
2019-02-25 11:08                             ` Julien Grall
2019-02-25 11:37                               ` Oleksandr Andrushchenko
2019-02-22 23:22                       ` Julien Grall
2019-02-22 23:41                         ` Andrew Cooper
2019-02-25 10:06                           ` Oleksandr Andrushchenko
2019-02-25 11:10                             ` Julien Grall
2019-02-25 11:43                               ` Oleksandr Andrushchenko
2019-02-25  9:50                 ` Oleksandr Andrushchenko
2019-02-25 11:23                   ` Julien Grall
2019-02-25 11:49                     ` Oleksandr Andrushchenko
2019-02-25 12:11                       ` Jan Beulich
2019-02-25 12:32                         ` Oleksandr Andrushchenko
2019-02-25 12:15                       ` Julien Grall
2019-02-25 12:38                         ` Oleksandr Andrushchenko
2019-02-25 12:50                           ` Julien Grall
2019-02-25 13:06                             ` Oleksandr Andrushchenko
2019-02-25 13:22                               ` Julien Grall
2019-02-25 13:32                                 ` Oleksandr Andrushchenko
2019-02-25 13:40                                   ` Julien Grall
2019-02-25 13:47                                     ` Oleksandr Andrushchenko
2019-02-25 15:54                                       ` Lars Kurth
2019-02-25 17:42                                         ` Stefano Stabellini
2019-02-25 11:40                 ` Jan Beulich
2019-02-25 16:58                   ` George Dunlap
2019-02-25 17:47                     ` Stefano Stabellini
2019-02-25 18:20                       ` Julien Grall
2019-02-25 21:13                         ` Stefano Stabellini
2019-02-25 21:34                           ` Julien Grall
2019-02-26  7:43                             ` Oleksandr Andrushchenko
2019-02-26 11:20                             ` Jan Beulich
2019-02-26 11:33                               ` Oleksandr Andrushchenko
2019-02-26 11:47                                 ` Jan Beulich
2019-02-26 12:20                                   ` Oleksandr Andrushchenko
2019-02-26 18:27                                   ` Stefano Stabellini
2019-02-27  9:23                                     ` Lars Kurth
2019-02-27 10:16                                       ` Jan Beulich
2019-02-27 17:34                                         ` Lars Kurth
2019-02-27 23:45                                           ` Stefano Stabellini
2019-02-28 10:30                                           ` Jan Beulich
2019-02-26 21:10                             ` Stefano Stabellini
2019-02-26 21:31                               ` Julien Grall
2019-02-26 11:14                       ` Jan Beulich
2019-02-22 22:08               ` Julien Grall
2019-02-25 10:11                 ` Oleksandr Andrushchenko
2019-02-25 11:47                   ` Julien Grall
2019-02-25 11:59                     ` Oleksandr Andrushchenko
2019-02-25 12:10                     ` Jan Beulich
2019-02-22 11:20   ` Andrii Anisov
2019-02-22 11:21   ` Andrii Anisov
2019-02-22 11:30     ` Julien Grall
2019-02-22 11:32       ` Julien Grall
2019-02-22 11:53       ` Andrii Anisov
2019-02-22 13:30         ` Julien Grall
2019-02-25 11:43   ` Julien Grall
2019-02-25 12:00     ` Oleksandr Andrushchenko

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=20190222095721.24764-1-andr2000@gmail.com \
    --to=andr2000@gmail.com \
    --cc=Andrii_Anisov@epam.com \
    --cc=Artem_Mygaiev@epam.com \
    --cc=julien.grall@arm.com \
    --cc=oleksandr_andrushchenko@epam.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.