diff --git a/study/kernel/07-sync/00-code/01-atomic/hello.c b/study/kernel/07-sync/00-code/01-atomic/hello.c index f2fb4f4..5a480b4 100644 --- a/study/kernel/07-sync/00-code/01-atomic/hello.c +++ b/study/kernel/07-sync/00-code/01-atomic/hello.c @@ -15,6 +15,7 @@ MODULE_DESCRIPTION("test atomic_t"); atomic_t count = ATOMIC_INIT(1); + static int hello_init(void) { printk("init : %d\n", atomic_read(count));