Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp674047rdb; Fri, 17 Nov 2023 09:23:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGzHYHhsxf55DDbAw4pMqWqmF/7Kuyt7ElC/dL6WcXmOR3Wdtw8XRy+iTk+4po5uK6Qdn4q X-Received: by 2002:a05:6a00:2447:b0:68f:cb69:8e66 with SMTP id d7-20020a056a00244700b0068fcb698e66mr9229083pfj.15.1700241825420; Fri, 17 Nov 2023 09:23:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700241825; cv=none; d=google.com; s=arc-20160816; b=iALAET8XRt4yKzz4jDPiPlf3szNbwYkisnfclo62SbTx+gBJ6RjIIQ46JTIQ8oR2OZ 66p3nFXfFq9TSOixNxEFtKtd7dWdyTC+OReUFFshTWCL759l+yNBkGQt5w3pTqRKnWp1 lTW1Yidwh95Dd3BlW3YMM6TuwGWiZdpsjK40AB2V8onisvuAkjzYJTld0VEEwyuu9BK5 5OQe1Ik4bb6uLk7FMIuEIuFvQ8ErHWChfNLiUkhlwujSFFjIEjsutVTYilGMDPCHMo7R dJDyqzbVLma5PocewoWxirL3cy4jI72eBXRLLzr0Hcw6N8sTzA20stsD/EvWFXmiIlXx mbrw== 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=OOs0J4hfvKI2bT13KzEGG3NF4a93twa4+FvtyJ2hsAE=; fh=jygYZqzkR8nQrxHnODk+uWrjQaPO4E2RxOKFalnX7MI=; b=RFDiTTdXqDL3f4DZzuspp+sECQ1wt/lAJEiEhFZrwk3pSwG6Xojqg4zdJLBMVZ13sm +0vKkWc91so7lhuvZh2sV95Ab7XVgxQoKtEByBzOAYXrc48BnZMTT83fvixB48ZpprjW a5bw+jIe10es8UDuIKM57nats5CaObc/1XfG2nxqM/Rm/gee6uaIzgZJjT1UFZvAg1V0 4WiKG86+oXdHko8SB3Bax3nN4syLSP5/0+cfnHL0H32J8cKOxFIh28nYf7vwukdmWMLD j2HlB9koxFmbc5eQ/W5oImTIublMzr8HvpOLhkPEysXQIjyL03G2Sm98Mic9/Ro0cs/W FEBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cjhPSz8G; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id fa23-20020a056a002d1700b006bd2e896465si2339417pfb.199.2023.11.17.09.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 09:23:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cjhPSz8G; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id F2D08824C4F0; Fri, 17 Nov 2023 09:23:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231756AbjKQRXk (ORCPT + 53 others); Fri, 17 Nov 2023 12:23:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230186AbjKQRXj (ORCPT ); Fri, 17 Nov 2023 12:23:39 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4A6EAD for ; Fri, 17 Nov 2023 09:23:35 -0800 (PST) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AHBxaSw031874; Fri, 17 Nov 2023 17:23:24 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=OOs0J4hfvKI2bT13KzEGG3NF4a93twa4+FvtyJ2hsAE=; b=cjhPSz8GZO0AZn7BJTobLhperN3PuN2GfecKot8bYLBO3x1XUSO/DCMsMASrVkNJL1wd MZQ0cQAOo9a8W91ol+nfurY1Ls2tNdcxLxn+Y/SP4L+sJkZ5J/RqE7aiUwv4f8I55rQS 3fAF5ZrFKGw+GFh7fW7N+Agm0bWP2eKZFqY6/ffWbm7Fzoezw/o/B+BKR3b69n7OhvJx uwnH8sprpAd69OHlk1TR3cSpmA2PM06mQR89oFOquNEE8I88sSgjECSi/+OTS5K2ONec ikYQ72f5iAmhR22eKitxx8R+vZngG3oWDCCJpKtTMp82m7ZoiS2h6EtdI+3B8bbzuC8n nA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ue6vars6m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 17:23:24 +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 3AHHNNAW025028 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 17:23:23 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 09:23:23 -0800 Message-ID: Date: Fri, 17 Nov 2023 09:23:22 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH wifi-next 1/6] wifi: ath11k: Convert to platform remove callback returning void Content-Language: en-US To: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Kalle Valo CC: , , References: <20231117093056.873834-8-u.kleine-koenig@pengutronix.de> <20231117093056.873834-9-u.kleine-koenig@pengutronix.de> From: Jeff Johnson In-Reply-To: <20231117093056.873834-9-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: nasanex01b.na.qualcomm.com (10.46.141.250) 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: tZD3HYRhyXhiBNBblhCYYcuxoluvpThC X-Proofpoint-ORIG-GUID: tZD3HYRhyXhiBNBblhCYYcuxoluvpThC 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_15,2023-11-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 spamscore=0 lowpriorityscore=0 clxscore=1011 bulkscore=0 malwarescore=0 phishscore=0 impostorscore=0 mlxlogscore=980 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311170130 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Fri, 17 Nov 2023 09:23:39 -0800 (PST) On 11/17/2023 1:30 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 Acked-by: Jeff Johnson