Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp744895rdb; Fri, 17 Nov 2023 11:20:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvG85gxnl6xu9ACNaEvxqJ5mReV4OwvCvUHCO1xiic5g10sft8DI8Z+WLWN1j54VLmNew9 X-Received: by 2002:a05:6a00:14d1:b0:6b5:608d:64f6 with SMTP id w17-20020a056a0014d100b006b5608d64f6mr468848pfu.20.1700248802901; Fri, 17 Nov 2023 11:20:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700248802; cv=none; d=google.com; s=arc-20160816; b=vXKxWZMWm03Gjnq5AX1genFUVzc4fsF9KSD0AutKjBy1SMNxoNVX1geWiLLHRk3KGK pcKClScwXSt8WwNEWGmlC5926GZT/TNOM7xSVUsque/NIQuzvDTeQ2KXI8MXZrcvFBq0 +9cxWXFAmD1rMokbALowc9DQB67UO9rTmLbEzxLNcHTz/zs+dUlw+tlhNaeupOBPskqt n1rSQjXYsFA2vLbC4/sv1YMfaszPaCzrxm1aDws9creyizvijzKSN8R2zGnn8AGrE4vp fslbcaUCCXuW+vIDJMawpiyPlI2VO8/IEq+s5E4iOoj5kAxo34gnOAsty3qPj9IGqshN JsnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4W0MKDKrofwikFVd/6UzeW6NiPLTlboCA4xJWzavkmE=; fh=j7JmJ+NHBhFcAkJaBxDJYARpUqvjy/JiaTc/7XsgiXc=; b=ovwe8qjoZm0iQZP02L409N+8ldC1yhcFaOS9Op+VnX6wsccwCNMRbyZAGE17IapH+d eLuNs/Mgxmr1W37DI3jCuUrUugYevpCcUakRl1P+csgmwT+T4IeU02sn7r4Ler/r49Uy SMnuDi4lihurkXfGDGM4Gp2Tlly/A05jOXE94JAmlnPNl0FRRkFSMX3gH9tAKmM7nFMf T9a1jlIaTCHtP4y+FAaVdqgGg1iPYk0fguOvLr0Xh8uupYIMzwAlpsZ3yaKL2OPZb0OH TIP2VWhLzM4lI0F/fV9JFjhJ0s/Ed7dCUf3M63WA/8eHZTk5r/g1MAo5Z4PSZ2/6L86x mW0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="m/Z6ANVW"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id a128-20020a624d86000000b006c33c8497casi2534449pfb.222.2023.11.17.11.20.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 11:20:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="m/Z6ANVW"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0A398825A6C1; Fri, 17 Nov 2023 11:20:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231569AbjKQTUD (ORCPT + 53 others); Fri, 17 Nov 2023 14:20:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjKQTUC (ORCPT ); Fri, 17 Nov 2023 14:20:02 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14847B6 for ; Fri, 17 Nov 2023 11:19:59 -0800 (PST) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AHAkw78027909; Fri, 17 Nov 2023 19:19:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=4W0MKDKrofwikFVd/6UzeW6NiPLTlboCA4xJWzavkmE=; b=m/Z6ANVWa3XZA/g6o4fG1zWTZXrRFQF5rHUVwARwYKUGOZBWBu418aeIyZilKb3jpHwg qseF+W2avo2A8owF9Th4GPfJ2foqV8380jROOafP/GU0z1x7H+ZbWxzhC5oPKpZHm9HD e6PGAa5NVJrNysft8UyTN4Targy9jNQTtmFOnQ4hDYYYxpjOHTtHNU2UsNpXn/yE9i4d 1Uwfik3tFscGgJ1ZpbqMVOclHrf9U6XLouUIhbQI8576hllBDBtQKtQju24Y+fW7kvdc jPViOGFCZBI4q7Hv9sE89feguFETsHWa66/THTMq2mVuRB9J0bMy5y7yR0vEFlH/qKwn 3Q== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3udpqq34nv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 19:19:50 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AHJJnIk026208 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 19:19:49 GMT Received: from [10.110.1.143] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 17 Nov 2023 11:19:48 -0800 Message-ID: <9c8711d9-e945-47f3-a555-663ef2851f50@quicinc.com> Date: Fri, 17 Nov 2023 11:19:48 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH wifi-next 4/6] wifi: wcn36xx: Convert to platform remove callback returning void Content-Language: en-US To: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Kalle Valo CC: Loic Poulain , , , References: <20231117093056.873834-8-u.kleine-koenig@pengutronix.de> <20231117093056.873834-12-u.kleine-koenig@pengutronix.de> From: Jeff Johnson In-Reply-To: <20231117093056.873834-12-u.kleine-koenig@pengutronix.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: tiLYAWwe4cAzg3Q2pzIEL3NhkQjm_Iwh X-Proofpoint-ORIG-GUID: tiLYAWwe4cAzg3Q2pzIEL3NhkQjm_Iwh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-17_18,2023-11-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 clxscore=1011 lowpriorityscore=0 mlxlogscore=968 impostorscore=0 suspectscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311170146 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 11:20:02 -0800 (PST) On 11/17/2023 1:31 AM, 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