public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel•crashing.org>
To: Clement Courbet <courbet@google•com>
Cc: x86@kernel•org, Kees Cook <keescook@chromium•org>,
	Borislav Petkov <bp@alien8•de>,
	Greg Kroah-Hartman <gregkh@linuxfoundation•org>,
	"H. Peter Anvin" <hpa@zytor•com>,
	Nick Desaulniers <ndesaulniers@google•com>,
	linux-kernel@vger•kernel.org, clang-built-linux@googlegroups•com,
	Ingo Molnar <mingo@redhat•com>, Paul Mackerras <paulus@samba•org>,
	Joe Perches <joe@perches•com>,
	Bernd Petrovitsch <bernd@petrovitsch•priv.at>,
	Nathan Chancellor <natechancellor@gmail•com>,
	linuxppc-dev@lists•ozlabs.org,
	Thomas Gleixner <tglx@linutronix•de>,
	Allison Randal <allison@lohutok•net>
Subject: Re: [PATCH]     x86: Alias memset to __builtin_memset.
Date: Fri, 27 Mar 2020 12:12:35 -0500	[thread overview]
Message-ID: <20200327171235.GI22482@gate.crashing.org> (raw)
In-Reply-To: <20200326123841.134068-1-courbet@google.com>

Hi!

On Thu, Mar 26, 2020 at 01:38:39PM +0100, Clement Courbet wrote:
> --- a/arch/powerpc/include/asm/setjmp.h
> +++ b/arch/powerpc/include/asm/setjmp.h
> @@ -12,7 +12,9 @@
> 
>  #define JMP_BUF_LEN    23
> -extern long setjmp(long *);
> -extern void longjmp(long *, long);
> +typedef long * jmp_buf;
> +
> +extern int setjmp(jmp_buf);
> +extern void longjmp(jmp_buf, int);
> 
> I'm happy to send a patch for this, and get rid of more -ffreestanding.
> Opinions ?

Pedantically, jmp_buf should be an array type.  But, this will probably
work fine, and it certainly is better than what we had before.

You could do
  typedef long jmp_buf[JMP_BUF_LEN];
perhaps?

Thanks,


Segher

      parent reply	other threads:[~2020-03-27 17:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200323114207.222412-1-courbet@google.com>
2020-03-26 12:38 ` [PATCH] x86: Alias memset to __builtin_memset Clement Courbet
2020-03-26 17:18   ` Nick Desaulniers
2020-03-27  4:06   ` Michael Ellerman
2020-03-27 17:12   ` Segher Boessenkool [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=20200327171235.GI22482@gate.crashing.org \
    --to=segher@kernel$(echo .)crashing.org \
    --cc=allison@lohutok$(echo .)net \
    --cc=bernd@petrovitsch$(echo .)priv.at \
    --cc=bp@alien8$(echo .)de \
    --cc=clang-built-linux@googlegroups$(echo .)com \
    --cc=courbet@google$(echo .)com \
    --cc=gregkh@linuxfoundation$(echo .)org \
    --cc=hpa@zytor$(echo .)com \
    --cc=joe@perches$(echo .)com \
    --cc=keescook@chromium$(echo .)org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=mingo@redhat$(echo .)com \
    --cc=natechancellor@gmail$(echo .)com \
    --cc=ndesaulniers@google$(echo .)com \
    --cc=paulus@samba$(echo .)org \
    --cc=tglx@linutronix$(echo .)de \
    --cc=x86@kernel$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox