From 8c9b8ec2e21e10be73dcbfa8288a124a5f7b133d Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Tue, 25 Aug 2020 15:46:44 -0700 Subject: [PATCH] srcfile: add src_nowhere() Add src_nowhere() returning (null:0). Signed-off-by: H. Peter Anvin (Intel) --- asm/srcfile.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/asm/srcfile.h b/asm/srcfile.h index ec9965d3c..a18535481 100644 --- a/asm/srcfile.h +++ b/asm/srcfile.h @@ -44,6 +44,12 @@ struct src_location { int32_t lineno; }; +static inline const_func struct src_location src_nowhere(void) +{ + struct src_location no_where = { NULL, 0 }; + return no_where; +} + /* * Comparing the *pointer value* of filenames is valid, because the * filename hash system guarantees that each unique filename string is