We always ignore the unused bits. So, it is not necessary to check
them.
#endif // 0
int namespace_flag_to_string_many(unsigned long flags, char **ret);
#endif // 0
int namespace_flag_to_string_many(unsigned long flags, char **ret);
-static inline int namespace_flag_to_string_many_with_check(unsigned long n, char **s) {
- if ((n & NAMESPACE_FLAGS_ALL) != n)
- return -EINVAL;
-
- return namespace_flag_to_string_many(n, s);
-}
-
struct namespace_flag_map {
unsigned long flag;
const char *name;
struct namespace_flag_map {
unsigned long flag;
const char *name;