Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp420521imu; Fri, 21 Dec 2018 01:11:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN7XfyEzSPAM+135wYIRtvpvGyeOhPbakCk+6zmE1RjBSjrP21cUbLmFs3CzBP2Xa0VNBMZI X-Received: by 2002:a63:5e43:: with SMTP id s64mr1610177pgb.101.1545383490354; Fri, 21 Dec 2018 01:11:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545383490; cv=none; d=google.com; s=arc-20160816; b=yWfPZOb8QctIjfwWKUm31EhhoK4QuQOHyILd8nKyiNFHxgfojSirPMr0w+ENU2hkuf sN4PDq/9ZfOq3EIEP/xpu0flW7FFeL1f0vq7y+bO5utPqwimCdvm1eDzKgM6K3D5qNJg dCfwBATi8/YfKDVf2CWlYQyD8noDAU/CUYfqjxfNaYO34WGchVBRsGc+svk4hXJhLYYt V2xpqpRuKREWI5kRBIa+Zqe39T3XMnZgDeH4UqzOX4GHXJLDK3j36xNJNITKOvkeFODE QygTXUxe+KJUtCfdJrdv0BmEypELJ6XK7dNy/dBrolw68EI6scowWCo3VPjZfe+IdqeW /Iqw== 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=K4omm+Z3l9/0VhcZwIXTKc9vjnXXno3u8HsXaj9EtYs=; b=ueQgjDJrFni5bpR0XyQP41ROSAkXGDNR1siEsOh+MPSEj1iaMajd3kKJxnQ3DJIes5 iNfZ2acEkdHr9i/kL6Uc7rdmaOWqXQS2w+oAk/XbzUOC6sullQA99i10nzuEQOmeVQdB kcte5HhnnKCMT11VYRwmT8C7P41N7hJpS4zzKPCRpdaIXKDCKGiy0n3HtPfkcWZlRu/5 lN+BLCXb6W8A/CavVxcrAKtrF3bLXetTWnxpBDn4PR8jA7gpR5rNksKdRGvdvrKHI/Co Rhuyt69GoRAVbz3yjMixxj0qL0FFFMDowIxPrZegeO8RfMFMT2lnFbOgynjFdBoDXJUx Yxkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BRn0fPkM; 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 gn8si19699934plb.264.2018.12.21.01.11.14; Fri, 21 Dec 2018 01:11:30 -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=BRn0fPkM; 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 S1732740AbeLUHzA (ORCPT + 99 others); Fri, 21 Dec 2018 02:55:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:59218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731366AbeLUHy6 (ORCPT ); Fri, 21 Dec 2018 02:54:58 -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 4496821906; Fri, 21 Dec 2018 07:54:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545378897; bh=hCt/G6i9HInQZTDF08SRWYRHC/T3t2TjiEJX/5MCwLQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BRn0fPkMKkPf/c//E6x9o972yAnJhBNfPo5yzOS3Fj2NUm9AvbB3c7w9tFtb3VO3f YnBUD0DECcQIhq/1l87LH58Xy5tAlqnBkRVkd7xvwh4vjoIXAagm3pa6pXnsQWozA2 4Wks21OgMXkVbZ7nWMimRXw0P1lwElPQsDXFmygA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Bjorn Helgaas Subject: [PATCH 02/10] PCI: pci-sysfs.c: convert to use BUS_ATTR_WO Date: Fri, 21 Dec 2018 08:54:34 +0100 Message-Id: <20181221075442.17109-3-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-sysfs.c can be trivially converted to use BUS_ATTR_WO(), so use that instead. Cc: Bjorn Helgaas Signed-off-by: Greg Kroah-Hartman --- drivers/pci/pci-sysfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index 9ecfe13157c0..25794c27c7a4 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c @@ -412,8 +412,7 @@ static ssize_t msi_bus_store(struct device *dev, struct device_attribute *attr, } static DEVICE_ATTR_RW(msi_bus); -static ssize_t bus_rescan_store(struct bus_type *bus, const char *buf, - size_t count) +static ssize_t rescan_store(struct bus_type *bus, const char *buf, size_t count) { unsigned long val; struct pci_bus *b = NULL; @@ -429,7 +428,7 @@ static ssize_t bus_rescan_store(struct bus_type *bus, const char *buf, } return count; } -static BUS_ATTR(rescan, (S_IWUSR|S_IWGRP), NULL, bus_rescan_store); +static BUS_ATTR_WO(rescan); static struct attribute *pci_bus_attrs[] = { &bus_attr_rescan.attr, -- 2.20.1