All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Julien Grall" <julien@xen.org>,
	"Stefano Stabellini" <sstabellini@kernel.org>,
	"Anthony PERARD" <anthony.perard@vates.tech>,
	"Michal Orzel" <michal.orzel@amd.com>,
	"Roger Pau Monné" <roger@xenproject.org>
Subject: Re: [PATCH] xmalloc: correct _xrealloc() for large or changing alignment
Date: Tue, 1 Dec 2026 10:08:30 +0100	[thread overview]
Message-ID: <1d20644d-c898-418d-a72c-e983dcde5d31@suse.com> (raw)
In-Reply-To: <98b59682-fb65-4403-9f67-45404d898550@suse.com>

On 25.11.2026 09:35, Jan Beulich wrote:
> @@ -730,3 +737,73 @@ void xfree(void *p)
>  
>      xmem_pool_free(p, xenpool);
>  }
> +
> +#ifdef CONFIG_SELF_TESTS
> +
> +#include <xen/init.h>

PPC also needs xen/errno.h here, to allow ...

> +static int cf_check __init selftest(void)
> +{
> +    unsigned char *ptr = _xmalloc(1, 1), *new;
> +    unsigned long align;
> +
> +    if ( !ptr )
> +        return -ENOMEM;

... this to compile. Fixed locally.

Jan


      reply	other threads:[~2026-12-01  9:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  8:35 [PATCH] xmalloc: correct _xrealloc() for large or changing alignment Jan Beulich
2026-12-01  9:08 ` Jan Beulich [this message]

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=1d20644d-c898-418d-a72c-e983dcde5d31@suse.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@vates.tech \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=roger@xenproject.org \
    --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.