Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2746465imj; Mon, 11 Feb 2019 07:53:33 -0800 (PST) X-Google-Smtp-Source: AHgI3IaB0de2JGT1RaHXpV/PlEqNFKZtCpAfKfPxbrUCWlx+z956YyHLtiymJI1szyT2J8cKXizQ X-Received: by 2002:a17:902:2a89:: with SMTP id j9mr38589189plb.296.1549900413202; Mon, 11 Feb 2019 07:53:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549900413; cv=none; d=google.com; s=arc-20160816; b=lA1vRKo+lKF+RtAE5ZeFhnP8rof+f9X4UUfUHWzXN0PllV+eqC8ZezqJvQL5oUeqvw 4WwPoertO+8o/QbYgnNQhDr47+pmBuEDs4UePnwnskSoqeezIAGiawwDKT+R8wPDmcq9 BA8moRZsKqSk8WW+MprdcL8+MQfnMG9EfFgon08M3EkxnBo6d96aBqBTrWOXFpSrXm7z RA2lqQfCAGmS2IvVpzG8nVxfoTYpHF63vwaAp4NK4wJCjfZbUxQ5oYwi1jv4lkT28hDl j10N0HYj6z5Xuk9haYoF+u8nYNmlnmnsGZmBtqxAP0LaejfOZNVtDoEHCnRqYkAi5Ipj sx8g== 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=npBro35RU+yuUYdlEsicMCbK4Cby68Vl6d4LuSYg/aE=; b=LU3EOmDnwtO+x0QSHbOrMlbPa5BuY1+IAnOOAHEp9wbAUhqxMQy/nPfS6nRsMpxRJP u8hwYArDaDW6CZ09QMvVlSA3n4wq0vpoDiqtuUFUpol2wOyH3u/+bG5qmNb9rv9UaNPM 7/QJr6sAWAtf41XCuT0iU7FunaYcA8uD391mhesHs08YrSuhgCDr5sFoQOnW+NnITG82 nBF8WB+UpqOFGWIeVj4KS5c2Y+kE6fV2PCirTPOytab3n9LHkzvZEFfQHEbvcbbqllsb qTBdb2M/vIfY3nWWcu1WNT6L/8smxv0MGAV9tNlkZZv0jKRz8L9AYqmqiHNAkJJOZo0G nNgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qx3Vdjfy; 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 f13si9517885pgq.355.2019.02.11.07.53.17; Mon, 11 Feb 2019 07:53:33 -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=qx3Vdjfy; 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 S1730510AbfBKOhT (ORCPT + 99 others); Mon, 11 Feb 2019 09:37:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:46606 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731415AbfBKOhR (ORCPT ); Mon, 11 Feb 2019 09:37:17 -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 0C2AC20700; Mon, 11 Feb 2019 14:37:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895836; bh=G75T64K9LGKRNQLm8jJl6HkhEJQaeEzVauselYMqXSw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qx3Vdjfyyjaw+TF/MWPqTtOuaFUQltVHdbRK1JUzMrMr5GPcJnWYeBWOVRDA7bf76 E1LNYOFomVWYerB45SdU1Wv09fcoJM1FmxtqQVeEjPtexOTSBB/i2xsnpm322sA0hV /uLIfJBLkhPStodXyliaSTsA/jRWJgzWiJSHPQOI= 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.20 338/352] scsi: aic94xx: fix module loading Date: Mon, 11 Feb 2019 15:19:25 +0100 Message-Id: <20190211141908.647035609@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@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.20-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);