From patchwork Wed Dec 20 18:16:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 10126269 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 3153760245 for ; Wed, 20 Dec 2017 18:16:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A1C629653 for ; Wed, 20 Dec 2017 18:16:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1EC3D2984D; Wed, 20 Dec 2017 18:16:20 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 E408329653 for ; Wed, 20 Dec 2017 18:16:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756017AbdLTSQR (ORCPT ); Wed, 20 Dec 2017 13:16:17 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:38556 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755818AbdLTSQQ (ORCPT ); Wed, 20 Dec 2017 13:16:16 -0500 Received: by mail-wr0-f195.google.com with SMTP id o2so23048819wro.5 for ; Wed, 20 Dec 2017 10:16:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=oQQ1gpBQCuTsM1lwMlPVVtYyFF6B0sz9hFyUZsGdppk=; b=hIseRHCPWvTBe5QFGA3y0se5lf8jdc+iXGIHBJaV7TT+H8tYvUPkSDFFP9hXoI0zVC +ST4/DI0AEP3ngBxBiBql1ufUkiUNJWB5vFPbq4P7PZcez+TXvj2oWtmgaXWLjDQEMyZ p2icHbsVXKgawA5dJfplDAeRLteotMIFFMCFX48xhJO0zRqzORuw6HrRDm18nBI/8y7n kH3cYUZRv4U3JPCSwLwTU9LNRdYnxwdZTn6jJ64GtOyZ+Rq4gbMRQt+lwWWOFm7ouwtg 1VZTcIrWJ33DU8nvHmKkSE/61rtTAdfU4haLh3wnRZhRjfawEl24uflqLOFdFEiP2w+X Gk3Q== 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=oQQ1gpBQCuTsM1lwMlPVVtYyFF6B0sz9hFyUZsGdppk=; b=it8bqdpElyrwM2ez6qY5pN1c4vVbs5XlIqF9FnaPD6ABT3Ne28JEAMaZx+WtYFwrZb t8DUakovXCCG5Tfw6ghtarGrsDPMnNp8yEOH1dRacn6j9akRcd1UzXq7In8rrhHHYcGz QaWSzg3gLU7qQD8G7/lqa6z7RIP4C3tgW7XlzMXHgzrKR4r3HFZ5bGQRAauU22MuRIDQ LooHyFf2AQMZn+VvddEwwKig7J4RsgritjANGHB5lV3HAnQ68k/vz4uOLhsFclBr7iTE dVQfZix5KI13URnaOA174Wcb7uHXESQduQf+AD+vDSummbLMQUhV5m+yMGVHDXhKwd+t zUZA== X-Gm-Message-State: AKGB3mJWo68Ja6F6wcCYJhc6ttGHa4/bxkOGPKghye7sK79YxAOphULq pV9em/26iTeXBaJCcQfHUYC+rg== X-Google-Smtp-Source: ACJfBotLiWXrjDSR2ovOHDceqQuFQiCKTbskowdbIyWcnwW9bVEwZkWtHNEjy3GQavf5DpGtzDtbpQ== X-Received: by 10.223.153.151 with SMTP id y23mr9632401wrb.130.1513793775121; Wed, 20 Dec 2017 10:16:15 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id j77sm14652526wmf.36.2017.12.20.10.16.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Dec 2017 10:16:14 -0800 (PST) From: Corentin Labbe To: gilad@benyossef.com, gregkh@linuxfoundation.org Cc: linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH] staging: ccree: fix __dump_byte_array() declaration mismatch Date: Wed, 20 Dec 2017 18:16:08 +0000 Message-Id: <1513793768-11051-1-git-send-email-clabbe@baylibre.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 This patch corrects the type of the size argument in __dump_byte_array() from unsigned long to size_t as done only in drivers/staging/ccree/ssi_driver.c This fix also a build error: drivers/staging/ccree/ssi_driver.c:82:6: error: conflicting types for '__dump_byte_array' Fixes: 3f268f5d6669 ("staging: ccree: turn compile time debug log to params") Signed-off-by: Corentin Labbe --- drivers/staging/ccree/ssi_driver.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/ccree/ssi_driver.h b/drivers/staging/ccree/ssi_driver.h index 5a56f7a76b71..0f57c9a8b8a6 100644 --- a/drivers/staging/ccree/ssi_driver.h +++ b/drivers/staging/ccree/ssi_driver.h @@ -174,8 +174,7 @@ static inline struct device *drvdata_to_dev(struct cc_drvdata *drvdata) return &drvdata->plat_dev->dev; } -void __dump_byte_array(const char *name, const u8 *the_array, - unsigned long size); +void __dump_byte_array(const char *name, const u8 *buf, size_t size); static inline void dump_byte_array(const char *name, const u8 *the_array, unsigned long size) {