From patchwork Wed Apr 11 12:45:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10335393 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 BA2E060365 for ; Wed, 11 Apr 2018 12:45:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A229F2892B for ; Wed, 11 Apr 2018 12:45:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96B912893A; Wed, 11 Apr 2018 12:45:33 +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 3459F2892B for ; Wed, 11 Apr 2018 12:45:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753155AbeDKMpc (ORCPT ); Wed, 11 Apr 2018 08:45:32 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:35090 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753122AbeDKMpb (ORCPT ); Wed, 11 Apr 2018 08:45:31 -0400 Received: by mail-qk0-f194.google.com with SMTP id c188so1636020qkg.2 for ; Wed, 11 Apr 2018 05:45:31 -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:mime-version :content-transfer-encoding; bh=jDU5CukiPyTT20NKEM1KoqzjJIGJegSsznbbguHQuqE=; b=iAJOhnVzZPEBAUDD+iDIbaoIGv7vU1ZUQ1yn4/UW7eovOWjVgA9369MtmbTtAFMTJ1 K40EifsK6ye3NxjV0nTbvi4V92Cu8NCH/FwtdtXpbteIisOWA/7nHm5S4mfRCGJHN4Wk Gn9Tnz225w0GNc1+cpOdFVzKfZP/yMX5EV9FVN9DCaUGJkONVLHu6zsF1d1TgolZR5/7 5T9/TCHDdVP1NSySqDTQjStA+Y7cTcN1SMuNA9r8N2n8TewqRLBi1+2d9eL3S+Jr0ei3 I4PbP6VkgL/lmFNvFa88VcG+nCkVgXY+IaS9sl+Ia49/wSLaqO2NlBNxEk1FCUPRqbUV x6mw== 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:mime-version :content-transfer-encoding; bh=jDU5CukiPyTT20NKEM1KoqzjJIGJegSsznbbguHQuqE=; b=V2ZIYUfk5WfM7bWCw+iHJiTPgu1W+lgubI5JKAwerR2DC7jI2418gsT1bxAyLdG/Km ynKXm6bYOEvsmvT/I0iFjFWmZDzW6k7JRfLOoYiy5PgJIYFnX6aVnwdh5JTIEkKwauQO 0wPHuuxaTe3++oiGUeXDZN7HGhEfzg5MkYTl+r0YZLfH5/zvXrbXX2Sfg7zSWT0mXIdy 9LZkilFKLc18/yQGWudLIVl38AMf1KpIaaipyKT8LcTpFd40wi6NAmRlI9hvFL41r4bq J5/tX5Uo2WBnTy0oRltFt2U6rMW6Qj//HS+92bSbUHZhD9NX57neRfmLpscXsio7HXu5 E7HA== X-Gm-Message-State: ALQs6tCm3MWBzmHvgbbGT7hB3oIFADjY99n19n9VBGirwVfykZil0u5y ZzyJ+NsM2+rx9WaG2d081jxGHA== X-Google-Smtp-Source: AIpwx49soxlynrGUYvb3c0ABIq1GE51ociOoKaPUSHQXZ61cBv4/P3Ydxr/x/L3OxTjjIwY3X+tBCQ== X-Received: by 10.55.154.79 with SMTP id c76mr6392333qke.347.1523450730900; Wed, 11 Apr 2018 05:45:30 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:c19:1b:b4:1794:dc96]) by smtp.gmail.com with ESMTPSA id c4sm891935qtd.39.2018.04.11.05.45.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Apr 2018 05:45:29 -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 v4 1/2] crypto: caam - staticize caam_get_era() Date: Wed, 11 Apr 2018 09:45:19 -0300 Message-Id: <1523450720-9300-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 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 Reviewed-by: Horia Geantă --- Changes since v3: - 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 */