All of lore.kernel.org
 help / color / mirror / Atom feed
* [XEN PATCH 0/6] xen: fix missing headers and static storage duration
@ 2023-08-11  7:19 Nicola Vetrini
  2023-08-11  7:19 ` [XEN PATCH 1/6] x86/hpet: make variable 'per_cpu__cpu_bc_channel' static Nicola Vetrini
                   ` (5 more replies)
  0 siblings, 6 replies; 35+ messages in thread
From: Nicola Vetrini @ 2023-08-11  7:19 UTC (permalink / raw)
  To: xen-devel
  Cc: sstabellini, michal.orzel, xenia.ragiadakou, ayan.kumar.halder,
	consulting, Nicola Vetrini

The files touched by this series contain function or variable definitions with
no prior declaration visible, because it's inside an header that is not included
or it's not present anywhere. This is a risk in itself, but also violates
MISRA C:2012 Rule 8.4, which states the following:
"A compatible declaration shall be visible when an object or function with
external linkage is defined".

The resolution strategies are as follows:

1. make the functions/variables static
2. include the header that contains the compatible declaration, or add one in
   the header if that's not the case.

No functional change.

Additional notes:
- This series is a continuation of the work done here [1], so the same additional
  notes apply.

[1] https://lore.kernel.org/xen-devel/cover.1691655814.git.nicola.vetrini@bugseng.com/T/#m28da1b5ef8d9a7683937bfc345765e3438b89977

Nicola Vetrini (6):
  x86/hpet: make variable 'per_cpu__cpu_bc_channel' static
  x86/setup: add missing headers
  x86/vm_event: add missing include
  cpufreq: add missing include of header 'pmstat.h'
  vpic/msix: make 'get_slot' static
  drivers/video: make declarations of defined functions available

 xen/arch/x86/hpet.c              |  2 +-
 xen/arch/x86/include/asm/setup.h |  6 ------
 xen/arch/x86/setup.c             |  4 +++-
 xen/arch/x86/vm_event.c          |  1 +
 xen/drivers/cpufreq/cpufreq.c    |  1 +
 xen/drivers/video/vga.c          |  9 +--------
 xen/drivers/vpci/msix.c          |  2 +-
 xen/include/xen/cpuidle.h        |  2 +-
 xen/include/xen/vga.h            | 14 ++++++++++++++
 9 files changed, 23 insertions(+), 18 deletions(-)

--
2.34.1


^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2023-08-14 13:47 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-11  7:19 [XEN PATCH 0/6] xen: fix missing headers and static storage duration Nicola Vetrini
2023-08-11  7:19 ` [XEN PATCH 1/6] x86/hpet: make variable 'per_cpu__cpu_bc_channel' static Nicola Vetrini
2023-08-11 22:54   ` Stefano Stabellini
2023-08-11 22:55     ` Stefano Stabellini
2023-08-14  7:34     ` Jan Beulich
2023-08-11  7:19 ` [XEN PATCH 2/6] x86/setup: add missing headers Nicola Vetrini
2023-08-11 22:58   ` Stefano Stabellini
2023-08-14  7:38     ` Jan Beulich
2023-08-14  7:43       ` Nicola Vetrini
2023-08-11  7:19 ` [XEN PATCH 3/6] x86/vm_event: add missing include Nicola Vetrini
2023-08-11 23:01   ` Stefano Stabellini
2023-08-12  9:53     ` Nicola Vetrini
2023-08-12 11:37       ` Julien Grall
2023-08-14  7:16         ` Jan Beulich
2023-08-14  7:39   ` Jan Beulich
2023-08-14 10:33     ` Nicola Vetrini
2023-08-14 11:01       ` Julien Grall
2023-08-14 12:53         ` Nicola Vetrini
2023-08-14 13:06           ` Julien Grall
2023-08-14 13:31             ` Jan Beulich
2023-08-14 13:47               ` Julien Grall
2023-08-14 12:57   ` Nicola Vetrini
2023-08-11  7:19 ` [XEN PATCH 4/6] cpufreq: add missing include of header 'pmstat.h' Nicola Vetrini
2023-08-11 23:03   ` Stefano Stabellini
2023-08-14  7:41     ` Jan Beulich
2023-08-11  7:19 ` [XEN PATCH 5/6] vpic/msix: make 'get_slot' static Nicola Vetrini
2023-08-11 23:03   ` Stefano Stabellini
2023-08-14  7:44   ` Jan Beulich
2023-08-14  7:54     ` Nicola Vetrini
2023-08-11  7:19 ` [XEN PATCH 6/6] drivers/video: make declarations of defined functions available Nicola Vetrini
2023-08-11 23:09   ` Stefano Stabellini
2023-08-14  7:47   ` Jan Beulich
2023-08-14  7:56     ` Nicola Vetrini
2023-08-14  8:12       ` Jan Beulich
2023-08-14  9:28         ` Nicola Vetrini

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.