From patchwork Wed Jan 3 13:35:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 123305 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp10181104qgn; Wed, 3 Jan 2018 05:37:22 -0800 (PST) X-Google-Smtp-Source: ACJfBoviNY65nFzWWuRMF+9TRb7awurw1jYKXsB8xbPKcW8cThJ+BI6EpaqACZevlos9A27TpGJx X-Received: by 10.101.88.8 with SMTP id g8mr1239866pgr.418.1514986641953; Wed, 03 Jan 2018 05:37:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514986641; cv=none; d=google.com; s=arc-20160816; b=z3VU/XPyo/t2U2SIAczCWmE3EfwVtt1wmpBjSOGWEpHMM+XMfhZyyB25qGk9+h19W0 CjXWzT76wi0eAeiL+NmSrgj279Qf/1qDtdPOR8XzYQJMeyb/IMuNy2dwx7v3iWW2aCAI LYG+KNJsQTZTd/vPQSiyCeqWZTfVSi/ypiBvcx1CSUtwAjOKH3UZ99HY57WSuPlONhqM FMRHRAGap/6QRB2zGyh1DpacE012rNDiNIcyNPlvvvLXDgRo15DXA/fxge68xqsksg7u vZRRn4opZQFnEEEwTEjeIAbkI5SCu4xxzuSvK9/JuFTWcajC2b1vzCi8dUum7AuLTEMF SFQQ== 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=u0z2i43TeRJM1oGZKRNnESo04amz9DykGDI2BKuHQVw=; b=JCNdTIY7SAgUDUnAazjaCwsqB8L2ADnhqFd1KRoff9kgzDdPEdUy2F0Pf05msadocu D1D2lj+jynLoJyMdvKdSlWzlbHyC+ofuxrcBUJEGxjoizki4IiH2L5cst14IMCJxy3Gc 0lyS/ykcx4xaLfmv0KxNt8c4HkJb7+dBv6tWHefiFYDUoiAR+IEn3Ufe9BOBXV318im2 1EpTOCuPtK0RZUph0VrJTWwfkrCekPctmZ4PvSaxT2SW6VBMoLlp9n95u63DS/+DUAyG /68o4k/9eY/cOZlZ0RhffuSMRqYn4wXzIUvHBeDQYajlCooTt0OsjDaw98Y2FOjDkfGc hpIw== 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n188si648105pgn.289.2018.01.03.05.37.21; Wed, 03 Jan 2018 05:37:21 -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 S1752981AbeACNhS (ORCPT + 28 others); Wed, 3 Jan 2018 08:37:18 -0500 Received: from foss.arm.com ([217.140.101.70]:50046 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752963AbeACNhP (ORCPT ); Wed, 3 Jan 2018 08:37:15 -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 B24611529; Wed, 3 Jan 2018 05:37:15 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.137]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3227F3F24A; Wed, 3 Jan 2018 05:37:13 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org Subject: [PATCH v2 07/27] staging: ccree: tag debugfs init/exit func properly Date: Wed, 3 Jan 2018 13:35:14 +0000 Message-Id: <1514986544-5888-8-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514986544-5888-1-git-send-email-gilad@benyossef.com> References: <1514986544-5888-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/staging/ccree/cc_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ccree/cc_debugfs.c b/drivers/staging/ccree/cc_debugfs.c index 518cefd..128c994 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); }