Commit 8b859960 authored by Eric Biggers's avatar Eric Biggers

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.orgReviewed-by: default avatarTheodore Ts'o <tytso@mit.edu>
Reviewed-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 60700902
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
* but could potentially be used anywhere else that simple option=arg * but could potentially be used anywhere else that simple option=arg
* parsing is required. * parsing is required.
*/ */
#ifndef _LINUX_PARSER_H
#define _LINUX_PARSER_H
/* associates an integer enumerator with a pattern string. */ /* associates an integer enumerator with a pattern string. */
struct match_token { struct match_token {
...@@ -34,3 +35,5 @@ int match_hex(substring_t *, int *result); ...@@ -34,3 +35,5 @@ int match_hex(substring_t *, int *result);
bool match_wildcard(const char *pattern, const char *str); bool match_wildcard(const char *pattern, const char *str);
size_t match_strlcpy(char *, const substring_t *, size_t); size_t match_strlcpy(char *, const substring_t *, size_t);
char *match_strdup(const substring_t *); char *match_strdup(const substring_t *);
#endif /* _LINUX_PARSER_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment