From patchwork Tue Jan 9 10:24:32 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: 123865 Delivered-To: patch@linaro.org Received: by 10.80.140.226 with SMTP id r31csp280316edr; Tue, 9 Jan 2018 02:26:21 -0800 (PST) X-Google-Smtp-Source: ACJfBotXoleDpmoGxVy4MT3teGVLbeI2HkLSDkQ0+4rhLnnZFMCR5qUDM3rfm7yUYbFMmmuKd6Hg X-Received: by 10.101.64.129 with SMTP id t1mr11803396pgp.287.1515493581566; Tue, 09 Jan 2018 02:26:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515493581; cv=none; d=google.com; s=arc-20160816; b=KAhKoSTSciv5huWOa8ljQjd3i8KiK2cTxi/vuWLaB+2+IpdBixecVzUsvHjhtNasY9 XZilm82LWNHHt/9to2KpbsMguN3cwYNAcakAQLdBxEEuhWR6Dxj3QG/3Bv3XRCUaJS9I QeZBm4MfR6N6gJ9Da+H4kHM2L/keIR5yB0xR473mXGuN2cLoySNfZH8KGfwZ2W64HVsR UNIlBngfFtUeDVC7GhvYvwl5oVehqHZgieo53ejjKy2N1VnyzL8AwXOqVTpeQisx8zvI VmP+gr91FdafwArtdAmrvQ6YgHLomwu3Ig4NVdjwD+93EBGbvDqcQI3wuZhLH4p9gYnG 8eDg== 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=+BPe3EuXt/ZDAmni/K2+ZRzVW02LBTxLP3RqhJLjmv0=; b=SQ9PJ3vFSiCNGSPQDEZQOOL0MWqMtVumXlUBGiSW6rvAGwJOWI+qjlJkxsN0BiMgsK bDSUGi1yEq6eu8ShoHPgE7rAj8cVTSZljhhmogSNRSVGYEN4r3/p2d0ALlVtn+BCWrHq OmKquxaOmczLqNCmgFStjUNVx+J7uRmP6ioug20Yb3DcrPi5H5x4kJBKeKJSKB0e6Wxz soulBQ2bOanCSNdudRNkBzY0Tv9BxzpyJxAw/rYIZrxEoeOiG3mJleR4Sl/cmbmqzej8 7dmetxAmQL8yqv72nyBFAuFW4DIGAQW5rDj/JOLg+LUlkApbz/luH9VVzFlhIAS7TlP9 +GpQ== 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 y73si551333plh.85.2018.01.09.02.26.21; Tue, 09 Jan 2018 02:26: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 S1754549AbeAIK0S (ORCPT + 28 others); Tue, 9 Jan 2018 05:26:18 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51674 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754343AbeAIK0P (ORCPT ); Tue, 9 Jan 2018 05:26: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 B5AD080D; Tue, 9 Jan 2018 02:26:15 -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 DF3263F41F; Tue, 9 Jan 2018 02:26:13 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] staging: ccree: make stub function static inline Date: Tue, 9 Jan 2018 10:24:32 +0000 Message-Id: <1515493478-30454-5-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515493478-30454-1-git-send-email-gilad@benyossef.com> References: <1515493478-30454-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 interface defines stub function if debugfs is not enabled, which were missing the 'static inline' qualifiers causing sparse warnings. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_debugfs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ccree/cc_debugfs.h b/drivers/staging/ccree/cc_debugfs.h index 354ec17..5b5320e 100644 --- a/drivers/staging/ccree/cc_debugfs.h +++ b/drivers/staging/ccree/cc_debugfs.h @@ -13,19 +13,19 @@ void cc_debugfs_fini(struct cc_drvdata *drvdata); #else -int cc_debugfs_global_init(void) +static inline int cc_debugfs_global_init(void) { return 0; } -void cc_debugfs_global_fini(void) {} +static inline void cc_debugfs_global_fini(void) {} -int cc_debugfs_init(struct cc_drvdata *drvdata) +static inline int cc_debugfs_init(struct cc_drvdata *drvdata) { return 0; } -void cc_debugfs_fini(struct cc_drvdata *drvdata) {} +static inline void cc_debugfs_fini(struct cc_drvdata *drvdata) {} #endif