• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright 2018 Google LLC
4  */
5 #ifndef _INCFS_INTERNAL_H
6 #define _INCFS_INTERNAL_H
7 #include <linux/types.h>
8 
9 struct mem_range {
10 	u8 *data;
11 	size_t len;
12 };
13 
range(u8 * data,size_t len)14 static inline struct mem_range range(u8 *data, size_t len)
15 {
16 	return (struct mem_range){ .data = data, .len = len };
17 }
18 
19 #define LOCK_REQUIRED(lock)  WARN_ON_ONCE(!mutex_is_locked(&lock))
20 
21 #define EFSCORRUPTED EUCLEAN
22 
23 #endif /* _INCFS_INTERNAL_H */
24