Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/sys/cdefs.h,v rcsdiff: /ftp/cvs/cvsroot/src/sys/sys/cdefs.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.148 retrieving revision 1.149 diff -u -p -r1.148 -r1.149 --- src/sys/sys/cdefs.h 2019/11/05 20:19:18 1.148 +++ src/sys/sys/cdefs.h 2019/11/14 16:23:53 1.149 @@ -1,4 +1,4 @@ -/* $NetBSD: cdefs.h,v 1.148 2019/11/05 20:19:18 maxv Exp $ */ +/* $NetBSD: cdefs.h,v 1.149 2019/11/14 16:23:53 maxv Exp $ */ /* * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -348,6 +348,12 @@ #define __nocsan /* nothing */ #endif +#if defined(__clang__) && defined(KMSAN) +#define __nomsan __attribute__((no_sanitize("memory"))) +#else +#define __nomsan /* nothing */ +#endif + #if defined(__clang__) #define __noubsan __attribute__((no_sanitize("undefined"))) #elif __GNUC_PREREQ__(4, 9)