Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6589024rwp; Tue, 18 Jul 2023 02:52:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlH0VSjOoVADbLqLo6JM7T3xBVybM4zJrY/y0pd5JLF1KSDi5sKH0CPt++a5gORKWNh/1w7n X-Received: by 2002:a05:6a20:7283:b0:12c:c614:f55 with SMTP id o3-20020a056a20728300b0012cc6140f55mr17772051pzk.43.1689673969147; Tue, 18 Jul 2023 02:52:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689673969; cv=none; d=google.com; s=arc-20160816; b=b4uS5vdPx/0pbtqDI2MIFtK2iHZ9B2RB0NfDO6GP6y7EpvKFLw0+IUgVG/CM/wGL2T kvgIGwsiIH0U7TGJ2Ip2HDBSWtmSMUr3Hd+CW/TiPMm69vETvlh3NNpQtZfDt40boX+x k/LEKHxp6ZQliQ65uJECF7kB2LReuACwdK9GrNyxFVKE0qp8sXn2Av0gAsJ65N8B/B9B m/EpyvRPJxw9CLuD/x5iVC+SJwM4Jd6oJXWdf1OTtdozS2RfiFpxA9dxITJJOkYBTxN8 5YjX5ZcRiIoSOtCpbPQ8+/pDz2eT3JCX8fc559DRQfnZsgTEiYRXBRueKHJ7whd4BRdu mFug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=n9/R9Q9HChElMiW5UmOfxWaBlYSLISs5MzbHuCRqqGQ=; fh=SCDJ3C/kSagPKFi1lONboGybmYjFdvAalK2wjnVmvcU=; b=XnfrlF0q4t+i/3pkjSHbiE1zbArbOXPSM2DnHHr6lwborXC6rgGHk2mldxL9Ej5Wwm dfsdaeri2jLUsSNFqpgpVXPHRsgSauk3CBnXqCge8BZtfUEEGJZxHd9aEttQ2YTWgMRc Ge4zLFlSKQt2vosjYCx58eRkTcxIH3VP0XQ6D7iFXL6/HEUTFt71+VoD/h4i8UyFhbOG o7zxXHedqd0bOKqFr9pRsUzHmXOcqZPvEaFHhzdzdEhBU1+4BbQ/IijxTMot5I5v41C8 vLnkGS/WhWfVk/oPCrVtXKz+OXRyu045ZorIe8M2EaczOOLLnrHpCC7WEfelb1SKpqiH eiqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b="MYiI/Qdb"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v16-20020a63d550000000b00543e36736d3si1322886pgi.628.2023.07.18.02.52.10; Tue, 18 Jul 2023 02:52:49 -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=neutral (bad version) header.i=@208.org header.s=dkim header.b="MYiI/Qdb"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230505AbjGRJDY (ORCPT + 99 others); Tue, 18 Jul 2023 05:03:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232174AbjGRJC6 (ORCPT ); Tue, 18 Jul 2023 05:02:58 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C54EBFC for ; Tue, 18 Jul 2023 02:02:56 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R4tJZ2G4zzBQslb for ; Tue, 18 Jul 2023 17:02:54 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689670974; x=1692262975; bh=+WirPAA20do70AKue5eXeKib7+H rEJbCo7UDP7zabYg=; b=MYiI/Qdb9bWYnAELmZjt15yUQoqyFpOvHCitr/qr0hM dZt6tFjVZtZHbt1cWrSggntJ3qoA57+sTRoQWJ44fj7Nooc4SOhmXKmdzj5V91RA sR+6JgrlE1+wEL//UVgtt41TzDytp2RZYADh1sy7aW9bAynVUSMRFHRSSDQdNgP2 7BzMHKbzcVkL9R/LtiXx8Yt8MAMzeVWMqm80I54Sv1hmL/lBbT3CG2AGc2CuUnF+ XWDfSlRs8XcfPbDsYnJ801jSnN8nkTRgHol5rr3sBKGX5gkXBGJOMewyZqaSQSOv jnEA3egPKAb7pEE/vAuQKqqG7ey3audn6keTlb95FDw== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 53oHEb_Zm5OG for ; Tue, 18 Jul 2023 17:02:54 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R4tJZ0t8pzBJBfd; Tue, 18 Jul 2023 17:02:54 +0800 (CST) MIME-Version: 1.0 Date: Tue, 18 Jul 2023 17:02:54 +0800 From: sunran001@208suo.com To: davem@davemloft.net Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] floppy: add missing put_device() In-Reply-To: <20230718090203.17548-1-xujianghui@cdjrlc.com> References: <20230718090203.17548-1-xujianghui@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <8d2649460d95597d2d4de3777b2043f7@208suo.com> X-Sender: sunran001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 The of_find_device_by_node() takes a reference to the underlying device structure, we should release that reference. ./arch/sparc/include/asm/floppy_64.h:562:1-22: WARNING: Function "for_each_node_by_name" should have of_node_put() before break around line 567. Signed-off-by: Ran Sun --- arch/sparc/include/asm/floppy_64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/include/asm/floppy_64.h b/arch/sparc/include/asm/floppy_64.h index 53e77c0974f9..619255e8c9ac 100644 --- a/arch/sparc/include/asm/floppy_64.h +++ b/arch/sparc/include/asm/floppy_64.h @@ -594,7 +594,7 @@ static unsigned long __init sun_floppy_init(void) if (state_prop && !strncmp(state_prop, "disabled", 8)) { put_device(&op->dev); return 0; - } + } FLOPPY_IRQ = op->archdata.irqs[0];