Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1118407pxf; Thu, 8 Apr 2021 23:53:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ9WKxlVr3dyZnMU4iFcmnfLQippj0wVJs7rIX47XOcuATeqmi+fjKXfJUBKPJ/w+khDNF X-Received: by 2002:a17:90a:5211:: with SMTP id v17mr12560909pjh.53.1617951200925; Thu, 08 Apr 2021 23:53:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617951200; cv=none; d=google.com; s=arc-20160816; b=OOb/+qH7LSFwe8is0WqwNQlfahStIa8j0H8g4ggOqSR+SNLZhsHjYDut52AGvOF5Rv /nYODCJXXnmCJjAKuTICUCJ8yUj0YEFlyTeepfC/9J0WDA8cHPtis85Mptwb/xGE4kpH iduXX7JJUnAhWG471Xhjo7XoIGUBDSh3F1BjYSQ26q4gkG4c3IT+zyJ2pt4jK2VR4uJg F7gmUfDi0z3Ega+tkW04ig2orpO1iRfNsFfJlF8Bcg5fX2kPvxiSNsEGt3cdLTnAsg7T X7F612dDyo/8fcFdhajr/32hDiJFzKTiXjyV3PEAWd3EgXRLYwKqZ9CXZ1bfzmgTzLti fWvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=rYPo4mX0WldYFYjxCTprXaV0e7tNCYMspV9hCbuYOO4=; b=JYOoLlVo0QqwSwhxOGayoZ8BwLG5lnsiaWoD/Z8UzkSpKt3nqr6jpHdJuv/zrlRoHR AhQaWUTczbszXtm5NJ5vnS0gFqavdO4GUGWm6IBOGJgzp64+SbA2jcQPjvRDlVUvLzxV mafqQvFhLVniTtSCzs7lbIXvZ1NcBBEAUKxBuworjN+ad+fBRWsxKm+B4d4ouimMpD+S 1qyHEUHw0j5eWJqUk3chBO0H+lO7BwjS8DB4A7xwBHVE9wdDr5/M/NJ7daZ/j95VF5zj K818IIZA84yc89CWogUMip6pykPOxSp0UMaHjn7BeAgHt131caj7RQwGfIfIq7Oq7k8t BDog== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 95si2170099pla.43.2021.04.08.23.53.08; Thu, 08 Apr 2021 23:53:20 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233501AbhDIGw0 (ORCPT + 99 others); Fri, 9 Apr 2021 02:52:26 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:16496 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233335AbhDIGwT (ORCPT ); Fri, 9 Apr 2021 02:52:19 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FGpcj16dFzPpGG; Fri, 9 Apr 2021 14:48:37 +0800 (CST) Received: from [10.67.100.236] (10.67.100.236) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.498.0; Fri, 9 Apr 2021 14:51:21 +0800 Subject: Re: [PATCH -next] ARM: spear: Fix build error with CONFIG_ARCH_SPEAR3XX To: Viresh Kumar CC: Viresh Kumar , Shiraz Hashim , Russell King , , , References: <20210409015515.258653-1-chenlifu@huawei.com> <20210409040315.vc55eogaxs4zu4xb@vireshk-i7> From: chenlifu Message-ID: Date: Fri, 9 Apr 2021 14:51:21 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <20210409040315.vc55eogaxs4zu4xb@vireshk-i7> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.100.236] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2021/4/9 12:03, Viresh Kumar ะด??: > On 09-04-21, 09:55, Chen Lifu wrote: >> commit 77f983a9df42 ("spi: pl022: Use GPIOs looked up by the core") >> deleted 'struct pl022_ssp_controller' member 'num_chipselect'. >> We get build error when CONFIG_ARCH_SPEAR3XX is set: >> arch/arm/mach-spear/spear3xx.c:42:3: error: 'struct pl022_ssp_controller' has no member named 'num_chipselect' >> 42 | .num_chipselect = 2, >> | ^~~~~~~~~~~~~~ >> arch/arm/mach-spear/spear3xx.c:42:20: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion] >> 42 | .num_chipselect = 2, >> | ^ >> >> Fix the issue by deleting the initialization of 'num_chipselect' >> in spear3xx.c. >> >> Fixes: 77f983a9df42 ("spi: pl022: Use GPIOs looked up by the core") >> Reported-by: Hulk Robot >> Signed-off-by: Chen Lifu >> --- >> arch/arm/mach-spear/spear3xx.c | 10 ---------- >> 1 file changed, 10 deletions(-) >> >> diff --git a/arch/arm/mach-spear/spear3xx.c b/arch/arm/mach-spear/spear3xx.c >> index 8537fcffe5a8..f83321d5e353 100644 >> --- a/arch/arm/mach-spear/spear3xx.c >> +++ b/arch/arm/mach-spear/spear3xx.c >> @@ -30,16 +30,6 @@ struct pl022_ssp_controller pl022_plat_data = { >> .dma_filter = pl08x_filter_id, >> .dma_tx_param = "ssp0_tx", >> .dma_rx_param = "ssp0_rx", >> - /* >> - * This is number of spi devices that can be connected to spi. There are >> - * two type of chipselects on which slave devices can work. One is chip >> - * select provided by spi masters other is controlled through external >> - * gpio's. We can't use chipselect provided from spi master (because as >> - * soon as FIFO becomes empty, CS is disabled and transfer ends). So >> - * this number now depends on number of gpios available for spi. each >> - * slave on each master requires a separate gpio pin. >> - */ >> - .num_chipselect = 2, >> }; > > A patch is already applied by Mark to fix this issue. > Thanks. --- Chen Lifu