Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2723011rwb; Sat, 29 Jul 2023 12:30:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlGt12iniJc1GBUZIqMXu3jGxoiXjKhRvl+/FepCb3mYU7MooRKImMPDigz2+XqNmXKBzGUd X-Received: by 2002:a05:6a21:3e05:b0:135:38b5:7e4e with SMTP id bk5-20020a056a213e0500b0013538b57e4emr5158030pzc.59.1690659006345; Sat, 29 Jul 2023 12:30:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690659006; cv=none; d=google.com; s=arc-20160816; b=SpfEbxD2NAhN6rCSiq5Kb4fxSeCITyUKzr46L7kLmbFveK8V5xMGrJd99ScF/xuKN9 kmDaQjyoFD5R+iWN0ktLWgJmlZ1SRtKcZ88CzXpo+kIjwuurKQwahsWB8PKoOUOPQ+2S jlj00ZHP+smQ0Zn0ZSA9xV7eI3+S548zRJcTwBOsPAnzyPIwxCmd99IrF2vM4I2uw8/F Bzc8wx1nENgmO98jvLoHUOL0DqT02ctm2MSCyPM4e/2yf2qASq7X8KjDfuS80HrODsEB rSwXYm7KOhHleQ1L4z1QglBYiNs0US60DPk+a+xgN2JqQSnTGcNtKJUNh+mat+fDnag8 wykA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=gRRM3V/fhfbk4swxDnRjXiwrMJ1xOP6GUPvikr85J0I=; fh=+IsvcrNjlq0Ty2ioyS5rc1At/CbiyCY/8w2BkEBbrrw=; b=T2y5L6tJYJUpzjv/ZEVysiD2J8zoIyKTaXTze5bb9FigEhlVxX7Og0i2RERGa9AqLb azn8DeUM4dcRnJpTZMSo4/HubC9wvpEHs6cw2C87iCLBDNvwQzrAVJ7bxptX9RQ8HxhL JanG5Q9jECGgsJNoCYDv5Zi3Z4QaRYbxlIAz5rhKY6lvReRb/x9aKTUXXf74iPAkORrv DUjQYtMDGbK6DP/BIStzTP+noaFzaCHcYfzI/t40GqEFvxewFBgkYV8CvAwm5EfAqpBD ZIkYG3AEP2TlVQj8L/bzBK6CKr9dqaDDqXdUHGLsVK7YQtmRmn3Oyc4FSRhKSVa1REBy /yFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20221208 header.b=AiS1B7fs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a41-20020a056a001d2900b00686bef2c7c5si4892135pfx.322.2023.07.29.12.29.54; Sat, 29 Jul 2023 12:30:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20221208 header.b=AiS1B7fs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229723AbjG2TCQ (ORCPT + 99 others); Sat, 29 Jul 2023 15:02:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbjG2TCP (ORCPT ); Sat, 29 Jul 2023 15:02:15 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EF073580; Sat, 29 Jul 2023 12:02:13 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-99b9161b94aso485308466b.1; Sat, 29 Jul 2023 12:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20221208; t=1690657331; x=1691262131; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gRRM3V/fhfbk4swxDnRjXiwrMJ1xOP6GUPvikr85J0I=; b=AiS1B7fs+dGM33XXRn4MrbV+dKh0ChRaqW2YQngMkIlOch1whnjCy7fVH1b7QMUoAy KpLUo3jbA5/dMVYFEr6rxh7DJiDvzUrs4Wu70B3e462bFo8Pz0n1jCFnCgYMOFsskClQ YzFHyLJvMD1AuIj6zpj//pFVchpTn4T+bXwlHwUqsBhM2o1InQig8ETmLSrwfvlKhBhO gkcz17BcONg9oKfH5DDWHyjG6CM9BSMvVL66MX3jpBQ83d0fX+ZvLM92T2ID3kCsV2FX Um3MdmQr3mssQBDYmZXzN0nayioQWdnTqkW2gpVmWAxARhH6/oTUvuOcwVMzjL5hn4WF McqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690657331; x=1691262131; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gRRM3V/fhfbk4swxDnRjXiwrMJ1xOP6GUPvikr85J0I=; b=G5aR+bwGwc4gkdS/DigumA0ulMJlTjnIC7PqVTfO1H57rOGsBfoZwvpAkioOGUzObh fuIBqsRKQlH8LWCKW1H8LpInZIJZB0txjqh/mHaFW1fSIvcd0HH33iB+rVcZvX4DeBtG 8Lqa0EnZPXCLh6FAUhCbEl/2fU/D+pdv2Po9Do/ni3G3MRtrnENW/iCfNrRL6QRwQ4IY hV4DXbBO8o+FC3Y/1WFIOXnu/KiixWUsnOtA5aGusvN6aTqEvJPbFS5kYiju5972Yf/n GdR7Zq7m1+dA4ZLDTIxEAxnLDQ4FXBa9AgWaAIHB9l+8gleJXjem9s8bkgtACWrk6ls4 ACBw== X-Gm-Message-State: ABy/qLZ55VMNio8MBPdbDdx/aCmD/tRuc3bz+YzbDH5EQlD5x18/ybuR w43vHwNiUYemlW7PWt8DtNTeHoOZXEM2YFImDd4= X-Received: by 2002:a17:906:73d3:b0:973:fd02:a41f with SMTP id n19-20020a17090673d300b00973fd02a41fmr3053590ejl.40.1690657330825; Sat, 29 Jul 2023 12:02:10 -0700 (PDT) MIME-Version: 1.0 References: <20230727070051.17778-1-frank.li@vivo.com> <20230727070051.17778-22-frank.li@vivo.com> In-Reply-To: <20230727070051.17778-22-frank.li@vivo.com> From: Martin Blumenstingl Date: Sat, 29 Jul 2023 21:01:59 +0200 Message-ID: Subject: Re: [PATCH v3 22/62] mmc: meson-mx-sdhc: Convert to platform remove callback returning void To: Yangtao Li Cc: Ulf Hansson , Neil Armstrong , Kevin Hilman , Jerome Brunet , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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-kernel@vger.kernel.org On Thu, Jul 27, 2023 at 9:01=E2=80=AFAM Yangtao Li wrot= e: > > 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. > > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. > > Cc: Uwe Kleine-K=C3=B6nig > Signed-off-by: Yangtao Li Reviewed-by: Martin Blumenstingl