Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755499AbcC2APw (ORCPT ); Mon, 28 Mar 2016 20:15:52 -0400 Received: from ozlabs.org ([103.22.144.67]:50131 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751585AbcC2APv (ORCPT ); Mon, 28 Mar 2016 20:15:51 -0400 From: Rusty Russell To: "zhaogongyi.jxjian" , linux-kernel@vger.kernel.org Subject: Re: A problem about loading module In-Reply-To: <3985592d.1589f.153a94428e7.Coremail.zhaogongyi.jxjian@163.com> References: <3985592d.1589f.153a94428e7.Coremail.zhaogongyi.jxjian@163.com> User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Tue, 29 Mar 2016 09:32:36 +1030 Message-ID: <87d1qecik3.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 358 Lines: 13 "zhaogongyi.jxjian" writes: > My question is when my module_init defined as: > void __init__ func_init(*) > then the ret will be alterable,it depends on specifically running env,that's what we want? Hi, This will not work reliably. You must define your init as int __init__ func_init(void) Cheers, Rusty.