Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2962507rdb; Tue, 12 Sep 2023 19:03:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhiocJKevWqXVDLvwSRJlcpEv55y9u2m/CrwwlNMk1+RTBwv7gpPc+0WQyeErjOm2XsCun X-Received: by 2002:a17:90b:3ec2:b0:273:ef1b:5a2 with SMTP id rm2-20020a17090b3ec200b00273ef1b05a2mr968693pjb.47.1694570630795; Tue, 12 Sep 2023 19:03:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694570630; cv=none; d=google.com; s=arc-20160816; b=OuvtW1iq+7878eDEMlE7ojuKzHRtew2paLFoe9cWrw0H1r6CvLY8KGlkarb9kaTxMi yfXMsKK/EPURFhZhwve+S0jB1vDCXig7Tm94V68PKYGUKkpXC6feXgHmDUzSroDEWfpK tdZKECZTPZEP17/9vk6xovUWKpSXAJPCcCoyzt9OlNc5ilUAY2DjRCJXIVi87iZ8gtts Zp6UDmcc32oRBdn8y5xQ+op1yeVO9yQ7qB+0worAQ8mcWF1w6QP5Y6Gfdw/OnjByJmL+ SWu2oez8zvuqQRRwUL2zulyEn8R4iFuy+NIDD2rQp0AVmKbKPoYYvgTnMeo6IT3ibz+r lyGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=8d+JYJGfY1455p2f6ddoZ+4WMdKAy7f2vAGn5sjmCPM=; fh=9O7tjbZYqG4OKdiMJ33x0K8j6rxl7kp9riGrYafATy0=; b=nt2fop8C4UNTfASe2RCk3ePv3ltYODDcjDeJq3E+pdodRcSlkpRXguLXE9XRYPMH/6 Hc3/LfbBXR7HFK3NayaE3d84Sa9V7a3nNbNV7IkeR6v3x/LdHvdHJR3Bjg/e7YOJB2/2 712OgVleY4W+5e/JPZLzwkRNmgnbRWbkju9glwSx0LWKFh7Z4nruiEhFzelx5GPVkvgd rJFKtte2E781sW0ipWZ4FhlDgGq+RZ7oLdehE3WNpo/+o181C2ndtZKBSsTT3gygG1sa FstFIRrCwLHMANjO0goG6covDaQd2cI3D3JO4rvVxOQNVXIQ3c6DWiGdJnUzpHIf7tFB lo0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=koMeJ5h6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id hk14-20020a17090b224e00b00262e3c1c1efsi614456pjb.79.2023.09.12.19.03.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 19:03:50 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=koMeJ5h6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B0CF881A05B6; Tue, 12 Sep 2023 19:03:07 -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 S238145AbjIMCDF (ORCPT + 56 others); Tue, 12 Sep 2023 22:03:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233016AbjIMCDE (ORCPT ); Tue, 12 Sep 2023 22:03:04 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE1A21706 for ; Tue, 12 Sep 2023 19:03:00 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A16A3C433C7; Wed, 13 Sep 2023 02:02:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694570580; bh=a0r8FafZCRykI67NjApO3w2QCbRNSVhDa1MttsUYh5g=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=koMeJ5h62VBOqKarkBjz3LHaBuH5CDDfVwRU8glJWdkDKm7Zs6v4DrHN0ovSlbuRW OqmzxBiljNEtHmqWgO5EjHHrhcPB2iYEitvuy1YzB2iibyb1t9uY8np8o6NGqFY/bD cTyDiOIf+K+gN7ao+PIU8swxWUWnBC+50PJfLwr3+EARplIdJ6qaPSk5cpWSexPMDo aHSpNREvJGQu28vMMz63pHJqJi63UV3ypTKqgEEZnFL087XCRm1o8MtHGzAs98aqiw TiodsViIavHroLX+hrTgSJmmecaDeSvhEMiXfWS9oR8Z9qFzFVd762tkzvMNI5X982 415Wf1rnvsz8w== From: Kalle Valo To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: linux-wireless@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH net-next] wifi: ti/wlcore: Convert to platform remove callback returning void References: <20230912171249.755901-1-u.kleine-koenig@pengutronix.de> <87sf7jcnll.fsf@kernel.org> <20230912200117.5ygpaucixihppg65@pengutronix.de> Date: Wed, 13 Sep 2023 05:02:57 +0300 In-Reply-To: <20230912200117.5ygpaucixihppg65@pengutronix.de> ("Uwe =?utf-8?Q?Kleine-K=C3=B6nig=22's?= message of "Tue, 12 Sep 2023 22:01:17 +0200") Message-ID: <87o7i6de3y.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 19:03:07 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Uwe Kleine-K=C3=B6nig writes: > Hello, > > On Tue, Sep 12, 2023 at 08:23:18PM +0300, Kalle Valo wrote: >> Uwe Kleine-K=C3=B6nig 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) ignor= ed >> > 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 th= is >> > 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=C3=B6nig >> > --- >> > 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? That's not a requirement from our side but feel free to add that if you want. Usually we do so that if the patch has "[PATCH wireless]" or "[PATCH v6.6]" we queue the patch to wireless tree, otherwise it's queued for wireless-next. > 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.) Yeah, we do work a bit different compared to net-next. For example, wireless-next remains open during merge windows so you can submit patches anytime. We have tried to document our practises in the wiki link below in my signature. --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes