Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp544438rdb; Thu, 30 Nov 2023 11:19:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IG4CotE8qciBwQjJCZbKbS3z3YSMg1rTvJ182pTG8CVY8QQaMuAsU9YFhXZUUIOe5TvW0OY X-Received: by 2002:a17:903:244a:b0:1cf:c5db:937b with SMTP id l10-20020a170903244a00b001cfc5db937bmr21189977pls.48.1701371994114; Thu, 30 Nov 2023 11:19:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701371994; cv=none; d=google.com; s=arc-20160816; b=TQ7rVY/9063on8nucrBtsbVFUBakD4A+0t40XWvB6XRMHjt4lffxH4gYFXrLjulMa1 24VyM57L0pC0VL3OECf1m6uhBjHqeA37MGle9vMUkrvsy7bQcgF4iWMgS369Mak8B1oa brgIMJysjHzUrF+vIQvUIblu/GegyAy3+bzV5HWGNXbV/0QBWBmddR1eqJS059r15VcE 5OFKfkRdxd+VMHQu9WO6fOzgvaoO0aH9iu8PLW1kPh3zqD6WO9pBUH4VD81k/XvItV0V qzBq1BFuAKBgzj/vTXFKByGy69R2rxFfzn9lErfbCPYJBnoXfU57VzVlusH4RNStmR4N U+Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=3EoXrLaVBX3W6dNK+F2wqzwqNfyYefqljfZori89vN0=; fh=dMfgArDqZc8d57FoerIghUlgWcTvvHqVWR+h+hzQarc=; b=rPzvSs6i783hOAEMf3n52KJb0uONJ9dqrTg+xcEyCgV0ixbV0svmDVGBEt0ZhOsUi8 D3BFB3DaqPEKnnDlFSwt//NeuzkA2zcWpRMyWyC/KapmHDsIJjXddhoP/RYetLtWou0T lO4W4NazyA1m9rkSSywJ4iJSCEPL2QP/Xv/gwuLuT2q2/ryWo/Pe08FFlv/gwiXU3M/4 v742jOPl2ZU1jNr57VkYCEE4OhXXEnGfMKOdZSFAT4nbjBEtdQX6iPQksnb4idePV9Zb Enl7OYPv0qksZ8+cH+pQRBye6auuypMljeqnK4yWJY5HS//YdRLCpG+2YU/p3FXl7mV7 TutA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DVqJPkmR; spf=pass (google.com: domain of linux-wireless+bounces-253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d14-20020a170902cece00b001d002bce0f8si1880761plg.0.2023.11.30.11.19.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 11:19:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DVqJPkmR; spf=pass (google.com: domain of linux-wireless+bounces-253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-253-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E2CC42818D3 for ; Thu, 30 Nov 2023 19:19:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80DC822061; Thu, 30 Nov 2023 19:19:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DVqJPkmR" X-Original-To: linux-wireless@vger.kernel.org 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 5F652A2D for ; Thu, 30 Nov 2023 19:19:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60AE0C433C7; Thu, 30 Nov 2023 19:19:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701371991; bh=D/t1L5iXFY2+sUUj0qtsRRU/poD6XOKBGKkCFdlkIxk=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=DVqJPkmRwg8aYx2hPtn086i1bfbxhmIoea8c/VPxofuFibUFz7n1+Yo6xieg1W2j/ Mc9Vmhp3Dy1E5mcCqO8xnHNwYT1KUZmfYgiidZgYuS1ouyaEQ92jxYh+1kJWTmAhqp 7C5yXXXhbaAd2/iJ9IlGkZkDGx74ey3JpxO7JE6GsrOhxHBib3ZxkTnR4EhFyq2Kfe pAxD7ve2K6bsv8NIiOwW/BSsOGHotQpGEkyzKU6kpPZtZ87mANQszDpVaZJOlv3x6O +1IUWuEbmZY6Hvj/C3pd8+RinGMyLxjH79VXRu4otWpeOVhbh+btnrDsOkA+Tc1kC7 HA74r30ZQYLCA== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH wifi-next 5/6] wifi: brcmfmac: Convert to platform remove callback returning void From: Kalle Valo In-Reply-To: <20231117093056.873834-13-u.kleine-koenig@pengutronix.de> References: <20231117093056.873834-13-u.kleine-koenig@pengutronix.de> To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Cc: Arend van Spriel , Franky Lin , Hante Meuleman , Hector Martin , Linus Walleij , "Gustavo A. R. Silva" , Jisoo Jang , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com, kernel@pengutronix.de User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170137198748.1963309.15550773845288206516.kvalo@kernel.org> Date: Thu, 30 Nov 2023 19:19:49 +0000 (UTC) Uwe Kleine-König wrote: > The .remove() callback for a platform driver returns an int which makes > many driver authors wrongly assume it's possible to do error handling by > returning an error code. However the value returned is ignored (apart > from emitting a warning) and this typically results in resource leaks. > > To improve here there is a quest to make the remove callback return > void. In the first step of this quest all drivers are converted to > .remove_new(), which already returns void. Eventually after all drivers > are converted, .remove_new() will be renamed to .remove(). > > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. > > Signed-off-by: Uwe Kleine-König > Reviewed-by: Jeff Johnson Patch applied to wireless-next.git, thanks. afb154426bf1 wifi: brcmfmac: Convert to platform remove callback returning void -- https://patchwork.kernel.org/project/linux-wireless/patch/20231117093056.873834-13-u.kleine-koenig@pengutronix.de/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches