Message ID | 1514808421-21993-8-git-send-email-gilad@benyossef.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp7795659qgn; Mon, 1 Jan 2018 04:08:33 -0800 (PST) X-Google-Smtp-Source: ACJfBovZYR1AzY8jYxHItziZZofD47pwcejR7/NGW33rWwTZcN2ubEUai6c6LxlGK2fAxV3rU9nV X-Received: by 10.98.71.144 with SMTP id p16mr42195700pfi.15.1514808513045; Mon, 01 Jan 2018 04:08:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514808513; cv=none; d=google.com; s=arc-20160816; b=JzOHyc9bR5OEORCifzwwkolXsPwGyMfGgC7cEkYzog9h9CQkKGsFE/xfMyqZZFTZQE MFrkOCI+L9nVSO4IsI7YDp9DrSFVpZObgOPY5MJovEKo+LGuBzLLEbY0kgVK29CXU72B IdzzUDd+jU/vV8b7p7nFt+v3yc7HIxZD9KycKDQTsFdZgRxqZyNhb7p20mKt1WHsOcV4 iEOkq5YOIjeQnBqJoBSMwxCqmMVZRG4ciI0qWnswrnZOyHrMIEZ7o3l5AzkIfDkoSDfE 5e0f5sVtAqUhqCFzCD52w9U+EYK3LM53S5TgU4GmEUVNRyckg7Qqd1B+a2V380ULpAia MMmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=rxq1mMNKwsBuBZVlvokbJjQJv+3f7j5EitWJCCB5Dwo=; b=OXcdCmGknSuRlf+R2RoKDxqnBu4vRsNE22K9CkEMZYnBKKVxxFwEUB80R6ZKb0DHmf KJaB2Nb67ulYO3hlFutS3YYBcQ79Of/x2jVaeYfHiOGebFlXQF2tbXIBkusfQnMLSckF qm0MSWgmCFOA3nliBHRBhjJxtYOLpEGnIErmT0ZkprRt41kItk9NN7jX7iKPGEeqyz05 bAvxvGisgB9Q8b14lAeXNZQGBmoZfJAw8GkkRsOOWNlNWeZw9d2FwNN6gGDkY7cMd22n fqrLXCKJYMDbZRRlevUiTTCjM9MzrDC7r2rPFHJGAgThTgzMBIUs+W6IdsDav3bLRLhB KFJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si32097065plt.807.2018.01.01.04.08.32; Mon, 01 Jan 2018 04:08:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751447AbeAAMIa (ORCPT <rfc822; dan.rue@linaro.org> + 28 others); Mon, 1 Jan 2018 07:08:30 -0500 Received: from foss.arm.com ([217.140.101.70]:59094 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751088AbeAAMI3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 1 Jan 2018 07:08:29 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BBF4E80D; Mon, 1 Jan 2018 04:08:28 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.158]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8954B3F41F; Mon, 1 Jan 2018 04:08:26 -0800 (PST) From: Gilad Ben-Yossef <gilad@benyossef.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Ofir Drang <ofir.drang@arm.com>, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org Subject: [PATCH 07/26] staging: ccree: tag debugfs init/exit func properly Date: Mon, 1 Jan 2018 12:06:34 +0000 Message-Id: <1514808421-21993-8-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514808421-21993-1-git-send-email-gilad@benyossef.com> References: <1514808421-21993-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/staging/ccree/cc_debugfs.c b/drivers/staging/ccree/cc_debugfs.c index d56cf91..62bf011 100644 --- a/drivers/staging/ccree/cc_debugfs.c +++ b/drivers/staging/ccree/cc_debugfs.c @@ -38,14 +38,14 @@ struct debugfs_reg32 debug_regs[] = { CC_DEBUG_REG(AXIM_MON_COMP), }; -int cc_debugfs_global_init(void) +int __init cc_debugfs_global_init(void) { cc_debugfs_dir = debugfs_create_dir("ccree", NULL); return !cc_debugfs_dir; } -void cc_debugfs_global_fini(void) +void __exit cc_debugfs_global_fini(void) { debugfs_remove(cc_debugfs_dir); }
The debugfs global init and exit functions were missing __init and __exit tags, potentially wasting memory. Fix it by properly tagging them. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> --- drivers/staging/ccree/cc_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4