Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp786714rwd; Thu, 25 May 2023 04:04:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7PChzB2jWzByJiK5Fuh8ZgrQbbS0xmUx229/yWj8enN1zswCGtGF7HOa9fjC7m83zCz4t9 X-Received: by 2002:a05:6a20:938e:b0:10b:7243:c212 with SMTP id x14-20020a056a20938e00b0010b7243c212mr17602660pzh.42.1685012688300; Thu, 25 May 2023 04:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685012688; cv=none; d=google.com; s=arc-20160816; b=Vect2q2LEhcN8a5C62EssyJl7mHZEnOmdQ2XRMfgB5JnuZukokrZgz9rrSkX6pjz6S b4r6T1P1DTFq6g+lHJGadacJk5F9oxFUAo1a6xQ7T3MLWh/G+MHOwxSXONzz3vIEcSrP WDO/tczhY+PAvpBKCS1Yq6jAMURuY5Ng1qlfaYqgMvc2keq3fQ6kbSR9Nc+9HAQocEzK uX7XRP3Dzwxyy3bm0d5pXKJmBFxkV/icvt1fe96WPKnX6fZ+K1bR9NCef/BoAX2Jwxto onsDdD+BKkaj2I6bLW7dX6aBjcLIbmSMqNMWPQ4rc6kExC2Q4qaZjV2TWS6xWj3mWA+U oEwQ== 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=EDYxj0mWfZesGMzjdGRM1IvlRssBLaMx7Db8jSGZjpc=; b=fUVfPDBi7GdLyT5vRyBtgrwetTczCFVAVb93n6a2KLPbsz0+59HDz0OqXYQZGlOlhF gjPl0rpowrVcaHeIrSjvfTBdll4V+V0wDT5iskHTsu7KdIVCtG50KNJ+dSG8AEx1jSRS RcmGL+6ZyVblpYF7DVuNaFAjBxGXvKPm9PVEwIHjozpCfIarloEvoFcY4oiT2HwnmCYI x7TQVJh9VM28Ri7mHK+bMlEsPlxNfh9w7EnaKN8EElk/Gpma9UpDrCdBfbn3u9P41L6s GRSkwydISfEMbM0KAq5mVMRrIrjy3mjRvwJBwzO3uGjgh2hsM636PwbCpPf0APUDHanE muUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gbFjn/Pf"; 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 j11-20020a633c0b000000b0053476becd25si322955pga.285.2023.05.25.04.04.32; Thu, 25 May 2023 04:04:48 -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="gbFjn/Pf"; 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 S240614AbjEYKdf (ORCPT + 99 others); Thu, 25 May 2023 06:33:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbjEYKde (ORCPT ); Thu, 25 May 2023 06:33:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27FF010B for ; Thu, 25 May 2023 03:33:34 -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 AF0F661382 for ; Thu, 25 May 2023 10:33:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4966C433D2; Thu, 25 May 2023 10:33:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685010812; bh=lastZx5SZ9z5uaXi7f0nP+cp3xVMrDoq188o753MBdQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gbFjn/PfAY/ZC+BnbBH6Prx+vdzb0oTFDqpkPMJpHiHwGw3q1F+aWJ+KTL88cE90a obSlu80dtiN2iJ52db6wbnHHeVnla8cRFSV3JdTPNb5ozbtDTLAWQ+H6YKeMvqGJ4E Di+SH0YiqKLv7qKZKx8V5NdCC5KdxU1/Sjv2ZJdMPdTWIaoWAnFGlIZayI3DDG+Swl JqnPtgtUFNWZLadLViX8W31azH8Dt/972ymQqN89ea7jh8bg1W6MgaJ+sf17xSl7WT cenMfs4Q6uUycDWPd0q9VkwqE8vlhsxkji/respup7qXx/voWnjJKo21X+49hyf+JX OOv6xq8ooMSmg== Date: Thu, 25 May 2023 11:33:28 +0100 From: Mark Brown To: Geert Uytterhoeven Cc: Liam Girdwood , Osama Muhammad , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] regulator: core: Fix more error checking for debugfs_create_dir() Message-ID: <22d1dd88-6bf4-444a-8ea1-61ef627ca7a0@sirena.org.uk> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1Ew73XuzqX1/lYTh" Content-Disposition: inline In-Reply-To: X-Cookie: Enjoy yourself while you're still old. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 --1Ew73XuzqX1/lYTh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 24, 2023 at 02:22:17PM +0200, Geert Uytterhoeven wrote: > In case of failure, debugfs_create_dir() does not return NULL, but an > error pointer. Most incorrect error checks were fixed, but the one in > create_regulator() was forgotten. This breaks the build: /build/stage/linux/drivers/regulator/core.c:1916:11: error: expected identi= fier=20 or =E2=80=98(=E2=80=99 before =E2=80=98else=E2=80=99 1916 | } else { | ^~~~ /build/stage/linux/drivers/regulator/core.c:1933:9: error: expected identif= ier o r =E2=80=98(=E2=80=99 before =E2=80=98if=E2=80=99 1933 | if (!regulator_ops_is_valid(rdev, REGULATOR_CHANGE_STATUS) = && | ^~ /build/stage/linux/drivers/regulator/core.c:1937:9: error: expected identif= ier o r =E2=80=98(=E2=80=99 before =E2=80=98return=E2=80=99 1937 | return regulator; | ^~~~~~ /build/stage/linux/drivers/regulator/core.c:1938:1: error: expected identif= ier or =E2=80=98(=E2=80=99 before =E2=80=98}=E2=80=99 token 1938 | } | ^ --1Ew73XuzqX1/lYTh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmRvOXcACgkQJNaLcl1U h9BgKgf+IxF8wNfDs3nf1qMktu3v4cIvlrN/cvCtFlQohBYLfBxs2I9E3qcORK0c KvBo194IcIal+LDov9i6/CMMjkmvmR4VgtD3TplTb18NKBBgtYr6vi4LTVvmiqVZ tWp6KtaAtEazfLIlr4ysGIBK69KTzdD4ghJAFmaaIvjfVuQ7E9CrR/Elu59Ru487 78+pURiWPCajru5USKgj1ve3gvITJ1q+I2xECqXHLgiLP/CkqXQ1RxF8RfnxNpzx yOMmyLfzaMvRsYbTM1yZ1madTjdo1f4WfVhk3i3tS1n8aQ3xIRXWo3z8ecYPcAyV MgIjjUXtZWCI2ItOEI0Oy2wkl2SQXA== =gwy9 -----END PGP SIGNATURE----- --1Ew73XuzqX1/lYTh--