Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp29435pxv; Wed, 7 Jul 2021 19:26:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVSN9FdWPTCQKZ9eVghgW0NNXBIjM2/E0qi9JC99ojNnIQJaiFxPpNe0TLknjIZ0x5ANEI X-Received: by 2002:a17:906:a25a:: with SMTP id bi26mr27955871ejb.278.1625711166349; Wed, 07 Jul 2021 19:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625711166; cv=none; d=google.com; s=arc-20160816; b=g08pCoY1Prf2WCpMqhMzy+q7YkktJ8HSy+pDy9kBqvPqqLllFUqOstYbLooGVXK0WJ aPUQSz9QL+qgaGB7gjzAEV09bFtuijymEeBxvP9XrMOAgbmB7Zmcg87sfbJX41cQ+VnD yIA9POKJGG+rl7BdAxrrhDdYnIbPkT1mxdFJejtW2uV7xc5ewpTa4AS8+U6OKjQoxJC4 FSw9+kiob0GuhKN4XCRTTuGvChyBjYzly2723k6ZwtEPp8y8+WB4U75npyd0PEaFmJRr E0gRhCzEC4vpXqWCQQaLkw2W2duKcyI7mkpoizlnhlUdhTaFEGf+RTuZ7clR/7unU/l5 PFyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=AiAJxnIZOKzqEuMrr0cwtdweoj3gsg5W6usvUwKQnh8=; b=h33SqAOZg2owXpiN/uvwrGMnQlWeAxRSW6JqA3R2Mykm5pLwWVF47PpKQW8DvgWtUy nYgXQURBrJvHigBma1x7pXSGcSZiLY8XWO2T3Dw3FhE4pxB0bBJYXpC3HVaWDXA3uq/4 saI89G/futQw+O22NsAtGesvoxL23RJWiU/iL0zBeiEO+ntIRDWS0am6ep9wc4+O0FQn 48w/8gdyTalodj3TVyICVSSMmgm6g9egjvk1hX3W3pMMCv1BayMUuKUnvSVTfd8j7OvI N2P2kzzj3WS4VclhetsN4HTrYChikABUcK09qK9ealaIr/aY3EbQy+1gmUpuxTKxqxcP Kgbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oz43si988960ejc.422.2021.07.07.19.25.43; Wed, 07 Jul 2021 19:26:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230349AbhGHC1V (ORCPT + 99 others); Wed, 7 Jul 2021 22:27:21 -0400 Received: from mga14.intel.com ([192.55.52.115]:62635 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230188AbhGHC1V (ORCPT ); Wed, 7 Jul 2021 22:27:21 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10038"; a="209247383" X-IronPort-AV: E=Sophos;i="5.84,222,1620716400"; d="scan'208";a="209247383" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2021 19:24:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,222,1620716400"; d="scan'208";a="498201106" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.162]) by fmsmga002.fm.intel.com with ESMTP; 07 Jul 2021 19:24:38 -0700 Date: Thu, 8 Jul 2021 10:19:13 +0800 From: Xu Yilun To: Tom Rix Cc: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Wu Hao , Moritz Fischer , linux-fpga@vger.kernel.org Subject: Re: [PATCH] bus: Make remove callback return void Message-ID: <20210708021913.GB12358@yilunxu-OptiPlex-7050> References: <20210706095037.1425211-1-u.kleine-koenig@pengutronix.de> <4c7210e4-76e4-07fe-a40c-a58e331d0a6e@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4c7210e4-76e4-07fe-a40c-a58e331d0a6e@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 06, 2021 at 06:52:09AM -0700, Tom Rix wrote: > > On 7/6/21 2:50 AM, Uwe Kleine-K?nig wrote: > > The driver core ignores the return value of this callback because there > > is only little it can do when a device disappears. > > > > This is the final bit of a long lasting cleanup quest where several > > buses were converted to also return void from their remove callback. > > Additionally some resource leaks were fixed that were caused by drivers > > returning an error code in the expectation that the driver won't go > > away. > > > > With struct bus_type::remove returning void it's prevented that newly > > implemented buses return an ignored error code and so don't anticipate > > wrong expectations for driver authors. > > > > Signed-off-by: Uwe Kleine-K?nig > > --- > > Hello, > > > > this patch depends on "PCI: endpoint: Make struct pci_epf_driver::remove > > return void" that is not yet applied, see > > https://lore.kernel.org/r/20210223090757.57604-1-u.kleine-koenig@pengutronix.de. > > > > I tested it using allmodconfig on amd64 and arm, but I wouldn't be > > surprised if I still missed to convert a driver. So it would be great to > > get this into next early after the merge window closes. > > > > I send this mail to all people that get_maintainer.pl emits for this > > patch. I wonder how many recipents will refuse this mail because of the > > long Cc: list :-) > > > > Best regards > > Uwe > > > drivers/fpga/dfl.c | 4 +--- > Reviewed-by: Tom Rix Reviewed-by: Xu Yilun