[PATCH v3] Fix x86-64/cet: Make CET feature check specific to Linux/x86

H.J. Lu hjl.tools@gmail.com
Tue Dec 17 12:40:38 GMT 2024


On Tue, Dec 17, 2024 at 8:31 PM Sam James <sam@gentoo.org> wrote:
>
> "H.J. Lu" <hjl.tools@gmail.com> writes:
>
> > Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
> > ---
> >  sysdeps/unix/sysv/linux/x86/bits/platform/features.h | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/sysdeps/unix/sysv/linux/x86/bits/platform/features.h b/sysdeps/unix/sysv/linux/x86/bits/platform/features.h
> > index 7704febe92..1e63743e3f 100644
> > --- a/sysdeps/unix/sysv/linux/x86/bits/platform/features.h
> > +++ b/sysdeps/unix/sysv/linux/x86/bits/platform/features.h
> > @@ -28,7 +28,7 @@ enum
> >    x86_feature_1_shstk                = 1U << 1
> >  };
> >
> > -static __inline__ _Bool
> > +static __inline__ bool
> >  x86_cpu_cet_active (unsigned int __index)
> >  {
> >  #ifdef __x86_64__
>
> I don't follow. The other definitions of x86_cpu_cet_active use _Bool
> still. Can you elaborate in the commit message? Thanks.

Wrong patch.

-- 
H.J.


More information about the Libc-alpha mailing list