Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756058AbaJYBD0 (ORCPT ); Fri, 24 Oct 2014 21:03:26 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:45575 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754943AbaJYBDO (ORCPT ); Fri, 24 Oct 2014 21:03:14 -0400 From: Mariusz Gorski To: Oleg Drokin , Andreas Dilger , Greg Kroah-Hartman , Peng Tao , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] staging: lustre: Use __init and __exit markers for lifecycle functions Date: Sat, 25 Oct 2014 03:00:34 +0200 Message-Id: <1414198834-19470-3-git-send-email-marius.gorski@gmail.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1414198834-19470-1-git-send-email-marius.gorski@gmail.com> References: <1414198834-19470-1-git-send-email-marius.gorski@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Apply __init marker to module's init function and __exit to module's exit function as they both have no other usage. --- drivers/staging/lustre/lnet/lnet/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/module.c b/drivers/staging/lustre/lnet/lnet/module.c index dc09b43..3c23677 100644 --- a/drivers/staging/lustre/lnet/lnet/module.c +++ b/drivers/staging/lustre/lnet/lnet/module.c @@ -110,7 +110,7 @@ lnet_ioctl(unsigned int cmd, struct libcfs_ioctl_data *data) DECLARE_IOCTL_HANDLER(lnet_ioctl_handler, lnet_ioctl); -static int +static int __init init_lnet(void) { int rc; @@ -135,7 +135,7 @@ init_lnet(void) return 0; } -static void +static void __exit fini_lnet(void) { int rc; -- 2.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/