Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753876AbcL3L1F (ORCPT ); Fri, 30 Dec 2016 06:27:05 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36185 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753774AbcL3L1E (ORCPT ); Fri, 30 Dec 2016 06:27:04 -0500 From: Cheah Kok Cheong To: abbotti@mev.co.uk, hsweeten@visionengravers.com, gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Cheah Kok Cheong Subject: [PATCH 3/5] Staging: comedi: proc: Add __init prefix Date: Fri, 30 Dec 2016 19:26:50 +0800 Message-Id: <030afa06482112b9d81092e83e07669af2b84723.1483094820.git.thrust73@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 641 Lines: 23 Add __init prefix so that symbol will be discarded after module loading. Signed-off-by: Cheah Kok Cheong --- drivers/staging/comedi/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/proc.c b/drivers/staging/comedi/proc.c index 3513f4c..6d13b51 100644 --- a/drivers/staging/comedi/proc.c +++ b/drivers/staging/comedi/proc.c @@ -86,7 +86,7 @@ static const struct file_operations comedi_proc_fops = { .release = single_release, }; -void comedi_proc_init(void) +void __init comedi_proc_init(void) { proc_create("comedi", 0444, NULL, &comedi_proc_fops); } -- 2.7.4