Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2634348rwp; Fri, 14 Jul 2023 09:00:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlHYDk+rekxv+pYzbix09TlpNZGacvVCSm2SiBZ1BJrRXeS7ke2ut8abOPjTLmcCOWfzJxAm X-Received: by 2002:a17:902:f68b:b0:1b8:a697:3719 with SMTP id l11-20020a170902f68b00b001b8a6973719mr5823353plg.25.1689350417765; Fri, 14 Jul 2023 09:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689350417; cv=none; d=google.com; s=arc-20160816; b=jVE20HYTdUqkUjwFrJr9W+1Td26EeiTpjJ0KBZ2B8uSESOfuX1Nrhd2lH7PhCroT+Q Nc7Cu+eZK2xqr26IUhV29JXt8ydknRhiJK0A4zC2SrW6oejdxola3VhG26QAndkZG7YV 3C63sk0n0693jyaxG4moJI1b5tfS9UrkVg7/hIeSrTp/pE9xOjz59L/UKn0Pzjqk0lPT FlMRXcZGjgqhCw03sgzeibo8F9eBA5U2obv/vW7xXSN++XgVRGgK8fG47nxxB1+U4jQA x+aVoYekoUGlq+WFuqAk+3a3HugGQiavBLuvYaoXd0KtwiMDetT+xFMBbCG8hHnVZLb0 F1Ig== 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=y8xOYvS1S3A1XYKyzX2Ch7HAFcmp7tc+oKM2mV7MSV8=; fh=hNUo3vqCttXb4EMr+UBpIMIMJ0RwzL9fCinjZ+9dp4Q=; b=MpcnEBSXmhERcH1xNAwGpor25LdhA87dTTp2gZiPDxX9pCcWZhS0oPOGAGmZjgJ12r Wxs1XNdDwInomNNJ2SulAQzSdZOI9lA+1MPVFOSBQVzoNeEDLqV/8aPpVHz7ricq9ffZ Hr0XP2GpwAmgYX9Ap9iE4Vt3pnPFnSf9jaT4LvzobDf3vMdJm91Jp87pAjaVOiP8wy2I cKU9HxvetvJZIdKJOpBfYP1cC9uE0I10TKmA3yh8at5A6jBSUPZ3gmeeA+yRp1xxuUsG dMLQHdhaCCr7pzZ5BIT/ispSXiQnrFP8t/97VKQimGeuel0xokND5Sv3uKYffRjJJq5Y rPLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OhA04VnY; 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 m1-20020a170902db0100b001bb0fb5e06csi2231772plx.483.2023.07.14.09.00.04; Fri, 14 Jul 2023 09:00:17 -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=OhA04VnY; 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 S235554AbjGNP1N (ORCPT + 99 others); Fri, 14 Jul 2023 11:27:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235723AbjGNP1L (ORCPT ); Fri, 14 Jul 2023 11:27:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AEF31BD4 for ; Fri, 14 Jul 2023 08:27:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1A2F861D4E for ; Fri, 14 Jul 2023 15:27:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11D23C433C8; Fri, 14 Jul 2023 15:27:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689348423; bh=PohzP/6CVU4qNJVwu6BvOLEqRA2FFMRHS3Zp9exoByM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OhA04VnYAHHzDnAUPRYio1BpG+t//WZ4aMT8Qd3OiH5CSCVekX2n3WtS7C9uiVpEm Jew0J4wPPuGepXSSRePuXzOTJ7XkYuNtG/WbgXQyopAeD1tn176mXAi6MwdsiIrl+r saiqL3DsS2MzU8iyojy5d3YoKE68eUcfLXdictmno4CYzLMePdSpswZcZQNZBXTAYq 6UXzGxny7gtAIoejg7H58nGBGsqV8fjLSVeSAoA4qI1/GQG7mP9AM+/c0m+rwsFwph suUkpxHL//2GFW845r0r/lRZ1BJrJq2knHCVlRollJkJRAnX6rY+3Tm6HurG1nATOb EX0bHw0RciyQg== Date: Fri, 14 Jul 2023 08:27:01 -0700 From: Nathan Chancellor To: Miquel Raynal Cc: Yangtao Li , Kyungmin Park , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH 12/18] mtd: nand: omap: Use devm_platform_get_and_ioremap_resource() Message-ID: <20230714152701.GA1300718@dev-arch.thelio-3990X> References: <20230707040622.78174-12-frank.li@vivo.com> <20230713075751.486075-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230713075751.486075-1-miquel.raynal@bootlin.com> 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 On Thu, Jul 13, 2023 at 09:57:51AM +0200, Miquel Raynal wrote: > On Fri, 2023-07-07 at 04:06:16 UTC, Yangtao Li wrote: > > Convert platform_get_resource(), devm_ioremap_resource() to a single > > call to devm_platform_get_and_ioremap_resource(), as this is exactly > > what this function does. > > > > Signed-off-by: Yangtao Li > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Please apply the updated version at [1], the current version is obviously not correct, as clang points out in next-20230714: drivers/mtd/nand/onenand/onenand_omap2.c:470:2: warning: variable 'c' is uninitialized when used here [-Wuninitialized] 470 | c->onenand.base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); | ^ drivers/mtd/nand/onenand/onenand_omap2.c:465:25: note: initialize the variable 'c' to silence this warning 465 | struct omap2_onenand *c; | ^ | = NULL 1 warning generated. KernelCI also reported this at [2]. I apologize if this has already been reported or fixed locally, I did not see your branch updated. [1]: https://lore.kernel.org/20230713104422.29222-1-frank.li@vivo.com/ [2]: https://lore.kernel.org/64b137dc.170a0220.b8a13.feee@mx.google.com/ Cheers, Nathan