Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4831522ybl; Wed, 22 Jan 2020 05:33:17 -0800 (PST) X-Google-Smtp-Source: APXvYqzYJlml9uhQhhnuR3Q/X6FaSF6tbgCnaSGUR11AUS1zO+CbzF5j5wuoO93eaQCj77hvqSoD X-Received: by 2002:a05:6830:1188:: with SMTP id u8mr7377391otq.274.1579699996857; Wed, 22 Jan 2020 05:33:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699996; cv=none; d=google.com; s=arc-20160816; b=tm/KiuKZGgWpu3E1bPSRBNv3CGyOO3ants3YpMh7OASQqttJcHl05z+dudAmL3ZpdR Wu6j1y5R+VrAT0uijDtQP8dQsExgAO+UT1Ib5Ix5e/B51fb3gRNKZ+UYYe2tNgTVysbZ FKXXmBmhnYlOWOE5bRKRMjj0ZJCUqWCocm0I43yPfwsN/aLUuDwbDT4XnzPmkrX2t3Df 94YMlKN3Hd7+6gkOzRzYZx/YHEksuVd/Wb+rnO0/+6/tdzCUyrhNVrFavHlNerHoHdDv BS0nSf0mdmXvaDVaPFcHrNy9p+BkR+104TAEsKyvvIAr2xnWg/B/xhB9ud/umKol0I3Q 2gSQ== 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=O3Y0ockISgY2aD7Sc0uL8v0CvX5z/06+ZQUiO4ESNWY=; b=EUriWCuYEYge6eTH10bm1R0WuuFzwBgDIUPSaQxeHKm4AFijbn3rfR5QXwfAPGFbqT bgNn2X2ZYXcEVpaWeTotHrNq0W2JqijFUoQ3KpZNTgTYXpRBMyJalFK7AB50E2JCdXji 2bl9qQJrsKTadr+9v4RaS0cGqLBxisJ5Wus7G6LUSuFqtIhJjNg04WhOxWECXwlqf4/K fV7sEQREg80KqUYPTqZkvQQ6VOVikPXYRzKHN/jUpMZQx0DwPwP5C4wWjmi2NdJaU2Ea JY1j8DdpHvu0ayV3R0y2WeyjVLEEHK64djJcZieoG+1Ya8rso6wQN6Qq9U75fZFYVAFJ YsOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cNmqEXrX; 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 l204si20818968oig.31.2020.01.22.05.33.04; Wed, 22 Jan 2020 05:33:16 -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=cNmqEXrX; 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 S1730670AbgAVN1R (ORCPT + 99 others); Wed, 22 Jan 2020 08:27:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:48260 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbgAVN1F (ORCPT ); Wed, 22 Jan 2020 08:27:05 -0500 Received: from localhost (unknown [84.241.205.26]) (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 3C61024688; Wed, 22 Jan 2020 13:27:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699623; bh=l7n7uBEtGZUT61sBmuInYx84GY56GaOOKqb90/z8pD8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cNmqEXrXxOD5sYbwzffux8CDrk2Y7fLGAMVZvfKbF4mDfkIZXx1jBNaBnHIBTrELz TiAT46dOqqbyyqH8rSiUYp2FuBbV4ySceiiU3wvQs9/HSK1fDsfXf/6fjd7F5usVEc IFZf60jFv5gT8YOsdUtzgnKmXNlETeOm0iFxEYHg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xiang Chen , John Garry , "Martin K. Petersen" Subject: [PATCH 5.4 200/222] scsi: hisi_sas: Dont create debugfs dump folder twice Date: Wed, 22 Jan 2020 10:29:46 +0100 Message-Id: <20200122092848.027188408@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Xiang Chen commit 35160421b63d4753a72e9f72ebcdd9d6f88f84b9 upstream. Due to a merge error, we attempt to create 2x debugfs dump folders, which fails: [ 861.101914] debugfs: Directory 'dump' with parent '0000:74:02.0' already present! This breaks the dump function. To fix, remove the superfluous attempt to create the folder. Fixes: 7ec7082c57ec ("scsi: hisi_sas: Add hisi_sas_debugfs_alloc() to centralise allocation") Link: https://lore.kernel.org/r/1571926105-74636-2-git-send-email-john.garry@huawei.com Signed-off-by: Xiang Chen Signed-off-by: John Garry Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/hisi_sas/hisi_sas_main.c | 3 --- 1 file changed, 3 deletions(-) --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -3719,9 +3719,6 @@ static int hisi_sas_debugfs_alloc(struct int p, c, d; size_t sz; - hisi_hba->debugfs_dump_dentry = - debugfs_create_dir("dump", hisi_hba->debugfs_dir); - sz = hw->debugfs_reg_array[DEBUGFS_GLOBAL]->count * 4; hisi_hba->debugfs_regs[DEBUGFS_GLOBAL] = devm_kmalloc(dev, sz, GFP_KERNEL);