Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1859334lqo; Sun, 12 May 2024 23:45:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZdsFEJ5L48vtaIOZUm0ENxW+8p679Yt0h7Y3Igj1/8qRZBcqnyfj4OSoc/UyJGB9hDFmbfw654AZF5K7ivjCfiPitH7AE1BtvkSy7NA== X-Google-Smtp-Source: AGHT+IElFgWqEFFrscYtIrwdR9QC8eiIdRQpvMl4jmP3yO9hLZ7xR41JjNSC3vIm1MNVoZ3dRmxd X-Received: by 2002:a17:902:d543:b0:1ee:90a0:bbb2 with SMTP id d9443c01a7336-1ef43d1aea0mr112345665ad.17.1715582706334; Sun, 12 May 2024 23:45:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715582706; cv=pass; d=google.com; s=arc-20160816; b=D1Z20qYee9CJ2JG5hy3bWbwib2Gj8cJXrdllDrA+r6m+F6ILbc6Hd5X/FbfENcqGfb U3bwpZAU9ndVMvjdTbIHU0JtyR96V8OdradXH1cOTWOaonzhEJJo4itRov6NV3AFN9AC y3AJNxD4w0UWDIC6W1/SmdCvWrAKrP7KUAKsv+mqMiLDZFQs49NsBM599gUBRCO+sbaY 5wqf1KYSs9n1hhSbyIwMIqN53AXee4rk9JJAZpfv6yr7RL5d+rbbtwQSwzYnNxmvW/6f z9OfNmegx/RtNwHEAbZNn1MyWRsvRsL07akPFShA4Y+SxenNOm7B6kqtxE2/yz36u4Py kEDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=L/480bnazrTesEfXMV2akOHdF2Sri6CBwPSizQAI3Ok=; fh=1Mua+Ibd68PZm4o8V8cM3zNUDnJqbZSmobj+899tYDk=; b=OFh54hkm8lBcjVxHJztHN1IEtZ22s4YbkvC1DJ5esi+PUhAR/ypudWYeP7orraeBxZ 2oYwsHjjiDztJFP9FJcVa8gG0Zr0Ii1rAGLZibX07iD3bRrpTIkX9ZUNrPvE8rln1+3k +Q02EWPEwuIEh00epnK02MFMTsIgO1w5kmVqEL+CrTzSQ8ECtEbybqHi/X9UC8AQcZIA uxOQwGTxCie3dEmvun7bKx0aJrlejtBW332hL1KgUrPnjrl0hn3Xdz6no9eeWX6ch82c ZjcGXVMqTgPLGabvpwICpaCMMjkBropU2u7zakmUpCB7Br4u94Mgq3Z5loy0ApTfeh2c 10Sg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JKCbKcYr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-177219-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177219-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f04ea14e73si57807965ad.166.2024.05.12.23.45.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 23:45:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177219-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JKCbKcYr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-177219-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177219-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B8611B20DEF for ; Mon, 13 May 2024 06:45:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AE571465B5; Mon, 13 May 2024 06:44:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JKCbKcYr" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B54B50291; Mon, 13 May 2024 06:44:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715582694; cv=none; b=t+Yr4MF6r8VOn8qp3MR9FFbbSXV3HipyShdsLvY7AlmsA+IqMpndQRLWrU0jhT3od1/auqkCW5/hyci96BJlQm52ZAOYHHtj6wTxdXxaLUTjzNtMnEN2jX4f3goeAGQYzoqaX2kwpfAFJodq/hd+1euS6ScBbADf9LtakpQMlZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715582694; c=relaxed/simple; bh=nXq7taxxO3JmxhnRidgrhbb405e2XuxFNsxB6fFsriY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rqsZ9qFhRwXT+WNoe9Z41ELgCI16E9B7f2vXVv0q1w8qd6NoUXTycZAe0Rpv1EO8F8URaiQwz/pDb+eImUlAKoi4JhM/b0F7fmODTr66/JzV4+bJruj6+WcI1ruJzwc/GA0rNDzLguTURJb+at61kPEFbEDemoReR0gS2wawkYc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JKCbKcYr; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF37CC113CC; Mon, 13 May 2024 06:44:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715582693; bh=nXq7taxxO3JmxhnRidgrhbb405e2XuxFNsxB6fFsriY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JKCbKcYrka4uQS8xXY9NIsNwsvYa6QRq1rM0f9hGVe+APSUp4f8uRHNeqSb06WyI2 kdC2JK1B43GqJ5HiTc/p0gErpql+V4iVLNeuOY20M7VFzBY1HdT/kBWjZnxcQG1KSx +OVF6ntJZSwM5OHCSBeIYW/FHIhvEt7aKHfTgaieYM+tHTbCL+eJlM6LLA30phoum8 AHBHyZXWt2zrEVaPBpbCjTWptGANEUvN/6gGdzIYRCxbH1FkqQZHWp8zoy+d+2fL2n WmTjI062s62za9GlXtAQLYAb7DxyS2QrEHQp9d3H3bHvXxm3nA99EjwzAuaYD+ERBu TvmGonECdSI3w== Date: Sun, 12 May 2024 23:44:51 -0700 From: Nathan Chancellor To: Kousik Sanagavarapu Cc: kernel test robot , Nishanth Menon , Santosh Shilimkar , Julia Lawall , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Shuah Khan , Javier Carrasco , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/3] soc: ti: knav_qmss_queue: do device_node auto cleanup Message-ID: <20240513064451.GB652533@thelio-3990X> References: <20240510071432.62913-3-five231003@gmail.com> <202405111846.3m9z398l-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sun, May 12, 2024 at 03:56:22PM +0530, Kousik Sanagavarapu wrote: > On Sat, May 11, 2024 at 06:12:39PM +0800, kernel test robot wrote: > > Hi Kousik, > > > > kernel test robot noticed the following build errors: > > > > [...] > > > All errors (new ones prefixed by >>): > > > > >> drivers/soc/ti/knav_qmss_queue.c:1853:3: error: cannot jump from this goto statement to its label > > goto err; > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1855:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *regions __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1840:3: error: cannot jump from this goto statement to its label > > goto err; > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1855:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *regions __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1835:3: error: cannot jump from this goto statement to its label > > goto err; > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1855:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *regions __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1831:3: error: cannot jump from this goto statement to its label > > goto err; > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1855:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *regions __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1822:4: error: cannot jump from this goto statement to its label > > goto err; > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1855:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *regions __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1826:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *queue_pools __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1818:4: error: cannot jump from this goto statement to its label > > goto err; > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1855:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *regions __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1826:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *queue_pools __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1810:3: error: cannot jump from this goto statement to its label > > goto err; > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1855:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *regions __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1826:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *queue_pools __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1813:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *pdsps __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1806:3: error: cannot jump from this goto statement to its label > > goto err; > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1855:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *regions __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1826:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *queue_pools __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1813:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *pdsps __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1795:3: error: cannot jump from this goto statement to its label > > goto err; > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1855:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *regions __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1826:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *queue_pools __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1813:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *pdsps __free(device_node) = > > ^ > > drivers/soc/ti/knav_qmss_queue.c:1801:22: note: jump bypasses initialization of variable with __attribute__((cleanup)) > > struct device_node *qmgrs __free(device_node) = > > ^ > > 9 errors generated. > > Seems like gcc didn't catch this when I compiled locally. FWIW, you may notice this as you do more conversions. The fact that GCC does not warn at all is a GCC bug as far as I am aware (i.e., clang's error is correct): https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91951 which has come up in other places: https://lore.kernel.org/20240425174732.GA270911@dev-arch.thelio-3990X/ Cheers, Nathan