From patchwork Thu Jan 12 15:03:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9513375 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 9085B60476 for ; Thu, 12 Jan 2017 15:04:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E73E286C4 for ; Thu, 12 Jan 2017 15:04:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 71278286CD; Thu, 12 Jan 2017 15:04:10 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 00FE7286C4 for ; Thu, 12 Jan 2017 15:04:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cRgv6-0005tM-0c; Thu, 12 Jan 2017 15:04:04 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cRgur-0005DK-QG; Thu, 12 Jan 2017 15:03:52 +0000 Received: by mail-pf0-x241.google.com with SMTP id b22so3894201pfd.3; Thu, 12 Jan 2017 07:03:29 -0800 (PST) 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=jjyFaYkIU4vBimQyexN0hBZXK/4FCMukrLTo9I86QH4=; b=h6W/h8wiR+H/wsTUW6RvBe3D5dbKklRYgCsyNtN1stuQJrXdzuHGqLJBf58FpDl2M3 I+4zDBIDyjoMIbHqFzkks4eNJXazh9hdMpXSM6TCF6ZnNiqnX4jS02ytz3oskl+fVXG4 +X2Jze24LrT9THt75VNx80t8sF/mgPaZVbl/VX24Gq/4qI2uzLXotLsx7lYEitNUGGYB mGKX6kWHdHgmV/tGdEpUNyzsX3YrYxFRkAcNc6sDSSxse3L9pyq+myRO4YVn/oLbf57x nDQCgHJM32A2dth26Ob8WzOvUujXrTLEl/m8oq1qRAhVpR1v9ANeJ/aoLf8UuRza3CQX 9X1A== 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=jjyFaYkIU4vBimQyexN0hBZXK/4FCMukrLTo9I86QH4=; b=HQAMPoqNs1uJqHJuFIc7o6z3vp6QLas0kK+wEuSEw/BHQe2IhgIxTccll7MEU8bo4u gadbZ/yEMt+FiAvoKV9LPkz+oX5RpI5RrQoy9H3EG6iT4PmdUkHpzVdQgdOix2MmTA/h +xjD+G3/SCzCX+ulWqkijhmy1qyMd14UsCWOj11m7uFB+vEH//glj60LTNpgk8wYDkyv /DNTPSdglX2gy3aV696Fr4R8HTyy2SY+JucnIfynxwJuO5p9niOky9LEXZM7EUKXjLO0 E2FI8DSPwFkBWVzaS1cpzXh2t052Qvr6lTmK8I8xBIoubQVOdw08mqokYfD/Om7Tqp8D d2nA== X-Gm-Message-State: AIkVDXI2cOx5I4ZMsQA2t5rZbpr1bL5OxziMEh7gLTD2RL4Q9StpuOtdtqTq6V/k3wCENA== X-Received: by 10.98.63.15 with SMTP id m15mr17243346pfa.71.1484233408776; Thu, 12 Jan 2017 07:03:28 -0800 (PST) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id l12sm14940607pfj.37.2017.01.12.07.03.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 07:03:28 -0800 (PST) From: Wei Yongjun To: Herbert Xu , Matthias Brugger , Ryder Lee Subject: [PATCH -next] crypto: mediatek - make symbol of_crypto_id static Date: Thu, 12 Jan 2017 15:03:21 +0000 Message-Id: <20170112150321.4187-1-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170112_070350_079969_AFE6D02A X-CRM114-Status: UNSURE ( 9.50 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mediatek@lists.infradead.org, Wei Yongjun , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warning: drivers/crypto/mediatek/mtk-platform.c:585:27: warning: symbol 'of_crypto_id' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/crypto/mediatek/mtk-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/mediatek/mtk-platform.c b/drivers/crypto/mediatek/mtk-platform.c index 286296f..a9c713d 100644 --- a/drivers/crypto/mediatek/mtk-platform.c +++ b/drivers/crypto/mediatek/mtk-platform.c @@ -582,7 +582,7 @@ static int mtk_crypto_remove(struct platform_device *pdev) return 0; } -const struct of_device_id of_crypto_id[] = { +static const struct of_device_id of_crypto_id[] = { { .compatible = "mediatek,eip97-crypto" }, {}, };