Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4338950rwr; Mon, 8 May 2023 06:27:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6v3HwNlNQ4W0eUahMOrilFblyi5ntNdu0LqtdTROtNMEtVF8dYZRhTSWniLefT+YDhAR4J X-Received: by 2002:a05:6a21:3401:b0:f6:4c16:f7fb with SMTP id yn1-20020a056a21340100b000f64c16f7fbmr11238852pzb.47.1683552478917; Mon, 08 May 2023 06:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683552478; cv=none; d=google.com; s=arc-20160816; b=YTy4CH7BWKizAFjPfukVHgdKIu6s5mx1GN2P9DXWKOfZRl5Zeejg1M16CgOKj/kwX9 7uxx0AREHf/GzmvsUDBuFYl+6O5H9xWCa6mR7hQKRXrIQfBSjvmmsG9XRFqtawqXyXpE mrSRca8nzCIQACVrR+MXHGNMkUnf0/kxDAriR1AbI0d0UAaTp0Mjr9TEp8TSNRqxHzf6 CsIj8wZGi4CD48OApJGONV/7KuZpz52ZOBAD4keZgs31CATAaGsH2EGlTuWYNU5fzgqf lc9wghHP9V1n+YkLz4N77yIFcpEloDi/y0aYArPDz25nINbIgQGOZyZoLFEG/vqhmZ4M dVIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=a4zo09hIsdB8vPGzsYmlZtWC45L9Daup8GAxRG98pMc=; b=m2pHgGx2Dyxeuese9wJQEsbileuhKiX+ij0lc7RZKzl3LuuiXxA+c3Pwz5ntikeZex ydDfQm8SJNyUmL21/CGlokY5+vq8o5mZc7HGODgyNz4qVX3RYoelXsAqqExf5cNwq1LV gnOdZVrtXtHEUmve6iE0ufYxpISIVaJDaJoqI1HEb5adH5idQoIyN+MdWZmP80B8GLkL KuEuKty+ud1jc92ko81wDmNGw7qAxxfC3bWOS3UWK5Uo983vtxTMddv33tRmImR+K27h FeGJ7roCLxSw5MbrJvr01ZauuE6uE/Pv2jPIPo5bjAG+Rhk/6N+7HsGad8gjrkwnhWcc 2NqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SDESLVfE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f29-20020a63381d000000b00514477c4403si8679007pga.310.2023.05.08.06.27.44; Mon, 08 May 2023 06:27:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SDESLVfE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233874AbjEHNUj (ORCPT + 99 others); Mon, 8 May 2023 09:20:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233727AbjEHNUh (ORCPT ); Mon, 8 May 2023 09:20:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 753E633853; Mon, 8 May 2023 06:20:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 844DC617FB; Mon, 8 May 2023 13:20:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86072C433EF; Mon, 8 May 2023 13:20:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683552007; bh=qxFXyXiRdVLI2aihpdzgvoA6SSxPIdCsgLDWxMdXX5o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SDESLVfEzhSqWVZXhUfs6uC5deUwcGU3S2WRTAYeCbTYSo11M9ke2xWtgxCkxK/jH zseYJ5kcIgk01/TUw0HouGhrGsR2ro7tLcbpIWXiku1Ftpy5MkGLNkUVysAAJfTl3M CU3Mj5AlTpTjCGuKpcl9EZuV+7HMlFQCqGedxrGWko3yG1uii8CUJJGBxupTa7/Fgo ZGzU6I4xF9fGk1yMeyOPDhzGhrvJUQ2OyuIfsutzEqsvBLTCw2JJJ1ta8e8/JBjT8c I7tBoJOxRHAM0Ui58UKO8Tu7WfOAp4nogSRpFaoSASmVZzzrhMndR8/yhjsExAP5i7 Qfwxuzf4IuCnw== Date: Mon, 8 May 2023 22:20:04 +0900 From: Mark Brown To: Yinbo Zhu Cc: Rob Herring , Krzysztof Kozlowski , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jianmin Lv , wanghongliang@loongson.cn, Liu Peibao , loongson-kernel@lists.loongnix.cn Subject: Re: [PATCH v9 2/2] spi: loongson: add bus driver for the loongson spi controller Message-ID: References: <20230426071045.20753-1-zhuyinbo@loongson.cn> <20230426071045.20753-3-zhuyinbo@loongson.cn> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XLm4P5IUAz3phiU9" Content-Disposition: inline In-Reply-To: <20230426071045.20753-3-zhuyinbo@loongson.cn> X-Cookie: New customers only. X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --XLm4P5IUAz3phiU9 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 26, 2023 at 03:10:45PM +0800, Yinbo Zhu wrote: > This bus driver supports the Loongson spi hardware controller in the > Loongson platforms and supports to use DTS and PCI framework to > register spi device resources. This breaks an x86 allmodconfig build: /build/stage/linux/drivers/spi/spi-loongson-core.c: In function =E2=80=98lo= ongson_spi_init_master=E2=80=99: /build/stage/linux/drivers/spi/spi-loongson-core.c:222:31: error: implicit = declaration of function =E2=80=98of_node_get=E2=80=99 [-Werror=3Dimplicit-f= unction-declaration] 222 | master->dev.of_node =3D of_node_get(dev->of_node); | ^~~~~~~~~~~ /build/stage/linux/drivers/spi/spi-loongson-core.c:222:29: error: assignmen= t to =E2=80=98struct device_node *=E2=80=99 from =E2=80=98int=E2=80=99 make= s pointer from integer without a cast [-Werror=3Dint-conversion] 222 | master->dev.of_node =3D of_node_get(dev->of_node); | ^ /build/stage/linux/drivers/spi/spi-loongson-core.c:242:13: error: implicit = declaration of function =E2=80=98of_get_property=E2=80=99 [-Werror=3Dimplic= it-function-declaration] 242 | if (of_get_property(dev->of_node, "spi-nocs", NULL)) | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors --XLm4P5IUAz3phiU9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmRY9wMACgkQJNaLcl1U h9DhnAf/Rhh0Q9tyOwxp7DdPW2Ys4Rcuq4CES/hgxOKXyxUqTn1HsF0H9VL2/P1w KqLKoqzD1+Y24twdKcTh100SonViZqf6xMJSAB0U+RfyLcErUwafjmckjQe0pmEH Yigc7BExtn4GY7hK+IeSE3XbUX17Tk6WLcn0t7khwOcpo2KfaeCrea/ZJtlMt1eR /PAv/6QL64kBj6j23F/EtzvCTx9yXGPi3oa1sh9D/c/EkkwQhbdDJv1zMW6pRN9T A6nyb+wUq+vwN03XnyqWu8cjHd6Y9ExhDjnELm9jbxXr5kARlfK/8rihNL+PDjzT xuTS6cmhMfWsXisDtixgKfRf4UBFeQ== =z8qJ -----END PGP SIGNATURE----- --XLm4P5IUAz3phiU9--