Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-15420 build: fixes to support building on Ubuntu 22.04 LTS
[fs/lustre-release.git]
/
libcfs
/
include
/
libcfs
/
linux
/
linux-misc.h
diff --git
a/libcfs/include/libcfs/linux/linux-misc.h
b/libcfs/include/libcfs/linux/linux-misc.h
index
b9963e4
..
faec22b
100644
(file)
--- a/
libcfs/include/libcfs/linux/linux-misc.h
+++ b/
libcfs/include/libcfs/linux/linux-misc.h
@@
-150,6
+150,10
@@
void cfs_arch_init(void);
#define sizeof_field(type, member) FIELD_SIZEOF(type, member)
#endif
#define sizeof_field(type, member) FIELD_SIZEOF(type, member)
#endif
+#ifndef HAVE_TASK_IS_RUNNING
+#define task_is_running(task) (task->state == TASK_RUNNING)
+#endif
+
#ifdef HAVE_KALLSYMS_LOOKUP_NAME
static inline void *cfs_kallsyms_lookup_name(const char *name)
{
#ifdef HAVE_KALLSYMS_LOOKUP_NAME
static inline void *cfs_kallsyms_lookup_name(const char *name)
{