From patchwork Wed Jan 11 11:51:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 90861 Delivered-To: patches@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1081814qgi; Wed, 11 Jan 2017 03:52:09 -0800 (PST) X-Received: by 10.46.9.215 with SMTP id 206mr3011175ljj.3.1484135529122; Wed, 11 Jan 2017 03:52:09 -0800 (PST) Return-Path: Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com. [2a00:1450:4010:c07::232]) by mx.google.com with ESMTPS id k67si3338147lfe.413.2017.01.11.03.52.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jan 2017 03:52:09 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::232 as permitted sender) client-ip=2a00:1450:4010:c07::232; 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::232 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x232.google.com with SMTP id m78so113826016lfg.2 for ; Wed, 11 Jan 2017 03:52:08 -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=BWGg9/+/fUnY2OopDLxzrNeJSu1UUcn0DYslPGIiVTw=; b=SFDxeithXndo8TKNVpiNLB0m17UzECZ6NOnYPefRnNzfw7x+oxmx2R+QnhWU0lfYv+ dGqVKYNl+u806cG7zHb2n75TlrUObLx1bhwuVKs/OEeDp5lohmQbljr3Vzous0diarut pPk/wlgO3+bDstNGDdIWPSSiJkaNLulr6E9lE= 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=BWGg9/+/fUnY2OopDLxzrNeJSu1UUcn0DYslPGIiVTw=; b=rJgG9qTahI9aAeNHyTMhsZZ0zj9jFNElFiBBfSATiv3Y6zixj01ZStRiLoq6UYNbdJ cYMMKnu+npG2K84TKnmSdY/xXFslO9Crc0LkUw6P1NwjVNewjdEZqfQb7KRW+qSpcxqL K9dl5m+USorQiiGk8/upB+A3nV56i8SItPm1RxzzMrNu1QffJA9Ws/06x7dJ2q33FSel bC3miuUcMz3DtqtOrFzGjPE2PIIaqp3IyyTp0j2zEHuVktb2Wq3GL8S5GDaaDSpSQNcY hrpKdAAeRoDEtCsrUOx+VYHGrJl7TLo7owhplT6Sk/nTBYj5khBdSlDM0EM21hmhXUbC ba/Q== X-Gm-Message-State: AIkVDXK9qcEOpLzw/g1FnxvPqXMBnE5HHU59KzWOH9eCyoWmlDBGXoNGu/S2wYCVKFEfMddsgow= X-Received: by 10.25.203.87 with SMTP id b84mr2761626lfg.158.1484135528636; Wed, 11 Jan 2017 03:52:08 -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 87sm958768lft.27.2017.01.11.03.52.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Jan 2017 03:52:07 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Jaehoon Chung , Adrian Hunter , Linus Walleij Subject: [PATCH v2 12/12] mmc: core: Don't use extern declarations of public mmc functions Date: Wed, 11 Jan 2017 12:51:18 +0100 Message-Id: <1484135478-2077-13-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484135478-2077-1-git-send-email-ulf.hansson@linaro.org> References: <1484135478-2077-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 Reviewed-by: Linus Walleij --- include/linux/mmc/core.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) -- 1.9.1 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 */