Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp647087ybt; Fri, 10 Jul 2020 08:53:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXl9923QhOiSUWgLYdLT2lelyx0fHulRwH4kzouwL1NeUEECDjsdWRp3tSKwSkmn0wYVCl X-Received: by 2002:a17:906:fa92:: with SMTP id lt18mr49938356ejb.534.1594396417841; Fri, 10 Jul 2020 08:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594396417; cv=none; d=google.com; s=arc-20160816; b=Bk+82Q8ZURHrGSiV8tYZDGusJ8D2xPpRrryAf0j6RhpjSCjLhVBH2noyYnZrVdPeVo V33YnbvNj1xGRPzeEtoRAAZnCknIJhLnDCXk3d46r0SLnKG3Wdr9ntbq71GaWYjZbFpP JnmwUZUmTXkpRrIiadWXgZRS3ClE/7nPdFg/Wpl2QBC3IswKzf6OIFp+UP4dWwgpJzDA kA1jRTd2XWmGVnercYDvVRYIY+kJtSdUyQ+I0LtEz1uVLPVsic0oCIuMy8Z3lWWxFLIQ MZTaP310WBVLgtwIBoTHgYGQjokWLhC1pNrf+iDWbU3RYqMJXpkzsOGs0/3fNLowUT3N 6K2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=C/wTK6CUcZPNAeRey4JpxNQHj423S2yAdHbyRDSzkJo=; b=GnDADh6h0HMavWcWTwL+dIHS+CbvSwjZRoZqAjLkZR2QnkyEHHRuUhsuLodBKINzCr raFYCrk5E5cSLbdXQYKe9cbEil+vsyA0sQ+F0kaYkggKkvR7KDxE3dvOIRbYUYCAU/Je z820sWoVmHxpaO+QEOJiXNe5rrPaUFrnJOFlorFu6ZqNPDq2bREmu+hs7TXsqhW2/SYE RUcBIKz2TeL0Nr4a8mqlrYgboA2Ejc68zuYfYLd/Ofkn/t3KZ0Hkso3bCMApaZIeTFjU pRN+3/UbV+5EaFCk0iLhi1bosIN/0j0ue2O8c0ibFeCrChufCcrm2F6gmTu5XFTbQ5QI LfpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=z+X3vaxA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r22si4276606edq.411.2020.07.10.08.53.14; Fri, 10 Jul 2020 08:53:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=z+X3vaxA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728378AbgGJPu7 (ORCPT + 99 others); Fri, 10 Jul 2020 11:50:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:33378 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726872AbgGJPu7 (ORCPT ); Fri, 10 Jul 2020 11:50:59 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D7EAF20720; Fri, 10 Jul 2020 15:50:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594396258; bh=Yx9JX9RFWYc1ihGffCUzZCZOndU+VTdYgQo0UHVe01g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=z+X3vaxA8J8ZmLiS4Y7CP4mKS2S2CxhxEvqsFrks0DJdjLxr8D+6bpCPC3wkL6Xo7 whowKugX9FZEwuY/cEQ946S7xfYRx2IpZGRTMM5eobaDPrA6983yxuDdBhWsLSclHL skxffECdWcWTYF+/zd7QClgOyAzq+jMImsW+kTjQ= Date: Fri, 10 Jul 2020 08:50:56 -0700 From: Jakub Kicinski To: Zhi Li Cc: peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, davem@davemloft.net, mcoquelin.stm32@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, lixuefeng@loongson.cn, chenhc@lemote.com, jiaxun.yang@flygoat.com, yangtiezhu@loongson.cn, Hongbin Li Subject: Re: [PATCH] stmmac: pci: Add support for LS7A bridge chip Message-ID: <20200710085056.6deb411a@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <1594371110-7580-1-git-send-email-lizhi01@loongson.cn> References: <1594371110-7580-1-git-send-email-lizhi01@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 10 Jul 2020 16:51:50 +0800 Zhi Li wrote: > Add gmac platform data to support LS7A bridge chip. >=20 > Co-developed-by: Hongbin Li > Signed-off-by: Hongbin Li > Signed-off-by: Zhi Li This appears to not build with allmodconfig: ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:22:62: note: expected = =E2=80=98struct plat_stmmacenet_data *=E2=80=99 but argument is of type =E2= =80=98struct plat_stmmacenent_data *=E2=80=99 22 | static void common_default_data(struct plat_stmmacenet_data *plat) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:145:6: error: invalid u= se of undefined type =E2=80=98struct plat_stmmacenent_data=E2=80=99 145 | plat->bus_id =3D pci_dev_id(pdev); | ^~ ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:146:6: error: invalid u= se of undefined type =E2=80=98struct plat_stmmacenent_data=E2=80=99 146 | plat->phy_addr =3D 0; | ^~ ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:147:6: error: invalid u= se of undefined type =E2=80=98struct plat_stmmacenent_data=E2=80=99 147 | plat->interface =3D PHY_INTERFACE_MODE_GMII; | ^~ ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:149:6: error: invalid u= se of undefined type =E2=80=98struct plat_stmmacenent_data=E2=80=99 149 | plat->dma_cfg->pbl =3D 32; | ^~ ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:150:6: error: invalid u= se of undefined type =E2=80=98struct plat_stmmacenent_data=E2=80=99 150 | plat->dma_cfg->pblx8 =3D true; | ^~ ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c: At top level: ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:156:11: error: initiali= zation of =E2=80=98int (*)(struct pci_dev *, struct plat_stmmacenet_data *)= =E2=80=99 from incompatible pointer type =E2=80=98int (*)(struct pci_dev *,= struct plat_stmmacenent_data *)=E2=80=99 [-Werror=3Dincompatible-pointer-t= ypes] 156 | .setup =3D loongson_default_data; | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:156:11: note: (near ini= tialization for =E2=80=98loongson_pci_info.setup=E2=80=99) ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:156:32: error: expected= =E2=80=98}=E2=80=99 before =E2=80=98;=E2=80=99 token 156 | .setup =3D loongson_default_data; | ^ ../drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:155:51: note: to match = this =E2=80=98{=E2=80=99 155 | static struct stmmac_pci_info loongson_pci_info =3D { | ^ cc1: some warnings being treated as errors make[6]: *** [drivers/net/ethernet/stmicro/stmmac/stmmac_pci.o] Error 1 make[5]: *** [drivers/net/ethernet/stmicro/stmmac] Error 2 make[4]: *** [drivers/net/ethernet/stmicro] Error 2 make[3]: *** [drivers/net/ethernet] Error 2 make[2]: *** [drivers/net] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [drivers] Error 2 make: *** [__sub-make] Error 2