Message ID | 7f0d3f4330a262ec17029b3d82a7a89409215fbf.1691655814.git.nicola.vetrini@bugseng.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | fix missing headers and static storage duration | expand |
On 10.08.2023 10:39, Nicola Vetrini wrote: > The function 'ioreq_server_max_frames' can be defined static, > as its only uses are within the same file. This in turn avoids > violating Rule 8.4 because no declaration is present. Here and presumably in subsequent patches (I only looked at patch 2 for now) you're now missing the word Misra (ahead of Rule). I'm happy for that to be added while committing. Jan
diff --git a/xen/common/memory.c b/xen/common/memory.c index c206fa48087d..b1dcbaf551e6 100644 --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -1120,7 +1120,7 @@ static long xatp_permission_check(struct domain *d, unsigned int space) return xsm_add_to_physmap(XSM_TARGET, current->domain, d); } -unsigned int ioreq_server_max_frames(const struct domain *d) +static unsigned int ioreq_server_max_frames(const struct domain *d) { unsigned int nr = 0;