Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp467062rdb; Thu, 30 Nov 2023 09:15:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8bPWCkpMIjDP9lG48QP6Kyi9gSgbK48KlVvox/bvNN2hgK2eTyqhfPPmprTvhwQolH6j4 X-Received: by 2002:a05:6a20:7d81:b0:18b:d31d:c460 with SMTP id v1-20020a056a207d8100b0018bd31dc460mr26502130pzj.2.1701364529757; Thu, 30 Nov 2023 09:15:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701364529; cv=none; d=google.com; s=arc-20160816; b=XGZm6af8+4xFqu4o2HW4QN1q2FRlsmIJG/e2X3/eGl1ozwKPPV7zNrT2KBSS84BdA5 uOhVM/rElD/SWIIphWARJpJbmVTu+olHJixf1iSQcyQ2VzVhvZV7ESZdujCKywmynKDi Eg26KBsF2uME/Ua5VGsVnLidTuCCsT7FgMbMhL+nnZD6FLOTx73dafs5p55dOqi3GEOU /902ao1WCWXSQ68WIj393+lkAvi2lrPkaa/tD5GrUet7UXMYU1BVkAwqBOqjxmBdu5r/ mTMV5lIsx1z3QS4KXyOedIIkcAz1gpjicsjn5GhC+xbI/F/dviOVVpGdZ/j9kP4MUtzS M2qA== 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=a86nEtI427ZkCbWDYc5Gc1YXkU4renPXQebxHKDo9fA=; fh=AaskFiHoSHL7IpHEhlSMZIwP7SK08wBB1aIPt7U6jYs=; b=IEvUv/diJ/NR5AfJq73p/SSxzDkSit+TfYyxdHUjkzvG0DdOi6DsUGVgAfcSAjMkz9 ED2hUP+IYXe5EXLcqhnSAAAI8kTQAV0ZG5MQiOq4Qf8Z2BCx3/oMOMpEoVECL8o2WGgW B8QMTbAunw2xKdeMUwAJsoreEZ9+WJKzqJ+PLFe8pBX04v4NdhysjLJJDzc0OyeyVZyG BzZ9Fk1My0alQSkz8eDJ069gF/Rv+HMjAUOhk5znxq2VUgoIw+Yk7Al2DTG8n1wPoQiz L28BOmjhsLJ6kubUPPbq2xq8dU4SBFFZtBTHe4fKXToKcP8EzG9pnixX71Vs2x41dhu+ lDpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g4XTjG8y; spf=pass (google.com: domain of linux-wireless+bounces-241-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-241-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 e187-20020a6369c4000000b005c5e276b55esi1549046pgc.441.2023.11.30.09.15.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 09:15:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-241-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=g4XTjG8y; spf=pass (google.com: domain of linux-wireless+bounces-241-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-241-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 0F18E28178E for ; Thu, 30 Nov 2023 17:06:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D54D155788; Thu, 30 Nov 2023 17:06:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="g4XTjG8y" 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 B83DE46432 for ; Thu, 30 Nov 2023 17:06:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 190DFC433C7; Thu, 30 Nov 2023 17:06:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701363967; bh=C9xNgVVhXRSyE0l4y+M6+IWYv5jkCVWMh6VIt0VA/fs=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=g4XTjG8y9knI3NBpjmTbY0jzFw1mcc8iGTdhzD7XCC86xTR66ytM4U3sCJEbptvGC WaURhaPOoe0YRt72iQB5S8OT3kTeOHpJXFqqkUoRlXzw107QCz1bBK/pnOq6Wu5WGd 3mRQBGy355RRvxnoF7KEwJXXbOQIbdkVQ7kr4qJ8Phe34meaoksvynwBQb9DYmbops L9FzU5EVrZOTLUm5oKo6v2XcyzO8V3qlzqSIT3yAO5/8Z2yMAhkKT3YB8T6W7W+wMf tovsKxEmGSU0L59zRi5GhbYqwnwGbn8MFHx+xplKXYD5q1hwU8wwCbBXU1LZHU0/2P FfJUYY21ujKOw== 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 1/6] wifi: ath11k: Convert to platform remove callback returning void From: Kalle Valo In-Reply-To: <20231117093056.873834-9-u.kleine-koenig@pengutronix.de> References: <20231117093056.873834-9-u.kleine-koenig@pengutronix.de> To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Cc: Jeff Johnson , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, kernel@pengutronix.de User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170136396402.1435047.15867746880964995534.kvalo@kernel.org> Date: Thu, 30 Nov 2023 17:06:05 +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 > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 62e31362033e wifi: ath11k: Convert to platform remove callback returning void -- https://patchwork.kernel.org/project/linux-wireless/patch/20231117093056.873834-9-u.kleine-koenig@pengutronix.de/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches