From 2daf9de82c0f4138b64bcba43d18e66736e855ba Mon Sep 17 00:00:00 2001 From: gatieme Date: Tue, 9 May 2017 23:50:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E6=A0=B8=E5=90=8C=E6=AD=A5=E6=9C=BA?= =?UTF-8?q?=E5=88=B6...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- study/kernel/07-sync/00-code/01-atomic/hello.c | 1 + 1 file changed, 1 insertion(+) 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));