From patchwork Tue Apr 19 01:01:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 563288 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp2858476map; Mon, 18 Apr 2022 18:03:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiFX5UqxOmGAx5J5bCzUxyNmyic3A0SV7LKwERj5O4byEdAu/nYKfJxhb+FuZROUbywrY/ X-Received: by 2002:a05:6402:1ac4:b0:41d:83d1:9da7 with SMTP id ba4-20020a0564021ac400b0041d83d19da7mr14769743edb.272.1650330184749; Mon, 18 Apr 2022 18:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650330184; cv=none; d=google.com; s=arc-20160816; b=MEmdx+mbwObVMHnoY2dvfruvFv9OcJcnHZGaQJg2yUx/NfL7gFK348iSiXgyR+9f/z N0SzCBwV7jM7gaHlzXVcY62tFClX9b50MhP1SZuavyp7zFa+ed/vtKOMTG7rD6Rs4sdN cdlYki0hgbb9aOyC+mjHAFU0Eb28XIkn7ICwxTEuqhVcRqfBwg/X3F+yNTW32UFy8bdj MBBzwqmDetMl+bCNZp67t5hoZxLJ4O4MFKWGu9GcBbhuX29Dfqw+Bks6iwZ+TdnacRiN Qz1rrt6wYmwbJTljsv1W5u9/r4upJJ0DdkcwQhnJW22YwT6uQdQnxNXIt5I5b0z/ytX2 bbgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pBWvN4FUNe0PYcZ0ZQLRFgzPLJclqiGVt8QZrUAG+DM=; b=idNIR3TSbVlsn24tKvHPn9N1JXg8I7rxIxkdPfwSSWRXRPJ+E8FRxnOsuIanDm+8Dl ApXsF9UbErtb2owRM+elrEAVm2uGBugjTYHkgQ8Su8vyRRtah7ig3lBxPUIVIBpwqS/+ rtHz/SsTmV+C/kVro6FuYRnCEAN5KeLSZyDimrGZpNQVNC7QOm9ZyYvF/jihQamvO1tP +QYdLl0FppHTz2mYUQE7gNiOYy1jENwqB74jkQcDspJ/f8ELSMSVafO9L+J/quOVUTbS BG+qzpIPZybxVyPy0HAfcLZGyXi8Th9yyxChYFpTMJh3KwQi9FM6zsR1lCR1zkvedsJM BB7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T6ZbV7ya; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id hp1-20020a1709073e0100b006e87cef4be2si9403696ejc.87.2022.04.18.18.03.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:03:04 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T6ZbV7ya; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 566CF83B25; Tue, 19 Apr 2022 03:02:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="T6ZbV7ya"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DB2F383B25; Tue, 19 Apr 2022 03:02:40 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C47BF83B34 for ; Tue, 19 Apr 2022 03:02:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pg1-x534.google.com with SMTP id bg9so21948138pgb.9 for ; Mon, 18 Apr 2022 18:02:34 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=pBWvN4FUNe0PYcZ0ZQLRFgzPLJclqiGVt8QZrUAG+DM=; b=T6ZbV7yaaSMjWgT9LFIe4vc0MWvO/IQUOrbJV1CXVjYfW5TM5WHQLuF3rLtc7/SFln sbw+RznGXELg7D6qurRpXEcrL2i/n20IOcBCObiguqP9MYbgFU/n6RXMC7CYCjcFOVLW fs1WlUEkNzkFEiYn/yzbAf7w/ILJo55d8PHzXjHypqUM/ONo4+tgn4OxOZ04pVgM2t7K 05vYHVwresztXdzD0Usv7PYjk6RO6gaU//48tA2k6RE8ZDitzs26uN6t1Km8GEbh1Hp9 s5zgNa5VFqY1d4ullLADlgYGNpHyjppTxd33nsJmnRxwN8agok9dABi3JXL9AGC/6MKa S/XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pBWvN4FUNe0PYcZ0ZQLRFgzPLJclqiGVt8QZrUAG+DM=; b=Uj9tXrr2E/BjLac7m3eqsRlJIj6pFsFI3NaS960Tjo9kB5sbOlnBL2MDwCDscbrUfU jb/6s6cpfuZKe/YlY7yIxmU6SPJSKI6VBVNZFynrqsndWyyvtPrQ8buycmYfZf3p/vFP ovXIQu6cGxWXvohuWmPuSO4ymoeCRZsud4A3p+ps8hEZGsEz9OfubIBY2k9nuqtloeyf TNHmh3WMchF7nLcFNi0ulC0QnSXPLoBRFLWdWgXyYUS8oHK96IBjFnXPqN/gE9xw5hja sIa9DrEkOXbNa9AESEFLwozEd0JsLbYEMKFiDyHlIqfE3oPaV2zf4v+f1lYoWdGmampX +7IQ== X-Gm-Message-State: AOAM532IK3ixCvFkve3Y6GED9ThEycWptTvorV4ny0cBOmkDdLcYeHsl D+V3Vue4c3e/enGmw8YiSEuyGA== X-Received: by 2002:a05:6a00:9a2:b0:505:974f:9fd6 with SMTP id u34-20020a056a0009a200b00505974f9fd6mr14947035pfg.12.1650330153036; Mon, 18 Apr 2022 18:02:33 -0700 (PDT) Received: from localhost.localdomain ([2400:4050:c3e1:100:5858:d3a6:5cad:ceeb]) by smtp.gmail.com with ESMTPSA id l2-20020a056a0016c200b004f7e3181a41sm14791729pfc.98.2022.04.18.18.02.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:02:32 -0700 (PDT) From: AKASHI Takahiro To: trini@konsulko.com, sjg@chromium.org, xypron.glpk@gmx.de Cc: u-boot@lists.denx.de, AKASHI Takahiro Subject: [PATCH 4/7] sandbox: move a function prototype Date: Tue, 19 Apr 2022 10:01:55 +0900 Message-Id: <20220419010158.47034-5-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220419010158.47034-1-takahiro.akashi@linaro.org> References: <20220419010158.47034-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Since host_get_dev_errr() is defined in drivers/block/sandbox.c, the associated function prototype should be in a more appropriate header file. Fixes: commit 4101f6879256 ("dm: Drop the block_dev_desc_t typedef") Signed-off-by: AKASHI Takahiro --- include/part.h | 1 - include/sandboxblockdev.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/part.h b/include/part.h index 5f47a76bc19b..e5806edb3452 100644 --- a/include/part.h +++ b/include/part.h @@ -104,7 +104,6 @@ struct disk_part { struct blk_desc *blk_get_dev(const char *ifname, int dev); struct blk_desc *mg_disk_get_dev(int dev); -int host_get_dev_err(int dev, struct blk_desc **blk_devp); /* disk/part.c */ int part_get_info(struct blk_desc *dev_desc, int part, diff --git a/include/sandboxblockdev.h b/include/sandboxblockdev.h index 4ca9554e38a0..dc983f0417b2 100644 --- a/include/sandboxblockdev.h +++ b/include/sandboxblockdev.h @@ -26,4 +26,6 @@ struct host_block_dev { */ int host_dev_bind(int dev, char *filename, bool removable); +int host_get_dev_err(int dev, struct blk_desc **blk_devp); + #endif