Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp246744lqi; Wed, 6 Mar 2024 16:21:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV7tmdXZ+QtHm4f97mpJcJ8YO+la/06NPVo62YMoGgIS4H1sLiYthj9i1Ho6mkL9GHGXzFT8rvEhPR1vR5yqHzgAvCsy+HmXnIEbOMkkA== X-Google-Smtp-Source: AGHT+IFMrcqUNNSaW8anBZz+yy8pw59HnBlxgRviIScm7FcVMMFTnSCopmOmwXsoUGjuctM6q3/i X-Received: by 2002:a05:6102:3546:b0:471:fb61:136e with SMTP id e6-20020a056102354600b00471fb61136emr6174454vss.24.1709770867573; Wed, 06 Mar 2024 16:21:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709770867; cv=pass; d=google.com; s=arc-20160816; b=VwG9Ob2kKMO2p+FBLIV8DOxXohKHmkbnTQsjWgRtcgNKFFwph5e4v65HlwJ65VSTOx DrcDeEcAzg7u4N5WC5PdcI7r9X3cvCt2EC5qbaOCKLU9UF+9uTZF8DNs1RTKlISp3kbu qQkoyGymSAxHVMqnoJyY5G8wU0UFUwiA6/CZyz+hPpLn2R/6lCJUSMezlytN46UzjRuF pkno/xod4fvVGmKmBUs6ehiNpUKH0qHV7rSPI3Bli7Z71nuz0sIxulXKitE+NGtW+Xh5 hmF/NZ16u6OyQGtgZBYR358SXDS4E8QREn3X7CILVEzljbYJ1Mo3SUTc70wf0QBbZAaL SLig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=lQLA4KDP1+a8sOvFY+53datgUNAEzd1jFiJ+rERFdpA=; fh=1bS/DS8mObW7ZXHLFIVoul0Mg54T+iLdXB61FDNiMMY=; b=ZQg64bdAudS1qzehorEsqPBfz9EZ8rRP0FNqaQqbLroU/X7u6Vs70cbJ1hdL4a+O/m Rc5ZorfNxF+HOKbCHF/0EQuFvYqFKEtDYJZsy8fsMxaSgaxIq80tTLnvg2Hxh8CSNWrQ nQZlMDBYrEkv3xG2+wYcAUBokIxMyQwsH58MuSi8fCWF57eMzi/RQU7WDk1RXjbAOHBb ORma9bJty8FS2hw2R7rEiiYlDxgQIFVtliOxM7Z5SHsBxpJ3x3MsGHtpvCIUSNsSiJ+A eGMlt8YZKfGSXlnrgvK3ecMEAsItMlIwH0lj82dAxtI+kiLhItXhaWcSoS4InpbaqbsZ Lciw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nM15LYMg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94776-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94776-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d15-20020ac85d8f000000b0042ef8746f3esi6817735qtx.772.2024.03.06.16.21.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 16:21:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94776-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nM15LYMg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94776-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94776-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 989641C2403E for ; Thu, 7 Mar 2024 00:20:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CB5981F; Thu, 7 Mar 2024 00:20:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nM15LYMg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64F2837E for ; Thu, 7 Mar 2024 00:20:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709770847; cv=none; b=VLbvDwsIB5Rr5wF2/7DIrNrRfhK7clISuqLpVAgtZvWyV3MOW+vW0OgbpuBMwVKbqWoXzs8ehnAYNZJa1wwVnYk/jgeWm34jq4Pc3YuA2v6najAdFj/n1gxAjvzCvWJ1ViABlA5RTv8vOGvOwCQljD2nPSpccN4j/QAJu75tBMo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709770847; c=relaxed/simple; bh=lQLA4KDP1+a8sOvFY+53datgUNAEzd1jFiJ+rERFdpA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Yq1Es+MJjq/o+M4TCVKtnYMZOt2o63hmN//Sl1jvqBs8V6VTv4n04lOOvFaKwGXeI6x96Psw8XZ7xiJ5hKef+IHUb+s2XHqvkJJhlezRL2mR2PF+AvgXy7zluz4z2kBLvRqk/ZXjX5BGQAVa5SqTXOPwOpMea5pV3DNLzjYZek8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nM15LYMg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1BF7C433F1 for ; Thu, 7 Mar 2024 00:20:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709770847; bh=lQLA4KDP1+a8sOvFY+53datgUNAEzd1jFiJ+rERFdpA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nM15LYMgt4MnF6cPhWhE5JrtjD9AeRuO007ZSvNSseaZfv0IHiEU6/9VGhy5SAZlu ZgQGJ7JwVntwuWV+KxLsU/ulX/J53oAtdsSq+XmLKC/N/2unEM81GpkHpfbJ+tZdNw ZpIUZkDfoEWUTHQueeJ8ju2YRmovwowQvNfLr1hQ21G1fUs4W8uzzPLpWTHQDxKqra T/NSnCnsa5FpnKckc5ncg9Wu6bZZJ11no6fqBCdNjLAwg+v4IEaE9euqsyKAq6o89D YP5R9lE1bnUFtNEslRWtchl1Qv6yhWMpyt8w1CSKfS5NFhoKzXc0+CnZNpODSS2BcS 9Bs5DOI1KIKNA== Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-512ed314881so303479e87.2 for ; Wed, 06 Mar 2024 16:20:46 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCW11uzVZv3B+PjEiD2Xce0NOe6X+yeGIEzomTfdMrSkK9hZwSSuRU0l0OYmVOun692t+k8Cs30zPxDo9tKumN3jXX3Pgz2J3sPhDYeh X-Gm-Message-State: AOJu0YwjaXvpwfzG/7iQPPtW1J4b8y31U4wKFybm9/M0uSSR3kBE9Qwr ET8hi7j33VKameyW0wwY8QL7SP/Dg40hy599bSA6RLjTSwsFoaJeAiYj5X+ZoxUnUYwuyJTGKpg nV+oL81iYITgdUi9BHWwYuT/8Uz8= X-Received: by 2002:a05:6512:234b:b0:512:fdb3:7a9e with SMTP id p11-20020a056512234b00b00512fdb37a9emr395570lfu.31.1709770845134; Wed, 06 Mar 2024 16:20:45 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <4a97c8e6996c9c95244715310b57ce5af6ccb1ad.1703596577.git.u.kleine-koenig@pengutronix.de> In-Reply-To: From: Ard Biesheuvel Date: Thu, 7 Mar 2024 01:20:33 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] virt: efi_secret: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Dov Murik , Dan Williams , Gerd Hoffmann , kernel@pengutronix.de, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 6 Mar 2024 at 22:35, Uwe Kleine-K=C3=B6nig wrote: > > Hello, > > On Tue, Dec 26, 2023 at 02:28:02PM +0100, Uwe Kleine-K=C3=B6nig 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 b= y > > 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=C3=B6nig > > Is this patch still on someone's radar? If a resend would help, please > tell me. > I've queued this up in the EFI tree. Thanks,