Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5110449rwr; Mon, 8 May 2023 18:36:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6/L43s6g0wzuU8mVHNLMVI34LQZ6eU2OX76ST64dgl8YWGVknhQFKfFPYujw7WRahfuoAH X-Received: by 2002:a05:6a21:3393:b0:ec:5a61:52a8 with SMTP id yy19-20020a056a21339300b000ec5a6152a8mr17081774pzb.9.1683596177491; Mon, 08 May 2023 18:36:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683596177; cv=none; d=google.com; s=arc-20160816; b=yyhORPnyZoxMNh3+IwtdiLHjeUk7hFoXTv16OiM0xYyjEyU+pa+eMkklm5F9k0Dgzp QZHOOAkHhp9fStZWFq/e9aE/6xKFiomz94tGXGwPhFpu+UVzAmx595kcOO/FOxSEm80B RZKyuUPDp9mh0gvrNbSpg4ESGQ790hQFw2wtfNiy0WEvoracmuCNYMIlGxCLrgpa1rdB cJCC/zboPplRnqUWkODfOFCJhBZkmpQ84cyjXMj1/8i/foOMZK5Y1HVhNHDbsxRqLqvI bIZc7NjkUavoEQ+XKI5SYqAs/Yg8TOeeqTDoO6Q1FD0qtINcjg8zxeU9UWCBXaZ5hLJb E55Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=YEXjvAaUy9xnSNVzKqKkljYIcfNLSw0odHSMxe2EoAg=; b=dfpY6BAJvgxmtKs0vsS3n8BpFC+rn4q+Q8Pt7mri0jLGk2OZv/H6AcFIDosnpVjlyO 2Mum/aEy+iV/lKOdtrLagBPQyBf5lXi2eyZ8AQGXoJy6lU+lwUkSsnCJOVw6+v7VCLC6 F+lab+pkuBTQ1VraAg5fa3c9SBrI/Fu1cZ3ZozgbMtK0zvKcX3Fh8vLNinE3OQchO9d5 3zE+CA9t44BcWtqGvirpmyXDT7ldaN47alQl9fWpXzEVHI2mtFtLeJfJj4IVd3HAcU67 F4uI3QxkK3bz9L3vIncjLyZkA/guzQQmvnOtQJFpg7tMv4Mf+7hALRM7JFnBuewOGPx/ QXxw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l197-20020a633ece000000b0051b85b5a3d1si367464pga.127.2023.05.08.18.36.01; Mon, 08 May 2023 18:36:17 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233270AbjEIB03 (ORCPT + 99 others); Mon, 8 May 2023 21:26:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjEIB01 (ORCPT ); Mon, 8 May 2023 21:26:27 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7E1BF422E; Mon, 8 May 2023 18:26:25 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8CxvOpAoVlkJs4GAA--.11043S3; Tue, 09 May 2023 09:26:24 +0800 (CST) Received: from [10.20.42.35] (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxFLU9oVlkO_9RAA--.16520S3; Tue, 09 May 2023 09:26:23 +0800 (CST) Subject: Re: [PATCH v9 2/2] spi: loongson: add bus driver for the loongson spi controller To: Mark Brown 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, zhuyinbo@loongson.cn References: <20230426071045.20753-1-zhuyinbo@loongson.cn> <20230426071045.20753-3-zhuyinbo@loongson.cn> From: zhuyinbo Message-ID: <795a34c3-bf84-9f43-adc9-edab4d91394b@loongson.cn> Date: Tue, 9 May 2023 09:26:21 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8BxFLU9oVlkO_9RAA--.16520S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7ZF18Ary5ZF4rXr1rXr1UJrb_yoW8Xr1fpa yYkrZxCw48JrWkGwnay393Ca1Y9393J3y5J3yxK3W7CFWDKa48Xw1DXFy5uwsrJF1jvFyY g348ua1DWF15ZF7anT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b4AFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUXVWUAwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r1I6r4UM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Cr0_Gr1UM2 8EF7xvwVC2z280aVCY1x0267AKxVW8JVW8Jr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAq jxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcV AFwI0_Jrv_JF1lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG 0xvEwIxGrwCYjI0SjxkI62AI1cAE67vIY487MxAIw28IcxkI7VAKI48JMxAIw28IcVCjz4 8v1sIEY20_WwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I 3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIx AIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAI cVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2js IEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU1tl1PUUUUU== X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,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 在 2023/5/8 下午9:20, Mark Brown 写道: > 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 ‘loongson_spi_init_master’: > /build/stage/linux/drivers/spi/spi-loongson-core.c:222:31: error: implicit declaration of function ‘of_node_get’ [-Werror=implicit-function-declaration] > 222 | master->dev.of_node = of_node_get(dev->of_node); > | ^~~~~~~~~~~ > /build/stage/linux/drivers/spi/spi-loongson-core.c:222:29: error: assignment to ‘struct device_node *’ from ‘int’ makes pointer from integer without a cast [-Werror=int-conversion] > 222 | master->dev.of_node = of_node_get(dev->of_node); > | ^ > /build/stage/linux/drivers/spi/spi-loongson-core.c:242:13: error: implicit declaration of function ‘of_get_property’ [-Werror=implicit-function-declaration] > 242 | if (of_get_property(dev->of_node, "spi-nocs", NULL)) > | ^~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors These errors was due to the function of_node_get and of_get_property loss a declaration and I will add "#include " in spi-loongson-core.c to fix it. Thanks. >