diff options
author | Eric Biggers <ebiggers@google.com> | 2020-05-12 16:32:48 -0700 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2020-05-15 13:51:28 -0700 |
commit | 8b85996095049a2216c0a6b582330ec75913243c (patch) | |
tree | 2934edfaabccf501bea47520f85a7bad09ff99ce /include/linux/parser.h | |
parent | 607009020a5e7fd9353fb2dd4cdcc73e26f3350f (diff) | |
download | linux-8b85996095049a2216c0a6b582330ec75913243c.tar.gz linux-8b85996095049a2216c0a6b582330ec75913243c.tar.bz2 linux-8b85996095049a2216c0a6b582330ec75913243c.zip |
linux/parser.h: add include guards
<linux/parser.h> is missing include guards. Add them.
This is needed to allow declaring a function in <linux/fscrypt.h> that
takes a substring_t parameter.
Link: https://lore.kernel.org/r/20200512233251.118314-2-ebiggers@kernel.org
Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'include/linux/parser.h')
-rw-r--r-- | include/linux/parser.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/parser.h b/include/linux/parser.h index 12fc3482f5fc..89e2b23fb888 100644 --- a/include/linux/parser.h +++ b/include/linux/parser.h @@ -7,7 +7,8 @@ * but could potentially be used anywhere else that simple option=arg * parsing is required. */ - +#ifndef _LINUX_PARSER_H +#define _LINUX_PARSER_H /* associates an integer enumerator with a pattern string. */ struct match_token { @@ -34,3 +35,5 @@ int match_hex(substring_t *, int *result); bool match_wildcard(const char *pattern, const char *str); size_t match_strlcpy(char *, const substring_t *, size_t); char *match_strdup(const substring_t *); + +#endif /* _LINUX_PARSER_H */ |