Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp732933ybi; Fri, 21 Jun 2019 07:16:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/A4wxmsQOV9UIejFmxhtTi6+3HWblEoeauskWNrmiPk/2HtZBpzKyHe4zheVLrKCqGUTo X-Received: by 2002:a63:545c:: with SMTP id e28mr1830761pgm.374.1561126582769; Fri, 21 Jun 2019 07:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561126582; cv=none; d=google.com; s=arc-20160816; b=FHvTCrQH4RBtqJD/oRxcZAPRoQbmfrFVWCLRNvHw3vQt6m8HSWCuhmGzKHS5gAa5gG kRHxeHyhg6ninrrWWAuMhx9+xVrvyV7lpH65hzILtBLSlCLn4n/NtKvFGSEMzEdmUZtI b+oAm5oxlBGbcMnyau19YSZTWz0DDsgo5l94kTNeddwwyBNbEVTf0IoM5i4LfA0mmLd7 qJSjYHhNIZrUpe6jH2bcwq1LExJGOi+1OK+h9nP5WoDLqSlbEsxsR5VHUlff6qRCl/8x eaT607t5ppMMNqgndoo93J9APVMKuruokPkfvA3kMWhasr6vHqRHkfn6TxhbHASEPKgx 9LhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=U39HZWQ628cIyMRFEVGFFknoFDCGV5UsqCAJZ8L43c8=; b=LVLlzpYo50ezHgh7N3S9ZSetGShIR50Ft+63ySy2RMwMeC05tRUNXQRlKY2qqHDHF1 lSr6JFaFFrv2yfnq05BSDVrrPVlv/CTeYYQao5hhaVyQw1NTcSTExmBA1Q9100j+2OWK Vnyaa+aOAmbTctmtC4zv4ussO59czXyr14XKTzcChORrGIJf1uHakc5UMZJBg9z1wpBk db8aSexE57JIs94yo8otJOG8FoWuJWEWbsQ3aa94odWBdC7T7kk8VpYgq1jUQjq8k4vG s90T8kjeORoKOGQ9Gt/O4bYOVLCUgjpBiJKwvWMAk2c+XG2czZp91EoOmgZI6cHNRWPw 8RHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SsgU3AMS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d5si2739017plo.396.2019.06.21.07.16.07; Fri, 21 Jun 2019 07:16:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SsgU3AMS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726219AbfFUOPx (ORCPT + 99 others); Fri, 21 Jun 2019 10:15:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:46014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725975AbfFUOPx (ORCPT ); Fri, 21 Jun 2019 10:15:53 -0400 Received: from localhost (unknown [69.71.4.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C822F20679; Fri, 21 Jun 2019 14:15:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561126552; bh=cKl1ATkQpP+oDNaHNi2VIa2C13hcw38+hSlhNpnDBWY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SsgU3AMSfzeUXecKcYbTcI4sG8aRDVGY+ybbHMeTH0cdpQEpHre2neo26baNKeXcj YxBd+09SqWak0kpjG4tgMwUmSfVfRQvGEzhucM1m6LY+olmtxYTLMbt0IVZup5NT34 BBEbhR+ZNvO7BxfdS7VUJgWyaMN2BPji7kKs6b2Q= Date: Fri, 21 Jun 2019 09:15:50 -0500 From: Bjorn Helgaas To: Greg KH Cc: Rajat Jain , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: PCI/AER sysfs files violate the rules of how sysfs works Message-ID: <20190621141550.GG82584@google.com> References: <20190621072911.GA21600@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190621072911.GA21600@kroah.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 21, 2019 at 09:29:11AM +0200, Greg KH wrote: > Hi, > > When working on some documentation scripts to show the > Documentation/ABI/ files in an automated way, I ran across this "gem" of > a sysfs file: Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats > > In it you describe how the files > /sys/bus/pci/devices//aer_dev_correctable and > /sys/bus/pci/devices//aer_dev_fatal and > /sys/bus/pci/devices//aer_dev_nonfatal > all display a bunch of text on multiple lines. > > This violates the "one value per sysfs file" rule, and should never have > been merged as-is :( > > Please fix it up to be a lot of individual files if your really need all > of those different values. Sorry about that. Do you think we're safe in changing the sysfs ABI by removing the original files and replacing them with new, better ones? This is pretty new and hopefully not widely used yet. Bjorn