Skip to content

Commit

Permalink
linux/parser.h: add include guards
Browse files Browse the repository at this point in the history
<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>
  • Loading branch information
Eric Biggers committed May 15, 2020
1 parent 6070090 commit 8b85996
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/linux/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 */

0 comments on commit 8b85996

Please sign in to comment.