From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31D0EC2B9F4 for ; Tue, 22 Jun 2021 10:10:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 14B9E613B3 for ; Tue, 22 Jun 2021 10:10:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229747AbhFVKMr (ORCPT ); Tue, 22 Jun 2021 06:12:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:36848 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229876AbhFVKMr (ORCPT ); Tue, 22 Jun 2021 06:12:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4BEBB613AD; Tue, 22 Jun 2021 10:10:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624356630; bh=CAOIKPZnh5iCql18L6jGOIzrPflujJYEKBZxSHgrNk0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BOGZS/aomrEr+BkOgOrMBRXxSQk6wH5owK1uuThI61Pp3Rxdq2NRHNqwFSTNSyyg4 qhZDytzMEbUw3p0yas9r4fEUitGyRKnm2MxT4wX3A8c000fCaM1sARyAzzpNQT8tMJ RxHoKJmhoWdNBBV4vabh3CaT0Z8JiTP9dkmOIrcI= Date: Tue, 22 Jun 2021 12:10:28 +0200 From: Greg Kroah-Hartman To: Kishon Vijay Abraham I Cc: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Lorenzo Pieralisi , Bjorn Helgaas , linux-pci@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH] PCI: endpoint: Make struct pci_epf_driver::remove return void Message-ID: References: <20210223090757.57604-1-u.kleine-koenig@pengutronix.de> <2a12ff97-a916-d70e-9e5b-b796e9c58288@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2a12ff97-a916-d70e-9e5b-b796e9c58288@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Tue, Jun 22, 2021 at 03:29:27PM +0530, Kishon Vijay Abraham I wrote: > > > On 23/02/21 2:37 pm, Uwe Kleine-König wrote: > > The driver core ignores the return value of pci_epf_device_remove() > > (because there is only little it can do when a device disappears) and > > there are no pci_epf_drivers with a remove callback. > > > > So make it impossible for future drivers to return an unused error code > > by changing the remove prototype to return void. > > > > The real motivation for this change is the quest to make struct > > bus_type::remove return void, too. > > > > Signed-off-by: Uwe Kleine-König > > Fine with this change! > > FWIW: > Acked-by: Kishon Vijay Abraham I Acked-by: Greg Kroah-Hartman