Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2818167rdb; Tue, 12 Sep 2023 13:04:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8XvobqLjFrC1o2rPoKSvfG6NfKK1R7KQwXo80ZS9mUTeGjzn1zqCSJmiqjlBIDaQNo3j8 X-Received: by 2002:a05:6a20:552a:b0:14a:ac45:d7d8 with SMTP id ko42-20020a056a20552a00b0014aac45d7d8mr369800pzb.31.1694549087126; Tue, 12 Sep 2023 13:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694549087; cv=none; d=google.com; s=arc-20160816; b=KzeAEC9cN4SqC/TiQYEv6QRcJJg5nNIW0jRsCP+XFpZ+L5lY14o4CdVXI7+uyT4QR1 lY5N2BU+dQwSfa+yNqbn8PEYJTV+0Q6GWzaB5x63BKeKDZEYJanZAsCdH5oZzo8VdMgz U5d81jhNrZnA/fSt+4JB4k+axQfJUuFVYyzb5/u+5ESwBss21+aBXDMrQCZJTjY7XJNm Non+qB7UZY7Rrv1M5zJ4ggKE0aTZ7122/v6hgPOaD9i3PgeIDobiPeQMqJD/yJskwA1X q4rcZbtprqOBx8+C9DItg6S0rIU8rD41o6uy7mvtIsStQh3feiKQUn/h2wxg65IeKLPB /HKw== 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; bh=qcgVdzzrsdGNx08hWYgAlA5NAmtySrsRD3fmVRqP9bI=; fh=PlxUx1RKsPgGlKV8HdlNgp4L5wTmRZJ5xUutE/PqUkw=; b=tswRoBI526T+HoasHwZ8pMc25RF/ueq2Tk5/xJd24acPKJMLXt0P2P7SiBYMQl6fP6 iEEVb74Hke8A2kc0eohV42Zj3i6mmqawHMfJrq718fwPWOP6Y6ovljdEsYS/KPGyKe7u bxIe/RZBKQUnBOPWzE7WkaWZJF8e1k/pjx3gy/uI9degC+Z3Xuk4rqLgFBXd52bZkk4e t1FNPuZNUdQAUpUh+y1269g488nV6UsMcbw0POOCcvXGbosBS8vdlko1pKnX65E0ZWDa HeKLUHgS9g+pfuyGefQnVyjKMd3m9pCZ/IpqUc5PPPMnJ5ESCGb1kOlWhffCIA3bv+en X8lA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id c7-20020a633507000000b00565173d0ffbsi8308161pga.775.2023.09.12.13.04.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 13:04:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4463680B5A26; Tue, 12 Sep 2023 13:01:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236120AbjILUBZ (ORCPT + 56 others); Tue, 12 Sep 2023 16:01:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjILUBY (ORCPT ); Tue, 12 Sep 2023 16:01:24 -0400 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F87FE4B for ; Tue, 12 Sep 2023 13:01:20 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qg9ZW-0007RT-PH; Tue, 12 Sep 2023 22:01:18 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qg9ZW-005qVs-9g; Tue, 12 Sep 2023 22:01:18 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qg9ZV-0019cq-MS; Tue, 12 Sep 2023 22:01:17 +0200 Date: Tue, 12 Sep 2023 22:01:17 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Kalle Valo Cc: linux-wireless@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH net-next] wifi: ti/wlcore: Convert to platform remove callback returning void Message-ID: <20230912200117.5ygpaucixihppg65@pengutronix.de> References: <20230912171249.755901-1-u.kleine-koenig@pengutronix.de> <87sf7jcnll.fsf@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ebwt7imbll6jyb7y" Content-Disposition: inline In-Reply-To: <87sf7jcnll.fsf@kernel.org> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-wireless@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 12 Sep 2023 13:01:24 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email --ebwt7imbll6jyb7y Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Tue, Sep 12, 2023 at 08:23:18PM +0300, Kalle Valo wrote: > Uwe Kleine-K=F6nig writes: >=20 > > 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 (mostly) ignored > > 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. > > > > wlcore_remove() returned zero unconditionally. With that converted to > > return void instead, the wl12xx and wl18xx driver can be converted to > > .remove_new trivially. > > > > Signed-off-by: Uwe Kleine-K=F6nig > > --- > > drivers/net/wireless/ti/wl12xx/main.c | 6 +++--- > > drivers/net/wireless/ti/wl18xx/main.c | 2 +- > > drivers/net/wireless/ti/wlcore/main.c | 6 ++---- > > drivers/net/wireless/ti/wlcore/wlcore.h | 2 +- > > 4 files changed, 7 insertions(+), 9 deletions(-) >=20 > wireless patches go to wireless-next, not net-next. But no need to > resend because of this. So for the next patch to drivers/net/wireless: I should write "[PATCH wireless-next]" in the Subject? Do the other special rules for net-next apply to wireless-next, too? (E.g. that I must not send patches for -next during the merge window and the rules about comments.) Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --ebwt7imbll6jyb7y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmUAw4wACgkQj4D7WH0S /k7zQwgAj3eUZ0jf3+FFz8zPoIlE9CSdX0aoTeRvhCunDnnVQTQrAwxfUZbNin7p A7qPEwr6CFh8V0HtOY9X2vOuqIqRkBeL9HoSzgb/AlJbKpgs89yWZjeVkp2jutTc zBVGWBA/LyX5ihs095B6BnoDPqMtCmycQJmX2ofceG7DjEzvL33lHrflMF5Bb9Eu pAd03c5lJ7blUZbVlIexih20TWBDGpzxW7SzWr/G34ua+FjCQoLDbw+Zd9JFOABW eotxl73BbFSobXoyUDhVHNdGAcxbt0Xb0mZfPloImXj79bN62kBRlCXtLXF43ytm s5W5ABjH20Y8nxmPklwyA9LPYc7pfQ== =otqT -----END PGP SIGNATURE----- --ebwt7imbll6jyb7y--