diff options
author | Marc Zyngier <maz@kernel.org> | 2021-04-14 17:41:14 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-04-15 17:04:24 +0100 |
commit | d3debfcc4e3f65f1370ad4ca2ab61e7f0ff683cd (patch) | |
tree | 2bcaf22527583ae2de60a5b713934b33e1d9573b /include/linux/bug.h | |
parent | aec0fae62e47050019474936248a311a0ab08705 (diff) | |
download | linux-next-d3debfcc4e3f65f1370ad4ca2ab61e7f0ff683cd.tar.gz |
bug: Provide dummy version of bug_get_file_line() when !GENERIC_BUG
Provide the missing dummy bug_get_file_line() implementation when
GENENERIC_BUG isn't selected.
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 26dbc7e299c7 ("bug: Factor out a getter for a bug's file line")
Cc: Andrew Scull <ascull@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'include/linux/bug.h')
-rw-r--r-- | include/linux/bug.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/bug.h b/include/linux/bug.h index e3841bee4c8d..348acf2558f3 100644 --- a/include/linux/bug.h +++ b/include/linux/bug.h @@ -61,6 +61,13 @@ static inline enum bug_trap_type report_bug(unsigned long bug_addr, return BUG_TRAP_TYPE_BUG; } +struct bug_entry; +static inline void bug_get_file_line(struct bug_entry *bug, const char **file, + unsigned int *line) +{ + *file = NULL; + *line = 0; +} static inline void generic_bug_clear_once(void) {} |