Skip to content

Commit 8b85996

Browse files
committed
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/[email protected] Reviewed-by: Theodore Ts'o <[email protected]> Reviewed-by: Jaegeuk Kim <[email protected]> Signed-off-by: Eric Biggers <[email protected]>
1 parent 6070090 commit 8b85996

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/linux/parser.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
* but could potentially be used anywhere else that simple option=arg
88
* parsing is required.
99
*/
10-
10+
#ifndef _LINUX_PARSER_H
11+
#define _LINUX_PARSER_H
1112

1213
/* associates an integer enumerator with a pattern string. */
1314
struct match_token {
@@ -34,3 +35,5 @@ int match_hex(substring_t *, int *result);
3435
bool match_wildcard(const char *pattern, const char *str);
3536
size_t match_strlcpy(char *, const substring_t *, size_t);
3637
char *match_strdup(const substring_t *);
38+
39+
#endif /* _LINUX_PARSER_H */

0 commit comments

Comments
 (0)