Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp420642imu; Fri, 21 Dec 2018 01:11:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN4uROYS9JHLLoNYBbYEG4ngjx3AuNPEboO45be5rWCxDK70QQgJFhdA0/8fyPtmuakfe2EB X-Received: by 2002:a63:a401:: with SMTP id c1mr1596779pgf.403.1545383498426; Fri, 21 Dec 2018 01:11:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545383498; cv=none; d=google.com; s=arc-20160816; b=cS0ZAzSVBRr2Mpmx01ZIZacDPippd+2EzhCQc+T7sI/1zL5gBS6Z9qshXxb4iqt/23 Flk9tajtlGx9x8KMPov4BuS/96n7zbattM3x2stLHT/e+1Og7LHkAh6IJ1IIAMAoGZSD UXcqvjI5I/dhQa4WO0xuuFKqG5YbTmLUpFPlz0N2DEnMLyA6bbk9yYZnflbxS6PuGMS1 1ZWZ8sXgapk7glxXVN8GDxJQoAAk+PvXUgOoEs2am4/SZnaCgnbXcfhhq3UTIWAz5ml1 himUIaKjF0ESfUebspgMVPDPbuIsRTWtFzBRq3/Fqe7P4nrbeBJxnjIES3umsn/73NYu Ht/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1C2xvMDh47UFTr9+e6akH+nUmSp7oQQeCeFAsSw2XXY=; b=ItoqJtuNq0bX1hnvjJnak43l6E/NnRyWBkSZFD8cWSl7KE8W56lVY/mnPvQX1Uf5m9 17iFQDUJqVjDCha/Mg7H9JLKMqSPNEG1qLAARfrSE1FL6+zqxllyuXirnxSu4u2wylbR 0Q6y51HRAi2yM2CRxEc+AzKhb6Bb+i+CqIvlJdDcaMVbTmcCp8sDs74zdSfa+n4tM8Lb RAA2hTpZhF3xfvK9sn9P6294u78NDGEXvlnwgQP/rCH+OeDm1gtci3vG+kDx6/afeHj2 XJr2Dl1tW42xvF2LcoR0vmslZzroVumlNIDn7hdKuKdinSrU3vzRfssYFOjWyPPlaIkm rg9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fZI+770d; 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 m30si22579843pff.158.2018.12.21.01.11.23; Fri, 21 Dec 2018 01:11:38 -0800 (PST) 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=fZI+770d; 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 S1732590AbeLUHy5 (ORCPT + 99 others); Fri, 21 Dec 2018 02:54:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:59184 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731366AbeLUHyz (ORCPT ); Fri, 21 Dec 2018 02:54:55 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 A5064218F0; Fri, 21 Dec 2018 07:54:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545378895; bh=47S8YJipzUMBfrOzpB93E4MJioF9T1iRgreKTFl+cqc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fZI+770d5Y29JgTm41cokVGArX9Eb6srlSgGac7yoD+NCgSQXtLIVuTmWLLiSZ7NH 1UFYMGmwFLIns2WPYaPMg4CugKlGJ/5msisw51tPxoqozu/OOzWhlbIb/iVE2phTwz Q37cbrjzfu9LoPNfLPdaPmEMuy637LNMcl8+UdCs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Bjorn Helgaas Subject: [PATCH 01/10] PCI: pci.c: convert to use BUS_ATTR_RW Date: Fri, 21 Dec 2018 08:54:33 +0100 Message-Id: <20181221075442.17109-2-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181221075442.17109-1-gregkh@linuxfoundation.org> References: <20181221075442.17109-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are trying to get rid of BUS_ATTR() and the usage of that in pci.c can be trivially converted to use BUS_ATTR_RW(), so use that instead. Cc: Bjorn Helgaas Signed-off-by: Greg Kroah-Hartman --- drivers/pci/pci.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index c9d8e3c837de..fda84538de79 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -6034,19 +6034,18 @@ static ssize_t pci_get_resource_alignment_param(char *buf, size_t size) return count; } -static ssize_t pci_resource_alignment_show(struct bus_type *bus, char *buf) +static ssize_t resource_alignment_show(struct bus_type *bus, char *buf) { return pci_get_resource_alignment_param(buf, PAGE_SIZE); } -static ssize_t pci_resource_alignment_store(struct bus_type *bus, +static ssize_t resource_alignment_store(struct bus_type *bus, const char *buf, size_t count) { return pci_set_resource_alignment_param(buf, count); } -static BUS_ATTR(resource_alignment, 0644, pci_resource_alignment_show, - pci_resource_alignment_store); +static BUS_ATTR_RW(resource_alignment); static int __init pci_resource_alignment_sysfs_init(void) { -- 2.20.1