Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp74574ybh; Tue, 21 Jul 2020 16:46:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuT8TM+6A42V4+qwggEN4USI0/8pMm3xkOxwaDj1urj1JmDVFmV4hKTGCxtpDn0fp3dFng X-Received: by 2002:a17:906:a2d7:: with SMTP id by23mr26963242ejb.226.1595375193574; Tue, 21 Jul 2020 16:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595375193; cv=none; d=google.com; s=arc-20160816; b=fSvnw55deBq0oci1O72LJK8BysWPZ+p0OsL9IYdj7JzUjMN/FHbXG9w92dJA4cihQU jkd4yFtUT/qLqLitAuPVz2lqGqh+rFFmXRLH8Fi9qK8Y9BDsHtkNIlIASMEzllqrQhP8 LWdkYep/nQx27RkLNXJ9MSbsRhPlh/v9fwBT2TbBTFghicKGwU/j5A2oGT0DmwRSAGbv gyC/AeZhYdPOMz+D0UpTV+xHt/p7MH9z0VtBKOtvNbPTdciaIZlL8m6B9aSBVMCeJr25 cOfSFARvx/l2iDleFH0/Y1ne9KGltBP/VMBUTgLKm/qpOyK8OIqodYS4NNtLEw7/Ln3z Mjnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=x2MuJ/lt7QWmmAOQwqFOkq7OStdzm2KknsAcJUNxSE8=; b=FYPIBvC9L8pdCsqbvyZTm75O/dWNtpg9GTY+JoqWxTH7N2gnF6UFCO/dVApK3kW7Ok m9KTz7xSbm/R7s8SuT9kb+XN/AU+OKapIfW/ps5chdJJYSTdsuOZK5hIxzUJl/8DT8CZ mPn2HrzBRh8Hd4O/ciq3XWgQWCZN9pusWqz5TnDkR65LvVs9fdSS6jpsB8cBzmdFT1NB xsFpmQ3j66LOm5oZnt0DfLwZEVB1OYg6zFpXZ8qvTvsLZbqTC+177khXkxEW1exeuSox HKM3L4VE2QhyiCC9o7ectq+5ybeunLISxMSNV7VrRoXnGNzjPw8D5Pz74GKasNNJ7IVf vLpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0HxLDp8l; 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 v9si13622506eja.482.2020.07.21.16.46.11; Tue, 21 Jul 2020 16:46:33 -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=0HxLDp8l; 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 S1728973AbgGUXpM (ORCPT + 99 others); Tue, 21 Jul 2020 19:45:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:51458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbgGUXpL (ORCPT ); Tue, 21 Jul 2020 19:45:11 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (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 BB9182077D; Tue, 21 Jul 2020 23:45:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595375111; bh=vNftebKTkLY/PaLWDa1NczN0BADcuqUpTe6BpSEV4N8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0HxLDp8lVuLRUyBfdjW7oA5QrB2FpdQwhKf4zR6aWIqr71bUfr8ZPp/IJ2kvFTwYf buGOYSLTFpMsks1JoE3U2wdEvIkZ+ew4QCmPylDsB5OA3erwlV1KPF4Qg0rEFzAgaA I+yJ8GAt/q3LGPKUMgccQD1ImgMTb06uY1HrmUpk= Date: Wed, 22 Jul 2020 00:44:58 +0100 From: Mark Brown To: Clark Wang Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] spi: lpspi: add NULL check when probe device Message-ID: <20200721234458.GA16769@sirena.org.uk> References: <20200714075251.12777-1-xiaoning.wang@nxp.com> <20200714075251.12777-3-xiaoning.wang@nxp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline In-Reply-To: <20200714075251.12777-3-xiaoning.wang@nxp.com> X-Cookie: Knowledge is power. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 14, 2020 at 03:52:48PM +0800, Clark Wang wrote: > Add a NULL check for device node and lpspi_platform_info when lpspi > device probe. This has build problems, I guess there's been a context change that's caused issues along with causing the later patches to not apply: /mnt/kernel/drivers/spi/spi-fsl-lpspi.c: In function 'fsl_lpspi_probe': /mnt/kernel/drivers/spi/spi-fsl-lpspi.c:824:7: error: 'np' undeclared (first use in this function); did you mean 'up'? if (!np && !lpspi_platform_info) { ^~ up /mnt/kernel/drivers/spi/spi-fsl-lpspi.c:824:7: note: each undeclared identifier is reported only once for each function it appears in /mnt/kernel/drivers/spi/spi-fsl-lpspi.c:824:14: error: 'lpspi_platform_info' undeclared (first use in this function); did you mean 'spi_board_info'? if (!np && !lpspi_platform_info) { ^~~~~~~~~~~~~~~~~~~ spi_board_info --dDRMvlgZJXvWKvBx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl8XffkACgkQJNaLcl1U h9A0Mwf/dMlzfr1HWRvFHS+X/pn/UO1qlC/rqX0b3blAFFAKcPfOzkJbCG73V5kv rbbvGx+Hrq3EO7bX3EgPLmY4expMyV6QZ4XhuhvpBqOoQ9ouxULVbpSdO9TQWkGN 9UTjIVq7nMX64In+0v3qYmn/FYGMlZhXQi9wuS6rwzKH0OHBGOcawtKPo2D9JeD6 Y2DnmiS7v+/VrVd1FB6VZ8O+f4HIzIk+5HdiPAMw2ugzx1Vf7xqc2a8XF/YZQLtC OtNodZ+5fx24aBYvxjdI9UaDQENfjxgu0T0iq+kcla3Qjs+jGPLhns1x8ng2W+Fo 8ai/HRqPTd3/fStOm4HxNRzOLARJYQ== =WCQf -----END PGP SIGNATURE----- --dDRMvlgZJXvWKvBx--