All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicola Vetrini <nicola.vetrini@bugseng.com>
To: xen-devel@lists.xenproject.org
Cc: consulting@bugseng.com,
	Nicola Vetrini <nicola.vetrini@bugseng.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	George Dunlap <george.dunlap@citrix.com>,
	Jan Beulich <jbeulich@suse.com>, Julien Grall <julien@xen.org>,
	Stefano Stabellini <sstabellini@kernel.org>, Wei Liu <wl@xen.org>
Subject: [XEN PATCH 5/5] xen/wait: address violations of MISRA C Rule 11.9
Date: Thu, 14 Dec 2023 12:44:10 +0100	[thread overview]
Message-ID: <a4e13ba24ab54895454d8df1c956865f7cf7f0b5.1702553835.git.nicola.vetrini@bugseng.com> (raw)
In-Reply-To: <cover.1702553835.git.nicola.vetrini@bugseng.com>

No functional change.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
---
 xen/common/wait.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xen/common/wait.c b/xen/common/wait.c
index 86d3b15419db..cb6f5ff3c20a 100644
--- a/xen/common/wait.c
+++ b/xen/common/wait.c
@@ -125,7 +125,7 @@ static void __prepare_to_wait(struct waitqueue_vcpu *wqv)
     struct vcpu *curr = current;
     unsigned long dummy;
 
-    ASSERT(wqv->esp == 0);
+    ASSERT(wqv->esp == NULL);
 
     /* Save current VCPU affinity; force wakeup on *this* CPU only. */
     if ( vcpu_temporary_affinity(curr, smp_processor_id(), VCPU_AFFINITY_WAIT) )
@@ -171,7 +171,7 @@ static void __prepare_to_wait(struct waitqueue_vcpu *wqv)
           [sz] "i" (PAGE_SIZE)
         : "memory", "rax", "rdx", "r8", "r9", "r10", "r11" );
 
-    if ( unlikely(wqv->esp == 0) )
+    if ( unlikely(wqv->esp == NULL) )
     {
         gdprintk(XENLOG_ERR, "Stack too large in %s\n", __func__);
         domain_crash(curr->domain);
-- 
2.34.1



  parent reply	other threads:[~2023-12-14 11:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-14 11:44 [XEN PATCH 0/5] address remaining violations of MISRA C:2012 Rule 11.9 Nicola Vetrini
2023-12-14 11:44 ` [XEN PATCH 1/5] xen/hvm: use NULL as a null pointer constant Nicola Vetrini
2023-12-14 21:29   ` Stefano Stabellini
2023-12-18 17:03     ` Jan Beulich
2023-12-14 11:44 ` [XEN PATCH 2/5] x86/ioapic: " Nicola Vetrini
2023-12-14 21:30   ` Stefano Stabellini
2023-12-18 17:04     ` Jan Beulich
2023-12-14 11:44 ` [XEN PATCH 3/5] xen/acpi: Use " Nicola Vetrini
2023-12-14 21:31   ` Stefano Stabellini
2023-12-18 17:05   ` Jan Beulich
2023-12-18 17:29     ` Nicola Vetrini
2023-12-14 11:44 ` [XEN PATCH 4/5] x86/hvm: dom0: use helper to get sizeof struct field Nicola Vetrini
2023-12-14 21:32   ` Stefano Stabellini
2023-12-19 10:44     ` Jan Beulich
2023-12-14 11:44 ` Nicola Vetrini [this message]
2023-12-14 21:33   ` [XEN PATCH 5/5] xen/wait: address violations of MISRA C Rule 11.9 Stefano Stabellini
2023-12-19 10:48   ` Jan Beulich

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=a4e13ba24ab54895454d8df1c956865f7cf7f0b5.1702553835.git.nicola.vetrini@bugseng.com \
    --to=nicola.vetrini@bugseng.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=consulting@bugseng.com \
    --cc=george.dunlap@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=sstabellini@kernel.org \
    --cc=wl@xen.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.