From patchwork Fri Dec 30 12:47:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 89355 Delivered-To: patches@linaro.org Received: by 10.140.20.101 with SMTP id 92csp6424886qgi; Fri, 30 Dec 2016 04:48:48 -0800 (PST) X-Received: by 10.46.7.9 with SMTP id 9mr15507152ljh.75.1483102127925; Fri, 30 Dec 2016 04:48:47 -0800 (PST) Return-Path: Received: from mail-lf0-x22c.google.com (mail-lf0-x22c.google.com. [2a00:1450:4010:c07::22c]) by mx.google.com with ESMTPS id r200si19589994lfe.393.2016.12.30.04.48.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Dec 2016 04:48:47 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::22c as permitted sender) client-ip=2a00:1450:4010:c07::22c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::22c as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x22c.google.com with SMTP id y21so236385723lfa.1 for ; Fri, 30 Dec 2016 04:48:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=S9zg9pwFK4LZ/ErN1Dz7yXRBglb0A9j6jOSatfoEO5c=; b=SZOojWz6MotNpkFFLASVloM8ylj2oBAfBQi/NAPH9Lgg92mo4v8BUReMiWTKV7CEYC R2dzdcH2sqr5AhXaYtqP61rcLGhwmkgMZZX0mkL7gXHV6bp2PCEFUWt5lU2N5k/hF5En lWupOR/Za2BqCbmCR0QUbzwO9ZNISxr8BV41U= 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:in-reply-to :references; bh=S9zg9pwFK4LZ/ErN1Dz7yXRBglb0A9j6jOSatfoEO5c=; b=RS9jG6Ov4SMPcgzR5v+sGENtPQp8/v35Hv7XiEgzg22XYdbwO5mvRE7Cii+T0NpgLW J1wwvCrxfyVDLbOXj53EF57ZuHPHlyUKxwS63c06f3LF3iqxvD+DPd3GY18fuCAjmgZc fT52f1UFi+/loqXzaIjndZx7mhHtalxqJz0ZoVGiw7TKpResojxKThcr4DGIxdNRnUCO DbrJ+jh0iP1q8zBuhlDogY+cHI3Y7IJWdRywwZ0oJozoeYenXv3Xuzf1AR3ykCEHH9bo TFLgKS79DA6aaSczal3/Y3HWe6XR/yQNPTR2BwOx0WYkFSeh+xFmPqU1BOJETtNfyTaf 6wzQ== X-Gm-Message-State: AIkVDXLnoPvyUx086Ij9jMbqUrLX6auv8BzHndz4z/JEG76QxTbXWQthRaHRkzp6xna7aUu9IKI= X-Received: by 10.46.74.26 with SMTP id x26mr15554188lja.51.1483102127502; Fri, 30 Dec 2016 04:48:47 -0800 (PST) Return-Path: Received: from localhost.localdomain (h-155-4-221-67.na.cust.bahnhof.se. [155.4.221.67]) by smtp.gmail.com with ESMTPSA id a79sm7450069ljb.46.2016.12.30.04.48.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Dec 2016 04:48:46 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Jaehoon Chung , Adrian Hunter , Linus Walleij Subject: [PATCH 21/21] mmc: core: Don't use extern declarations of public mmc functions Date: Fri, 30 Dec 2016 13:47:34 +0100 Message-Id: <1483102054-1752-22-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1483102054-1752-1-git-send-email-ulf.hansson@linaro.org> References: <1483102054-1752-1-git-send-email-ulf.hansson@linaro.org> Using extern when declaring functions in the public header, core.h, is redundant. Let's just remove the use of it. Signed-off-by: Ulf Hansson --- include/linux/mmc/core.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) -- 1.9.1 Reviewed-by: Linus Walleij diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index 6440e10..6dcb339 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h @@ -158,13 +158,14 @@ struct mmc_request { struct mmc_card; struct mmc_async_req; -extern struct mmc_async_req *mmc_start_req(struct mmc_host *, - struct mmc_async_req *, - enum mmc_blk_status *); -extern void mmc_wait_for_req(struct mmc_host *, struct mmc_request *); -extern int mmc_wait_for_cmd(struct mmc_host *, struct mmc_command *, int); - -extern int mmc_hw_reset(struct mmc_host *host); -extern void mmc_set_data_timeout(struct mmc_data *, const struct mmc_card *); +struct mmc_async_req *mmc_start_req(struct mmc_host *host, + struct mmc_async_req *areq, + enum mmc_blk_status *ret_stat); +void mmc_wait_for_req(struct mmc_host *host, struct mmc_request *mrq); +int mmc_wait_for_cmd(struct mmc_host *host, struct mmc_command *cmd, + int retries); + +int mmc_hw_reset(struct mmc_host *host); +void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card); #endif /* LINUX_MMC_CORE_H */