From patchwork Fri Jan 13 13:14:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 91418 Delivered-To: patches@linaro.org Received: by 10.182.3.34 with SMTP id 2csp131381obz; Fri, 13 Jan 2017 05:15:26 -0800 (PST) X-Received: by 10.25.27.145 with SMTP id b139mr6616691lfb.114.1484313326280; Fri, 13 Jan 2017 05:15:26 -0800 (PST) Return-Path: Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com. [2a00:1450:4010:c07::229]) by mx.google.com with ESMTPS id d5si7882604lfk.8.2017.01.13.05.15.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jan 2017 05:15:26 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::229 as permitted sender) client-ip=2a00:1450:4010:c07::229; 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::229 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-x229.google.com with SMTP id v186so37178590lfa.1 for ; Fri, 13 Jan 2017 05:15:26 -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=Exk2ZhwcSMIOHZ/oYIVKok6hBkipteyTd1vRnkw35BfUusfozV/Ar2RJcS3gevCZvI WVRY+NES7tKewMfA0rLi9KI68iJ2TrlOAunU3SLdfdQ53iBrAv7kGqBCfY9Ce1yPjjch xHb/t9psWX5xBnrCIGF/4vRBRXM2po7PK9X7U= 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=qQi/vNwQleBEKgyKFfWWv4ms1XL2E6aNlrs+v6g2/77u+Y58+h+PTL3fwE1298EQr1 NXjD7VeZtzqTXH+cY++btB7Rub4Na7PyXmdF7HVawpcc63kTSjZaMVSQcnkXFAjXo8X1 9axQPjl9gte6UbEX1HU/VzPNWDUqfTmUULvNTXd2w6HnTj4skaPGXs9pcFLcu7239fN3 Un6C3iLa+AHDzOFno+fWPEsNs1WzUNzT3kCt/0/YvrkkDrjTkVz8UQSMYAnx1LFBLmQP BMtQUyz56HUPrT0AeuWYkN3B/mYCk1fiaQNB2L72A5/2Mw3/15Cb4VmbCR8hxXK+iaAA TCtQ== X-Gm-Message-State: AIkVDXK/EF9ij1aJpoSMFz8tA3VXFJS3kgtp6f96NvCbXUTzR39GMevKIKyvEb85gHT6/vgNM8w= X-Received: by 10.46.15.26 with SMTP id 26mr7659326ljp.52.1484313325876; Fri, 13 Jan 2017 05:15:25 -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 l67sm2931452lfb.15.2017.01.13.05.15.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Jan 2017 05:15:24 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Jaehoon Chung , Adrian Hunter , Linus Walleij Subject: [PATCH v3 15/15] mmc: core: Don't use extern declarations of public mmc functions Date: Fri, 13 Jan 2017 14:14:16 +0100 Message-Id: <1484313256-25993-16-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484313256-25993-1-git-send-email-ulf.hansson@linaro.org> References: <1484313256-25993-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 Reviewed-by: Shawn Lin 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 */