From patchwork Wed Apr 11 01:54:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10334735 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 435586053C for ; Wed, 11 Apr 2018 01:54:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3262E285E8 for ; Wed, 11 Apr 2018 01:54:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26D58285FB; Wed, 11 Apr 2018 01:54:18 +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 94A7E285E8 for ; Wed, 11 Apr 2018 01:54:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752016AbeDKByQ (ORCPT ); Tue, 10 Apr 2018 21:54:16 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:45855 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751991AbeDKByQ (ORCPT ); Tue, 10 Apr 2018 21:54:16 -0400 Received: by mail-qt0-f196.google.com with SMTP id f8so265220qtg.12 for ; Tue, 10 Apr 2018 18:54:16 -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=zL3DkdMFKmwSZr2ApZcI3Kr5j4oo8k3jV9LXS4gjqeA=; b=QsgOS0PQ3d8/yCVJy77ze0eVryjyPYWgq2bRk0xhwbvNNIRqtHb5Xvk/+9uiH5fuHP ocQHBTvpCuBF4CW+uzkhlnJXxoMOgeefd9JqhAEevKMAYwp/MlhaiCLVftKS6dNIT6Tw o9mtXqxsSPzLwaPDRBmXVomdgh7S8XM5hauLkIkibipC90PbRwgMH8Htf6gPqx769t7T 8P0RIQM448F5J+npn0/THfIhweFAUhP6xH59sMNv/rF9xY60iC4H51kvj6uUSM+p0jv5 WSbALhv83keioVw7TN7UoVor0ewOKOmhw5UclCv1FNijJpQ8ZzLzzhao/5SQAl7tVZUs sMwQ== 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=zL3DkdMFKmwSZr2ApZcI3Kr5j4oo8k3jV9LXS4gjqeA=; b=QkVZRp6YRegcn4Ug+GCe+b37PtUGdYZOblRFtbsccrf1924XYsJBc0fsMzS3TxjmMC TWZKgjG8AFpI1Y/innxle9blaDJW2awMgu/L38XI0/yg6PnpQ96wG1eQUexD7QHkmPgb M8Fi3LYwV/3zFlUt7jnbTvW4VhrKX07f1sb70h58ZtMVlwyZeE47Ud85rc59pUhnHEfi J9SJzhMPOgC6LE+WW4zrCLRiZaydlhLj+UGFxpAeksbFPfe5mCFoMIkOOoWWRJVfuGDb lIMueM0MarUXShZl3JSfM+pr3PKWhHkEbl9Qbq2MsOa3TcHFVKHrDcX0skQRCdkHP+BQ LpQg== X-Gm-Message-State: ALQs6tAfv6fQE7TmpWnZF70TL7MJmbizONask+oAe/NwXIftRAXuULh8 skFs+Qi1PZgfWI1P7CkZsbg= X-Google-Smtp-Source: AIpwx48AiIt/uI17KqDWJLcgwR6NYmBVSREykePvbOuVA9r0HI2MOUI+v/AVMGSq0TUdQaqzBPADow== X-Received: by 10.200.102.71 with SMTP id j7mr4391601qtp.189.1523411655402; Tue, 10 Apr 2018 18:54:15 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:c19:1b:b4:1794:dc96]) by smtp.gmail.com with ESMTPSA id a79sm45783qkg.23.2018.04.10.18.54.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Apr 2018 18:54:14 -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 v2 1/2] crypto: caam - staticize caam_get_era() Date: Tue, 10 Apr 2018 22:54:03 -0300 Message-Id: <1523411644-10156-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 Reviewed-by: Horia Geantă --- Changes since v1: - None. I previously asked to put the linux-crypto list on Cc 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 */