Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3572942ybl; Tue, 21 Jan 2020 03:19:15 -0800 (PST) X-Google-Smtp-Source: APXvYqyLbpzNalUXTRwUZfzJpLdtj4ccoxlI/f4X+N4kj1ktlXdT/UqW1sWPrXaqzE0ct61xjFI/ X-Received: by 2002:a9d:53c4:: with SMTP id i4mr3364258oth.48.1579605555257; Tue, 21 Jan 2020 03:19:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579605555; cv=none; d=google.com; s=arc-20160816; b=0pKudtgcgY0dkWw1QuopWF9Nhj2Kp5hpRzMxCy7XZbrf2MtA/uZW5C1tAHSFq/NzBF nH0MhIbaAf30l2MLI6hOuRX8gzS+kvWzMjS9OK0rFf22/DsAEBTVUEIjDAtpWZcpMo1b SllPzC+AtTz6zX51MIWpdeE49pctzNHd208nZ6epMXVZZLZ2n1Wib+IgkPo4EMAlg4gx 7fLseA59Y6Y/Q49KDffSiIroPKQT/hw7k6XYmevWnlyJjfvfJVZSu/BazdEVwWe7Pdhh 4OXBsN9DxS5VPKCB2ukANNa/JcH/2er9BW6d4aPoi7Fgkl7NyTePEo8KxA95J3sVhoCD 7f0g== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=DLQUxKEDRSQOTErm5zpo8u3vhrzXVWY3TjZylONecuw=; b=Rf+FeZPfqhKHj+4f8BAp+iI/WOgDEDIJqv3bUQvIXWcShnzeGvA5IqkyHjOIHRQiMN s28wpqo1SnLKgA6CM/EIvKhJ9NAzjo055A7V4Aofz1zgkp6dfy/Gqb5fG3fROc+2whi2 CjZF0WTNOwSIqLh45uSfLynrLQGr9REoP/3iZaSodMobYOlq+9Dku7qElSeKjY0v3MED jilb36F3KczDiDBag9NLnq2+6KlEzRGbkd2GPyQHdu5mytI9udY1bjA8lxcbZLjIbEmZ Henm2Yn0uhfpqjoLZU04kx0E7jPhEqZwGkujHoesq1d5nlpsk0YoWEYfmzduVOb7PIKL mGYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17si18148206oij.136.2020.01.21.03.19.03; Tue, 21 Jan 2020 03:19:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728797AbgAULQy (ORCPT + 99 others); Tue, 21 Jan 2020 06:16:54 -0500 Received: from smtprelay0087.hostedemail.com ([216.40.44.87]:52018 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726473AbgAULQy (ORCPT ); Tue, 21 Jan 2020 06:16:54 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 791E718224D9C; Tue, 21 Jan 2020 11:16:52 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::,RULES_HIT:41:355:379:599:901:960:967:973:982:988:989:1260:1263:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2194:2198:2199:2200:2393:2525:2553:2561:2564:2682:2685:2828:2859:2892:2895:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3608:3622:3657:3770:3865:3867:3868:3871:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:4659:5007:6997:7974:9025:9388:10004:10049:10400:11026:11232:11473:11658:11852:11855:11914:12043:12296:12297:12555:12740:12760:12895:13019:13069:13311:13357:13439:14094:14096:14181:14659:14721:14764:14775:14777:14849:21080:21627:21691:21939:30054:30075:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: toys51_3bc2dfa430738 X-Filterd-Recvd-Size: 2336 Received: from XPS-9350.home (unknown [47.151.135.224]) (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA; Tue, 21 Jan 2020 11:16:50 +0000 (UTC) Message-ID: <24012ba289823e9e38c2f89116a5f61581ef3909.camel@perches.com> Subject: Re: [PATCH -next] powerpc/maple: fix comparing pointer to 0 From: Joe Perches To: Segher Boessenkool Cc: Chen Zhou , benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, nivedita@alum.mit.edu, tglx@linutronix.de, linuxppc-dev@lists.ozlabs.org, allison@lohutok.net Date: Tue, 21 Jan 2020 03:15:49 -0800 In-Reply-To: <20200121074723.GF3191@gate.crashing.org> References: <20200121013153.9937-1-chenzhou10@huawei.com> <618f58cd46f0e4fd619cb2ee3c76665a28e30f4e.camel@perches.com> <20200121074723.GF3191@gate.crashing.org> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.34.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-01-21 at 01:47 -0600, Segher Boessenkool wrote: > On Mon, Jan 20, 2020 at 05:52:15PM -0800, Joe Perches wrote: > > On Tue, 2020-01-21 at 09:31 +0800, Chen Zhou wrote: > > > Fixes coccicheck warning: > > > ./arch/powerpc/platforms/maple/setup.c:232:15-16: > > > WARNING comparing pointer to 0 > > > > Does anyone have or use these powerpc maple boards anymore? > > > > Maybe the whole codebase should just be deleted instead. > > This is used for *all* non-Apple 970 systems (not running virtualized), > not just actual Maple. OK, then likely this Kconfig description should be updated (and the http://www.970eval.com link is no longer about powerpc) $ cat arch/powerpc/platforms/maple/Kconfig # SPDX-License-Identifier: GPL-2.0 config PPC_MAPLE depends on PPC64 && PPC_BOOK3S && CPU_BIG_ENDIAN bool "Maple 970FX Evaluation Board" select FORCE_PCI select MPIC select U3_DART select MPIC_U3_HT_IRQS select GENERIC_TBSYNC select PPC_UDBG_16550 select PPC_970_NAP select PPC_NATIVE select PPC_RTAS select MMIO_NVRAM select ATA_NONSTANDARD if ATA help This option enables support for the Maple 970FX Evaluation Board. For more information, refer to