Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1140863pxy; Thu, 29 Apr 2021 00:07:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzurG4gWCLTUNKYnx//DbuRTowcPdofQX7SKKjfSBG9IuF1+W/O99jN4gnZj2lLVIogkSeg X-Received: by 2002:a17:90a:f283:: with SMTP id fs3mr8485465pjb.122.1619680036245; Thu, 29 Apr 2021 00:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619680036; cv=none; d=google.com; s=arc-20160816; b=j5Mzpn7/bY7W54I36vgnDMfRWDalhAcKRW66RsKevM5NilucM6Or1GnUe3nVFlHvKg nFfXsrwMM/DIl4fDJMWkvAsAlIAJ3c7jjGgO/p6P+jAWN7KBG5OnAapQR27nvDxQv8Rh WtS4Cbwrt9AN+55nY2SxvDQgNpHboXFoDY4dcGX3I0luExsDBVAcGzsep0cGhObmQE4M Ia3ZWdw52PuR/8Wm+wMGkMfsxY5JwQvh7brJo01+D50MWT4Mwv6HEaqnCdnFU0ASyuLu 2pQKaPXJ34L8VohAMvW4HKN9g9dGPXBvZQiYe7r4bgqsnDDxdGw+pFYiKeA0R4zDmqk6 3TOA== 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:dkim-signature; bh=Jp/qTUCVKdFWu+eJzJJVnDpY18g8T/UFlZgLSIwLdYs=; b=BZg6o/FJCg6dA/mvpFWNcWaWO98uiZMY6SRfB2K5WDjlxxjjvMUxLF+uptEEMX+/9u dP0OoU6hGy0uh/b+93yJSiAHp0a5BlBdV7KDBjsQILsSHOtJq9/uqAEfnblh6AFNFnpa yAfxNrouwCTSBz2C6vgY6+xhQuv/NKlg+xxw96vSDgKXGd8659nLwQaD5P3Pv/HvUuUt mgegR/9qdcDYkkYwjjSUMlTYijeRpC4UKt6mrNU7xwtK6D7Dz5QbMMlGgExP5SHtTP+7 09Av3EDD7szkeYIB7E2HUrKexO2pknEFS4tfGE0cktBajBAAF8yfOBaKDrmd+Yu3y5bc IshQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hq9y3u89; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si2400829plv.281.2021.04.29.00.07.03; Thu, 29 Apr 2021 00:07:16 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hq9y3u89; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232753AbhD2HGI (ORCPT + 99 others); Thu, 29 Apr 2021 03:06:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:60634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239591AbhD2HGD (ORCPT ); Thu, 29 Apr 2021 03:06:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8D0036141E; Thu, 29 Apr 2021 07:05:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619679917; bh=GCQlMJMfukGtOitamxhM95nYZIGfkCAILI+JTYjvq54=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Hq9y3u89XB8wff9zbfx+aYL0qQ3C1HiyviyZwZnh158O+ObPtXCcwUTso3/eI/av5 LJ3Nd+yRNy0UMHqKLJdcKJ9oTPIT5Y54nXVC8JQDhpAQlKxS/neJf3Sca5Xjr2YIw5 r0q/TSv2ijoUQEPEvc3Q9pnbWx7bWvd4CUNOSpCoYyAosVTSDJOAlPO4Mp+IF+3BOM Eph42q03aTR/iDP9vuC9CewSSsBgMV6UMyy+Gxdjo/2qX/QrnVuQ4kLd+Z3NJl1HGB icHODrlhj/LZY2k1QY5c0miDpqHDbeAHzj87jUMVYKG697waBg+RgUQec2bD3Rae/v Xoi4mtHXTqz0Q== Date: Thu, 29 Apr 2021 10:05:13 +0300 From: Leon Romanovsky To: Valdis =?utf-8?Q?Kl=C4=93tnieks?= Cc: bkkarthik , Anupama K Patil , Jaroslav Kysela , "Rafael J. Wysocki" , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, gregkh@linuxfoundation.org, kernelnewbies@kernelnewbies.org Subject: Re: [PATCH] drivers: pnp: proc.c: Handle errors while attaching devices Message-ID: References: <20210424194301.jmsqpycvsm7izbk3@ubuntu> <20210426175031.w26ovnffjiow346h@burgerking> <210271.1619670673@turing-police> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <210271.1619670673@turing-police> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 29, 2021 at 12:31:13AM -0400, Valdis Kl=C4=93tnieks wrote: > On Tue, 27 Apr 2021 07:26:27 +0300, Leon Romanovsky said: > > On Mon, Apr 26, 2021 at 11:20:32PM +0530, bkkarthik wrote: > > > These were only intended for a clean-up job, the idea of this functio= n came from how PCI handles procfs. > > > Maybe those should be changed? > > > > Probably, the CONFIG_PROC_FS around pci_proc_*() is not needed too. >=20 > Will that actually build correctly if it's an embedded system or somethin= g build with > CONFIG_PROC_FS=3Dn? I'd expect that to die a horrid death while linking = vmlinx due > to stuff inside that #ifdef calling symbols only present with PROC_FS=3Dm= /y. We are talking about pci_proc_detach_device() and pci_proc_detach_bus() her= e. They will build perfectly without CONFIG_PROC_FS. Thanks