Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4126262pxb; Tue, 2 Nov 2021 04:42:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7UphmurcORRIViGNmOBEIqMB3jaOz90OGd/JFr1sx5QN+w2RjuidfWxTu3Zt0XZbv1BOB X-Received: by 2002:a05:6638:1494:: with SMTP id j20mr27308852jak.58.1635853322312; Tue, 02 Nov 2021 04:42:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635853322; cv=none; d=google.com; s=arc-20160816; b=V6C3LDWWAzM2uSYp7X3qpurTRzKPql57eaGt7b3I4/3MzjFPn0x6x8Xy+smPJoQ46L wpOiaFpL860ihaiDmpq5X2LQECzaH0cNAUPv2dJDT5EPhK5QEb9NEaplB7JJfne10o7x 7p4PIL2E7J7xhcwTIIOhCh71xesOrsbUQcZTM8uxE73lCXzlUhJbYG1iuCi8Ewo7Mv7r hHlF185vuabs7fv4dWLfthJe+hwBUtsv6bwnP312+//jjToQ2U6ubZAmtuy/CQGMNp8P mDGCU48NOCaC0MPdwKQ4upzZiUw4bnIYMB/f6OX9ZY5H4SEZAnG+4B3R1DynoaNF71xT gkNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=mEWOaP8CjZJlfOlq39rDL5w+TzlR3SMrNlOEmtiRi4E=; b=KRSCWt2Mzf0iEyyiNP3Jz9h1cjVDgLGIywXqhLwbPoUC4KiW8IgioGfmAHjzCeKLiJ +wdQlbh7b5I8FccuPzY+1YcwuOBaPAmY3+bj8dNiQdVdaYxnXxiUfJL3wsj+8AY0vWFm J7AoqXIsUN+PzR4EawCKcinBg1l1XgmIOAr0DHI2gfh7M1Gx76RPQPFR3+5OwHQXyqoi xRvdMCYlAecst1sBaVz45DUiwRLX0XxnSpLM+vbf3w2utMrJJUdl/oGOa512g/Bv6Qdo KMhHcCUeb8WvGKn49yVE6l2Wpbh7qIe7ar0bw/D1PMsSCbZXspX8vaQUUU9HTiufSRbV MSdA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si6440820ile.118.2021.11.02.04.41.51; Tue, 02 Nov 2021 04:42:02 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230109AbhKBLme (ORCPT + 99 others); Tue, 2 Nov 2021 07:42:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231234AbhKBLmF (ORCPT ); Tue, 2 Nov 2021 07:42:05 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee2:21ea]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85E93C061195 for ; Tue, 2 Nov 2021 04:39:03 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Hk7GF3VQrz4xdp; Tue, 2 Nov 2021 22:39:01 +1100 (AEDT) From: Michael Ellerman To: Wan Jiabing , linux-kernel@vger.kernel.org, Frederic Barrat , Michael Ellerman , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, Leonardo Bras , David Gibson , Alexey Kardashevskiy , Benjamin Herrenschmidt Cc: kael_w@yeah.net In-Reply-To: <20211014075624.16344-1-wanjiabing@vivo.com> References: <20211014075624.16344-1-wanjiabing@vivo.com> Subject: Re: [PATCH] powerpc/pseries/iommu: Add of_node_put() before break Message-Id: <163584789302.1845480.1021784539653281831.b4-ty@ellerman.id.au> Date: Tue, 02 Nov 2021 21:11:33 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Oct 2021 03:56:04 -0400, Wan Jiabing wrote: > Fix following coccicheck warning: > > ./arch/powerpc/platforms/pseries/iommu.c:924:1-28: WARNING: Function > for_each_node_with_property should have of_node_put() before break > > Early exits from for_each_node_with_property should decrement the > node reference counter. > > [...] Applied to powerpc/next. [1/1] powerpc/pseries/iommu: Add of_node_put() before break https://git.kernel.org/powerpc/c/915b368f6968122fcab31fd6441ed4ba7cc7574c cheers