svn commit: r313165 - stable/10/sys/x86/x86
Pedro F. Giffuni
pfg at FreeBSD.org
Fri Feb 3 16:36:15 UTC 2017
Author: pfg
Date: Fri Feb 3 16:36:14 2017
New Revision: 313165
URL: https://svnweb.freebsd.org/changeset/base/313165
Log:
MFC r312001:
Remove __nonnull() attributes from x86 machine check architecture.
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 the only effect is
cosmetic.
Reviewed by: jhb, avg
Modified:
stable/10/sys/x86/x86/mca.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/x86/x86/mca.c
==============================================================================
--- stable/10/sys/x86/x86/mca.c Fri Feb 3 16:35:10 2017 (r313164)
+++ stable/10/sys/x86/x86/mca.c Fri Feb 3 16:36:14 2017 (r313165)
@@ -249,7 +249,7 @@ mca_error_mmtype(uint16_t mca_error)
return ("???");
}
-static int __nonnull(1)
+static int
mca_mute(const struct mca_record *rec)
{
@@ -278,7 +278,7 @@ mca_mute(const struct mca_record *rec)
}
/* Dump details about a single machine check. */
-static void __nonnull(1)
+static void
mca_log(const struct mca_record *rec)
{
uint16_t mca_error;
@@ -417,7 +417,7 @@ mca_log(const struct mca_record *rec)
printf("MCA: Misc 0x%llx\n", (long long)rec->mr_misc);
}
-static int __nonnull(2)
+static int
mca_check_status(int bank, struct mca_record *rec)
{
uint64_t status;
@@ -484,7 +484,7 @@ mca_refill(void *context, int pending)
mca_fill_freelist();
}
-static void __nonnull(2)
+static void
mca_record_entry(enum scan_mode mode, const struct mca_record *record)
{
struct mca_internal *rec;
More information about the svn-src-stable
mailing list