Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2713949imj; Mon, 11 Feb 2019 07:23:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IbsLd1YzspSBPkVgSZSakC68U+VKs7R9ObZvom488w6+wPBbFQrze0BvvG7vnZ1JwbzdVgE X-Received: by 2002:a17:902:7293:: with SMTP id d19mr1251326pll.29.1549898604536; Mon, 11 Feb 2019 07:23:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549898604; cv=none; d=google.com; s=arc-20160816; b=XpPj7Hi+mpqCbQC/ROCoy0j2ZjJLMkSzrThoVAkGHXN8ZSzVGYyWHKsN2xGEIumJK2 sw7lTs+s2oP713FTnqeDvBTXf6l/iumNUtmYIcvwM0gjjF7MaFVZfHGW5EorpQrWBkBS gpf2rHkb0FtGiz8jj5+4LQr4buDvj6GraPXyO078Q4uB5Loqu6MnlSmQHvmj1qaInPnk m4/+6E8D9mYSK5TLIPJx4IMLJMwt7dMxA/jOOAoS5qfLlwCptagNvhFNMiGWMrxNxjkd ifOGTRXVxWgFc5YDHduoo84l/gA5ZmxX0bf+c297NRC9NVuP4XYXILz9rULX1lmA8Mnq MzyA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=R4lkruvbYSHEbwg0IWWonabYI0fBdboNGwuytbqeICI=; b=Kvp8P/jIks37jKa1e47InOpDKfHAOMOpV5QaunV1R+fdugDzA5Y4HbzqVwewu+Ht7I 4skTtkREfzXz3gYjX42xC0mvS3AO3XVA+1UnzarxQhF9AwcCHJT5QM5fL1RlJNs58r6U PYFmlcm2iAl6OjtfTI8XXu61s0Ku6W3dUS162VoclVWiYJpe/RC23qIbdc1ifTBvMoGU 0rgpfR3vvwz4Rzz993f8ilN2wf2KCKOEp5N4j/ahWgBYlAIWUftzIysgKELHmLvqLuBb J9Lzan22qxDVCSu5NFMpY+jsaXMh4dSOHeFMt9l8wThPEDtIl4gypGGeRHac8eqtpM6c OH5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=W6QBcnsc; 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 79si9979727pgb.351.2019.02.11.07.23.03; Mon, 11 Feb 2019 07:23:24 -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=W6QBcnsc; 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 S2390789AbfBKPE3 (ORCPT + 99 others); Mon, 11 Feb 2019 10:04:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:53446 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390776AbfBKPE0 (ORCPT ); Mon, 11 Feb 2019 10:04:26 -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 26D22222A7; Mon, 11 Feb 2019 15:04:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549897465; bh=rO6xCw52fkUG7/SrWPI+bvZsnRhNxOyUkgrSMQuSl6U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W6QBcnsc6R8tJMuNXvwMVVBp9wFmDEcfuLCwFKQyfLDKbRc/STfN+4bp7V1s+ISb5 rqxKOFyHM273AMbL1JAokJqgdD4F6x3qwWUYEI7dW+P0h8o7OWE0WQ41LmueBBnQvZ OkNNxdlZ8S3/IrXG4IDaEJ7P12BGrlCxBTiplDhc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, James Bottomley , "Martin K. Petersen" Subject: [PATCH 4.14 191/205] scsi: aic94xx: fix module loading Date: Mon, 11 Feb 2019 15:19:49 +0100 Message-Id: <20190211141840.900755496@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: James Bottomley commit 42caa0edabd6a0a392ec36a5f0943924e4954311 upstream. The aic94xx driver is currently failing to load with errors like sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:03.0/0000:02:00.3/0000:07:02.0/revision' Because the PCI code had recently added a file named 'revision' to every PCI device. Fix this by renaming the aic94xx revision file to aic_revision. This is safe to do for us because as far as I can tell, there's nothing in userspace relying on the current aic94xx revision file so it can be renamed without breaking anything. Fixes: 702ed3be1b1b (PCI: Create revision file in sysfs) Cc: stable@vger.kernel.org Signed-off-by: James Bottomley Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/aic94xx/aic94xx_init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/drivers/scsi/aic94xx/aic94xx_init.c +++ b/drivers/scsi/aic94xx/aic94xx_init.c @@ -281,7 +281,7 @@ static ssize_t asd_show_dev_rev(struct d return snprintf(buf, PAGE_SIZE, "%s\n", asd_dev_rev[asd_ha->revision_id]); } -static DEVICE_ATTR(revision, S_IRUGO, asd_show_dev_rev, NULL); +static DEVICE_ATTR(aic_revision, S_IRUGO, asd_show_dev_rev, NULL); static ssize_t asd_show_dev_bios_build(struct device *dev, struct device_attribute *attr,char *buf) @@ -478,7 +478,7 @@ static int asd_create_dev_attrs(struct a { int err; - err = device_create_file(&asd_ha->pcidev->dev, &dev_attr_revision); + err = device_create_file(&asd_ha->pcidev->dev, &dev_attr_aic_revision); if (err) return err; @@ -500,13 +500,13 @@ err_update_bios: err_biosb: device_remove_file(&asd_ha->pcidev->dev, &dev_attr_bios_build); err_rev: - device_remove_file(&asd_ha->pcidev->dev, &dev_attr_revision); + device_remove_file(&asd_ha->pcidev->dev, &dev_attr_aic_revision); return err; } static void asd_remove_dev_attrs(struct asd_ha_struct *asd_ha) { - device_remove_file(&asd_ha->pcidev->dev, &dev_attr_revision); + device_remove_file(&asd_ha->pcidev->dev, &dev_attr_aic_revision); device_remove_file(&asd_ha->pcidev->dev, &dev_attr_bios_build); device_remove_file(&asd_ha->pcidev->dev, &dev_attr_pcba_sn); device_remove_file(&asd_ha->pcidev->dev, &dev_attr_update_bios);