]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove __nonnull() attributes from x86 machine check architecture.
authorpfg <pfg@FreeBSD.org>
Fri, 13 Jan 2017 01:39:19 +0000 (01:39 +0000)
committerpfg <pfg@FreeBSD.org>
Fri, 13 Jan 2017 01:39:19 +0000 (01:39 +0000)
commit61832ea1a50212f30d059518c8fc4baa2c1aa66c
tree555f9169cd3a9579f26dc8f3be30b0c25d6028e4
parentbbdc02abf8a32c018d7b42a267847421cc85486a
Remove __nonnull() attributes from x86 machine check architecture.

These are of the few cases where we use the GCC non-null attributes in
non-header code. As part of a review [1] of our use of such attributes we
are replacing such uses of the overly aggressive GCC attribute with clang's
_Nonnull attribute.

In this case the attributes serve little purpose as they just don't
enforce run time checks, If anything the attributes would cause NULL pointer
checks to be ignored but there are no such checks so only effect is
cosmetic.

The references appear to be left over from code development and likely
already fulfilled their purpose.

Reference [1]:
https://reviews.freebsd.org/D9004

Reviewed by: jhb
MFC after: 3 weeks
sys/x86/x86/mca.c