Message ID | 1515327285-8948-8-git-send-email-gilad@benyossef.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1547391qgn; Sun, 7 Jan 2018 04:16:51 -0800 (PST) X-Google-Smtp-Source: ACJfBosu9cjIKaJVStuBJZRiug5Dy6pH9UM4cIRMEfZ+vEahmitRuz813wBGHcb7vo8aMPNZqcwk X-Received: by 10.98.18.150 with SMTP id 22mr2875682pfs.180.1515327411048; Sun, 07 Jan 2018 04:16:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515327411; cv=none; d=google.com; s=arc-20160816; b=JqQ/FzYd3k4vG4o/5lo+yVsXHOynXfil48xu9N0eFhpKr7r2MZLMebBTroNafpd19j +RKNOoqNiGb4/ew/tYlOjzSFK0dEBsi8f8vMVzWs+g7eO2Iq2yk7McL1bPZdTK34fyFL aWDvXcaF536fiAtE+OhZ1msvI0H3f4MJxDQu+eiyNNjCu1gvqNbrUO1OezF+wFey+0H8 QFFHSNd7ntP4wlKBZrj8ZUIlpv1REWDZtiKXPdE3Diof/XLf+Tq1qzU04BhVsF96VSQH wXKh2RsBDhgqYw0cTx1AAIDS1kVDdjDUBoKvv4OyaCafuuSWPXPZgjmvPrW7wsFwFgwy y5jg== 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=q/lfB2mMhgKszafvN5WXxXTqMGiMQZIGLTFRSgRBU4Q=; b=UAEeyQ3CoEjqGErWeKvCYdrZEyxDY3GZ7uCzm/3wPKciNHssO7T56UlY///JVR8iMm P1Kq2PyfPcu00tqd38bFhAEVuHl3Y05xjck8ZGtHARMWET+DjcAvgThbkXDRgK26xTjX 8Gz48tRYzFnC7bVnHGZa5JIZu1b6lLJOZhVkPX99XizBGEkfgm41BABk5p1pvDJSmqBP /ZGHopd932SKE/MNGh4C8kM8KGZ9MMCTCr61QfkIhCfR6DfNbEYcI8RHbQ5CtaXO2Oo4 p1t8tYUEktHWvuRSLUBLuhTYadQLlvz0d8uuQ309tF7DG56VvBDjZ44n02TZXUg98yCN RvlQ== 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 a9si796760pgv.684.2018.01.07.04.16.50; Sun, 07 Jan 2018 04:16:51 -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 S1753950AbeAGMQt (ORCPT <rfc822; dan.rue@linaro.org> + 28 others); Sun, 7 Jan 2018 07:16:49 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:57452 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753836AbeAGMQr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 7 Jan 2018 07:16:47 -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 A6FE61435; Sun, 7 Jan 2018 04:16:47 -0800 (PST) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 108423F581; Sun, 7 Jan 2018 04:16:45 -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 v3 07/27] staging: ccree: tag debugfs init/exit func properly Date: Sun, 7 Jan 2018 12:14:18 +0000 Message-Id: <1515327285-8948-8-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515327285-8948-1-git-send-email-gilad@benyossef.com> References: <1515327285-8948-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 |
[v3,01/27] staging: ccree: SPDXify driver
|
expand
|
diff --git a/drivers/staging/ccree/cc_debugfs.c b/drivers/staging/ccree/cc_debugfs.c index ab2c986..72eb2b3 100644 --- a/drivers/staging/ccree/cc_debugfs.c +++ b/drivers/staging/ccree/cc_debugfs.c @@ -38,14 +38,14 @@ static 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