Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5FDFEC433EF for ; Fri, 22 Jul 2022 16:11:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1316884160; Fri, 22 Jul 2022 18:11:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="TTl468oM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EBD7B8412C; Fri, 22 Jul 2022 18:11:20 +0200 (CEST) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (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 AE9428414C for ; Fri, 22 Jul 2022 18:11:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dario.binacchi@amarulasolutions.com Received: by mail-ej1-x634.google.com with SMTP id j22so9391026ejs.2 for ; Fri, 22 Jul 2022 09:11:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HG7NUDdxnSS97U4P5z2f21LFtdOJS/jfnwSZbkpZ31A=; b=TTl468oM4UhE4UVyrtaH0DXe0JkKb3s9O86djKDU61x1ydaW62gxfcZjnSnda5fYeN qxx6+MXtLhiWDR+uDijGTY0n0RMgOaB4Wkdy1vsXcVxpFlZMPer2KAJ2gw7mQW42PLR1 1CYk8PPVXHXLqY8LUG0A5/lPIKxPpvKiXT5eE= 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=HG7NUDdxnSS97U4P5z2f21LFtdOJS/jfnwSZbkpZ31A=; b=4wzvWtlhy1K0mbwjE+jkWDCjSGZHQ8hNL0+pZOOQbMaBHmI0tmz+Ly6GI2i8CIFs7I AcQKBSPIgN1v30q7eyyk8iCFIEe3Nhnw3T+OMQL1JfXclf1lMb7ahbNbqZogHdmxK2ty /l0O8aEzN3sI03lQzzOUZTTuJc8rN6xauCXsnscchxPNFJw3ZIpStX0X/juh0ZDQRRq2 y9+rlLVCSwy9wFpW0rnlZeq+fw3c5iDv4juDgTn+Rl88YvnYAKgPJCvdvVlktNZ65D0C wc4tQbq97rsMpFRMww8C6fEYrESOx+7wDJRBPKeiz47DD/+y/s2DSmWxEXiIOGPG0t4M DYiQ== X-Gm-Message-State: AJIora/K38gYQTxMan1wWt1/YeRjq9tEUVrojtEfwvFu13jmAVuoQr7Z HUsWl/C2+hvkxk6fGNi/qJX4Gzp6xVGYjw== X-Google-Smtp-Source: AGRyM1um/ZYphKQ4PMc9U52w0Pd4qQifHvfQRXIDKaRQ2wsrSWjKS/XPGYG5rR8NpGvfbNnduyy+8w== X-Received: by 2002:a17:907:9608:b0:72f:4b13:c66c with SMTP id gb8-20020a170907960800b0072f4b13c66cmr456301ejc.531.1658506272946; Fri, 22 Jul 2022 09:11:12 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (host-87-14-98-67.retail.telecomitalia.it. [87.14.98.67]) by smtp.gmail.com with ESMTPSA id d19-20020a170906305300b006fe8ac6bc69sm2174025ejd.140.2022.07.22.09.11.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 09:11:12 -0700 (PDT) From: Dario Binacchi To: u-boot@lists.denx.de Cc: Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi , GSS_MTK_Uboot_upstream , Weijie Gao Subject: [PATCH v4 05/14] mtd: nand: Fix MediaTek MT7621 SoC build Date: Fri, 22 Jul 2022 18:09:59 +0200 Message-Id: <20220722161009.2686504-6-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220722161009.2686504-1-dario.binacchi@amarulasolutions.com> References: <20220722161009.2686504-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean From: Michael Trimarchi nand_get_flash_type was reworked in commit 1ca6f9483e9ab5. This change break the Mediatek MT721. Fix it adjust the function call parameters +include/linux/mtd/rawnand.h:32:62: note: expected 'struct nand_chip *' but argument is of type 'struct mtd_info *' + 32 | struct nand_flash_dev *nand_get_flash_type(struct nand_chip *chip, + | ~~~~~~~~~~~~~~~~~~^~~~ +drivers/mtd/nand/raw/mt7621_nand.c:1189:48: error: passing argument 2 of 'nand_get_flash_type' from incompatible pointer type [-Werror=incompatible-pointer-types] + | ^~~~ + | | + | struct nand_chip * +include/linux/mtd/rawnand.h:33:49: note: expected 'int *' but argument is of type 'struct nand_chip *' + 33 | int *maf_id, int *dev_id, Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v4: - Add the patch to the series. drivers/mtd/nand/raw/mt7621_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/mt7621_nand.c b/drivers/mtd/nand/raw/mt7621_nand.c index 2fd89349392b..9763ae6dc51a 100644 --- a/drivers/mtd/nand/raw/mt7621_nand.c +++ b/drivers/mtd/nand/raw/mt7621_nand.c @@ -1186,7 +1186,7 @@ int mt7621_nfc_spl_post_init(struct mt7621_nfc *nfc) int nand_maf_id, nand_dev_id; struct nand_flash_dev *type; - type = nand_get_flash_type(&nand->mtd, nand, &nand_maf_id, + type = nand_get_flash_type(nand, &nand_maf_id, &nand_dev_id, NULL); if (IS_ERR(type)) -- 2.32.0