Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp761165ybi; Fri, 21 Jun 2019 07:45:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMA5+Jti7tvt0af+dYZW2Hl4g8canuZBdw6E84VheTHERo+r7ywsCcwIPfFd2E9pWm5mVy X-Received: by 2002:a63:d07:: with SMTP id c7mr3867352pgl.394.1561128329094; Fri, 21 Jun 2019 07:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561128329; cv=none; d=google.com; s=arc-20160816; b=A2RFFTOQLJ/O/tf09e+vtdjFZs8ck2pDzm6FYLNdGHHWkMWzpCLPMqWVfhLP1peuZp /s8e4zCpiUv+pj4Tap/0lF55ChrkYYTZn/sjwU6kCMoIVqsvuI8Xwy4nqMrnW4xs1BIw +sgQWiGMc9ZMnsUkXsA4clN4QgJdxPnLjWKa8g/av1Jsd9oejYaQBHGJs3Ad1++P7bwC MP4Lm1RnmuWjjJg6chMDm3sT3DdGsePwAhwHy0rnRshf/L3/9NjeorOIYIuf/RDsgC2C smcra20/lxCTi6NJlxkR0U/NqTZ4jgAAvhrsrefqJAfeYwW2llwnWozGuF8kVsHP97vZ HHnA== 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=a4fit4Rjt/0KgLuN/nJluCthkn+/J7KrgBe6NX6kU88=; b=LtIDwDjOKhzt1CX/d5oLl33G/bJHii8ow6oQhXsFh1AQvCoIfyjgNjCBlxq7GSE52l SNV3KRzrx6NRsubipaAtKhmJ+o3MalgI7DlYyNEGZy06VV8gFqdMvL5KiFJIWnymxue5 VYB+n+vYTjsG9WPfXxVY8V9G+EWd3X30M2gZ8Rj0/s09hFGcuTyvtw+b0xG0KLafI7h4 JDB9R4iDIc3mZyzoK42EYRHbIwCnRgU30qEUNcOxcDL3oZAY4ejGqHAG9u60JjU8xwwT TxEHUWZbFB+vAGM1x10FopIrNFDOoL6FFe9sV6EnCSCaSzNI/HMlOWOb3+BXfX7c7V+T QuFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ThrUwR3E; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 100si2784032plc.415.2019.06.21.07.45.13; Fri, 21 Jun 2019 07:45:29 -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=ThrUwR3E; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726299AbfFUOpF (ORCPT + 99 others); Fri, 21 Jun 2019 10:45:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:35416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726049AbfFUOpD (ORCPT ); Fri, 21 Jun 2019 10:45:03 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 002172089E; Fri, 21 Jun 2019 14:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561128302; bh=q70MibmwnCTMbTaHdEAX5LqZY9jUKGiJgTvCSHm190c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ThrUwR3Ecvs/hHhP6WaYD3l1QmgyOaHiKD9NhXU3miNk1Wa9VO/fvZRyeE7m/us0r xkJBbtBjl0q+VlydHOG1VGEPTWGO1W6VMPBSWskl6G7J01wHOl/OdJmGYvl6qt4q4V nl+36skBpAqHKt9LNPqBxRn+39A3p5HRVlfGAADA= Date: Fri, 21 Jun 2019 16:44:59 +0200 From: Greg KH To: Bjorn Helgaas 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: <20190621144459.GA6493@kroah.com> References: <20190621072911.GA21600@kroah.com> <20190621141550.GG82584@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190621141550.GG82584@google.com> User-Agent: Mutt/1.12.1 (2019-06-15) 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:15:50AM -0500, Bjorn Helgaas wrote: > 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? I doubt any tool is parsing that monstrosity, so you should be fine :) > This is pretty new and hopefully not widely used yet. Only one way to find out... thanks, greg k-h