From patchwork Sun Feb 14 15:33:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 8302241 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 325449F372 for ; Sun, 14 Feb 2016 15:34:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 452C6203A9 for ; Sun, 14 Feb 2016 15:34:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 51478203C2 for ; Sun, 14 Feb 2016 15:34:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751461AbcBNPeA (ORCPT ); Sun, 14 Feb 2016 10:34:00 -0500 Received: from mail-qg0-f46.google.com ([209.85.192.46]:36760 "EHLO mail-qg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751451AbcBNPeA (ORCPT ); Sun, 14 Feb 2016 10:34:00 -0500 Received: by mail-qg0-f46.google.com with SMTP id y9so96403872qgd.3 for ; Sun, 14 Feb 2016 07:34:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=wBNUu81pg+BVb9ULhzTTR89Uq/sJtqf+vpyal3eDT6M=; b=BjZ7cyPjiZNwpi4LPuq6ZqTgSvIViuPCzSr/xR9Z1fF9NOx8BCzuOdn2dwUDDRcYSF XZJzc0D7g6tg6Sps6ikZUE7jNFNkGz8WxXEdVwFeNQR9N15a4acVjyvedPNAQNuSz5Yu CV8jRgeFzqI5jjhQ0aygdCkZbW955p5oTvktv+gHUOedniGYTX0X8bkE0F7i/ylL6Zwh JIF+dwdtZ8bK0JxyDAu/6SLsAUreKxAsbwYvxR81CQopXAjTbbFYIZwOqIrcyLOgMDcr aidOTv1qwBGyAXwvMxpgKTVj8D6j+af3lpKi2bOmi9wxdrWnegpdIfdcuvOzJBK3z5eM sv4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wBNUu81pg+BVb9ULhzTTR89Uq/sJtqf+vpyal3eDT6M=; b=J8ukDqsLe/Akal3wEbelisv2yOc3cmpca3vcgCha1CgoVr+UJip6vGHzQhvIGsQtf1 8ZEfBqmD8+44lrZ1+p2Sg7dBXVqRQAJ9TBo0OaHPbHaI2CGadauLKbIkp3SLjretxQ0T pix5T4yZIpb+djzLMWNVSZZE6l1dMXiy+/dC23s8GPm/XGAAsJWh2PY0JQeOH7IVrHCG vcXomOYf4I9W2J8AajLSFyxfyK88r/esRUHYRrHMQxD4QYVkuXzUCcYZ1AZofRtbdMSW n0bAcuw+fCKFHMbswU6HE7lKQZspi0NQE55Dc8OxnkhiDz6EVTBagOObhsWN93wJward 66Ag== X-Gm-Message-State: AG10YOQXtZVkid+bn/v9uCE8JxW0NbODxmOOly+tmFAoAOtQi/4iJMngZoOehrVpmbw+xQ== X-Received: by 10.140.107.182 with SMTP id h51mr14807010qgf.53.1455464039642; Sun, 14 Feb 2016 07:33:59 -0800 (PST) Received: from localhost.localdomain ([187.180.187.217]) by smtp.gmail.com with ESMTPSA id l20sm635911qhc.24.2016.02.14.07.33.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 14 Feb 2016 07:33:58 -0800 (PST) From: Fabio Estevam To: broonie@kernel.org Cc: linux-spi@vger.kernel.org, Fabio Estevam Subject: [PATCH] spi: core: Staticize __spi_split_transfer_maxsize() Date: Sun, 14 Feb 2016 13:33:50 -0200 Message-Id: <1455464030-24398-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam __spi_split_transfer_maxsize() can be made static as it is only used in this file. This fixes the following sparse warning: drivers/spi/spi.c:2266:5: warning: symbol '__spi_split_transfer_maxsize' was not declared. Should it be static? Signed-off-by: Fabio Estevam --- drivers/spi/spi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 1413a6b..ced6c88 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -2263,11 +2263,11 @@ struct spi_replaced_transfers *spi_replace_transfers( } EXPORT_SYMBOL_GPL(spi_replace_transfers); -int __spi_split_transfer_maxsize(struct spi_master *master, - struct spi_message *msg, - struct spi_transfer **xferp, - size_t maxsize, - gfp_t gfp) +static int __spi_split_transfer_maxsize(struct spi_master *master, + struct spi_message *msg, + struct spi_transfer **xferp, + size_t maxsize, + gfp_t gfp) { struct spi_transfer *xfer = *xferp, *xfers; struct spi_replaced_transfers *srt;