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>,
	Jan Beulich <jbeulich@suse.com>
Subject: [XEN PATCH 3/5] xen/acpi: Use NULL as a null pointer constant
Date: Thu, 14 Dec 2023 12:44:08 +0100	[thread overview]
Message-ID: <bb10a86a08eb36e9f9c6bda899cdc850afada403.1702553835.git.nicola.vetrini@bugseng.com> (raw)
In-Reply-To: <cover.1702553835.git.nicola.vetrini@bugseng.com>

Resolves a violation of MISRA C Rule 11.9.
No functional change.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
---
 xen/include/acpi/acmacros.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/include/acpi/acmacros.h b/xen/include/acpi/acmacros.h
index 86c503c20f3b..e7ca18e3dc66 100644
--- a/xen/include/acpi/acmacros.h
+++ b/xen/include/acpi/acmacros.h
@@ -111,7 +111,7 @@
 
 #define ACPI_TO_POINTER(i)              ACPI_ADD_PTR (void,(void *) NULL,(acpi_native_uint) i)
 #define ACPI_TO_INTEGER(p)              ACPI_PTR_DIFF (p,(void *) NULL)
-#define ACPI_OFFSET(d,f)                (acpi_size) ACPI_PTR_DIFF (&(((d *)0)->f),(void *) NULL)
+#define ACPI_OFFSET(d,f)                (acpi_size) ACPI_PTR_DIFF (&(((d *)NULL)->f),(void *) NULL)
 #define ACPI_PHYSADDR_TO_PTR(i)         ACPI_TO_POINTER(i)
 #define ACPI_PTR_TO_PHYSADDR(i)         ACPI_TO_INTEGER(i)
 
-- 
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 ` Nicola Vetrini [this message]
2023-12-14 21:31   ` [XEN PATCH 3/5] xen/acpi: Use " 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 ` [XEN PATCH 5/5] xen/wait: address violations of MISRA C Rule 11.9 Nicola Vetrini
2023-12-14 21:33   ` 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=bb10a86a08eb36e9f9c6bda899cdc850afada403.1702553835.git.nicola.vetrini@bugseng.com \
    --to=nicola.vetrini@bugseng.com \
    --cc=consulting@bugseng.com \
    --cc=jbeulich@suse.com \
    --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.