Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp417394imj; Sat, 16 Feb 2019 03:21:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IYTsrtg++qe9EjOMNGaim6dx1LcEp31sjBRpog6IHVC6ppPVui8cjzsiS4COGmEh3bzoy0d X-Received: by 2002:a63:4618:: with SMTP id t24mr9801085pga.316.1550316092289; Sat, 16 Feb 2019 03:21:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550316092; cv=none; d=google.com; s=arc-20160816; b=MO/ZTuvqzt5ZhULA/vcneXGue6gBN+OF2IxB5PHeRiCUwzSAKsf0gPnIIbKTlLP/+8 R7g8kuK1f8VfD6HQ4itJk5Up1y89D7oYdNiKK89OeUy82s57wDlmB8jo2yUS3er5I+V+ O2R7F+hYQv44u5epiF1PVYfOBvE+ykgnmSXBKECCIrKUSc5unJm1B1NVR3gLB9PTfFgm EBb9Pj2FuXFuJ2YIa1P5+W6SpfjZcp0LlWPWjz45b5339jQVreYC2PrLRdnwM5uHA9bn 1SshNUxTCJwaZpf9c5zCNypdXLu1DAjdqquL6nhSeF4a0OrzySVY2AmTwFFcpMfrUf/E slDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=pIxxF7VLfrEjmW8hJAefP6kYvAslYofZUj9h9SDnfxo=; b=crY0QfYrLozsvGVeN6nHVz0KQmGRMkunicKxS1TxqDuCVl9fc6aF8KvUS6xw3FTzOh Te6rsuMiP7J7TaG5/a9GbaPkB8GcqhFCdyGJsGTCvzL0HOy6WeSSRUpr0HA6i2cJrYyN zJFkHgg3oDYqxWmEZyu3ybR5fV2DggrEWoNFbsFE7YhBAGBsvT1TLWqdwWvdkWF5h7B4 Os4wQCePD44X4zRUSNftFLnlK0mLizHIFfb3FBOzaSRNyOp2F8AMQX35A4tqa2YI3VT5 STLMax2a6BSd/qiuG9rSfx+WgmXw/D7md/06H1SUAAbJd7KqQ3crYuUBIKgQ4l2CZrBH RS2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23si8032693plr.151.2019.02.16.03.21.16; Sat, 16 Feb 2019 03:21:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726919AbfBPFz2 (ORCPT + 99 others); Sat, 16 Feb 2019 00:55:28 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:60924 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725783AbfBPFz1 (ORCPT ); Sat, 16 Feb 2019 00:55:27 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7DF8785BBA264D64A8F2; Sat, 16 Feb 2019 13:55:25 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.408.0; Sat, 16 Feb 2019 13:55:15 +0800 From: Wei Yongjun To: Benson Leung , Enric Balletbo i Serra , Duncan Laurie , "Nick Crews" CC: Wei Yongjun , , Subject: [PATCH -next] platform/chrome: Make function wilco_ec_transfer() static Date: Sat, 16 Feb 2019 06:09:10 +0000 Message-ID: <20190216060910.139768-1-weiyongjun1@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following sparse warning: drivers/platform/chrome/wilco_ec/mailbox.c:126:5: warning: symbol 'wilco_ec_transfer' was not declared. Should it be static? Fixes: 436dad4fda10 ("platform/chrome: Add new driver for Wilco EC") Signed-off-by: Wei Yongjun --- drivers/platform/chrome/wilco_ec/mailbox.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/platform/chrome/wilco_ec/mailbox.c b/drivers/platform/chrome/wilco_ec/mailbox.c index c7028488e575..f6ff29a11f1a 100644 --- a/drivers/platform/chrome/wilco_ec/mailbox.c +++ b/drivers/platform/chrome/wilco_ec/mailbox.c @@ -123,8 +123,9 @@ static void wilco_ec_prepare(struct wilco_ec_message *msg, * Context: ec->mailbox_lock should be held while using this function. * Return: number of bytes received or negative error code on failure. */ -int wilco_ec_transfer(struct wilco_ec_device *ec, struct wilco_ec_message *msg, - struct wilco_ec_request *rq) +static int wilco_ec_transfer(struct wilco_ec_device *ec, + struct wilco_ec_message *msg, + struct wilco_ec_request *rq) { struct wilco_ec_response *rs; u8 checksum;