From patchwork Wed Apr 11 11:58:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10335367 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5E91E60134 for ; Wed, 11 Apr 2018 11:59:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47681288DE for ; Wed, 11 Apr 2018 11:59:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BC72288E4; Wed, 11 Apr 2018 11:59:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10E15288DE for ; Wed, 11 Apr 2018 11:59:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752943AbeDKL7I (ORCPT ); Wed, 11 Apr 2018 07:59:08 -0400 Received: from mail-qk0-f196.google.com ([209.85.220.196]:36432 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752915AbeDKL7G (ORCPT ); Wed, 11 Apr 2018 07:59:06 -0400 Received: by mail-qk0-f196.google.com with SMTP id o205so1487005qke.3 for ; Wed, 11 Apr 2018 04:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=FXabyAHJQD6s1OtNlbxjd1z7WxhA7EX1cCzWDiZRQ58=; b=bmUsQbDQ9NbC3I4hGpXkqqJX/SdyjLIiki68tVn0WVWG0TjRezKXXFyBnW1z+2yhpH aXVYTuMClu9BuI7ypWwnWNHHQ+zhTOsJNcjSOTZVVd5uC4HEd3VNjR4g62o0Pn1ApV/z //Pm7smVo0xrYeGdgG7+XOzV5o2S0hWq3Nc1w0YVNMrNoKj18LZhqW8k+dpy6LWZENln NfeIDSf7dGT1i1qwxmXEF6YxSmSiM/Wh0HGEHbwdOYcmBEpDaZv1Vc0L+ME9ZxiEkGby 1krC1Smz9qWPp8GNcWZmVmztL3uHBQSbYRm7RHDycbOOspwyGI6NaWnAgottCL1yTX2A qI0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FXabyAHJQD6s1OtNlbxjd1z7WxhA7EX1cCzWDiZRQ58=; b=L1LLODE/7UgTqctcfBa5KOJ/kSYRSgXgOjJw2kWodAi7NFfo2kywNW6UFPrksJehlc CcH6iCOeb7JQa/pni+f786pcX9mEelW5s5sqy2cXtI3jeX+clLsEYNGoxhYErfkwWshh VO942ddxJPyYsb10BH7r/I1SrNOQdR4mZwPMEtx1KzY4bZKi645H3OFaMmc4UHEz5CHk ZPQYh/G8+peocYhX5WfWHQLF7D9UKhJQiUuteu2JJ6CD+UPC/IDAWIisWZqiw2OdViYQ Bz7OoyglBxfnmBcPIFmvme2FJFOAqkdF2r1X00pQ8xlFbBR/fXk82lh85p4PiMp6WO4D zcsg== X-Gm-Message-State: ALQs6tBAQLeEoNRP7hUhzNB+82T9KoQk4nrX6oZfLCVfo/YaldkKG2x1 O9xnkxcdQdoJSXZEKSeVW6g= X-Google-Smtp-Source: AIpwx48yHMFxG+UpueAPTPViJj9SmyAffwWYstsLEDBWR+ORaw83k/iLigrBqqCAg2k84qAnM04ldw== X-Received: by 10.55.65.65 with SMTP id o62mr6220008qka.270.1523447945166; Wed, 11 Apr 2018 04:59:05 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:c19:1b:b4:1794:dc96]) by smtp.gmail.com with ESMTPSA id l192sm665347qke.56.2018.04.11.04.59.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Apr 2018 04:59:04 -0700 (PDT) From: Fabio Estevam To: herbert@gondor.apana.org.au Cc: horia.geanta@nxp.com, aymen.sghaier@nxp.com, bryan.odonoghue@linaro.org, breno.lima@nxp.com, linux-crypto@vger.kernel.org, Fabio Estevam Subject: [PATCH v3 1/2] crypto: caam - staticize caam_get_era() Date: Wed, 11 Apr 2018 08:58:53 -0300 Message-Id: <1523447934-6996-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam caam_get_era() is only used locally, so do not export this function and make it static instead. Signed-off-by: Fabio Estevam --- Changes since v2: - None. drivers/crypto/caam/ctrl.c | 3 +-- drivers/crypto/caam/ctrl.h | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index e4cc636..bee690a 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c @@ -400,7 +400,7 @@ static void kick_trng(struct platform_device *pdev, int ent_delay) * caam_get_era() - Return the ERA of the SEC on SoC, based * on "sec-era" propery in the DTS. This property is updated by u-boot. **/ -int caam_get_era(void) +static int caam_get_era(void) { struct device_node *caam_node; int ret; @@ -412,7 +412,6 @@ int caam_get_era(void) return ret ? -ENOTSUPP : prop; } -EXPORT_SYMBOL(caam_get_era); static const struct of_device_id caam_match[] = { { diff --git a/drivers/crypto/caam/ctrl.h b/drivers/crypto/caam/ctrl.h index be693a2..f3ecd67 100644 --- a/drivers/crypto/caam/ctrl.h +++ b/drivers/crypto/caam/ctrl.h @@ -9,8 +9,6 @@ #define CTRL_H /* Prototypes for backend-level services exposed to APIs */ -int caam_get_era(void); - extern bool caam_dpaa2; #endif /* CTRL_H */