diff options
| author | Peter Zijlstra <[email protected]> | 2016-11-14 16:12:23 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-01-14 10:37:18 +0000 |
| commit | 1e24edca0557dba6486d39d3c24c288475432bcf (patch) | |
| tree | 9ee0931fdfa80b2b2b809bd26ad2aced7c8bce33 /init/version.c | |
| parent | locking/ww_mutex: Add ww_mutex to tools/testing/selftests (diff) | |
| download | kernel-1e24edca0557dba6486d39d3c24c288475432bcf.tar.gz kernel-1e24edca0557dba6486d39d3c24c288475432bcf.zip | |
locking/atomic, kref: Add KREF_INIT()
Since we need to change the implementation, stop exposing internals.
Provide KREF_INIT() to allow static initialization of struct kref.
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'init/version.c')
| -rw-r--r-- | init/version.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/init/version.c b/init/version.c index fe41a63efed6..5606341e9efd 100644 --- a/init/version.c +++ b/init/version.c @@ -23,9 +23,7 @@ int version_string(LINUX_VERSION_CODE); #endif struct uts_namespace init_uts_ns = { - .kref = { - .refcount = ATOMIC_INIT(2), - }, + .kref = KREF_INIT(2), .name = { .sysname = UTS_SYSNAME, .nodename = UTS_NODENAME, |
