Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3116688pxm; Mon, 28 Feb 2022 12:22:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJylmYZiLNuE6i8HlPjMTPAzwAiWKPhGYgOO2nsLsv9GdN650sbngduG6X8p4zcjrUdF9EV4 X-Received: by 2002:a05:6a00:1494:b0:4f0:ece9:a01c with SMTP id v20-20020a056a00149400b004f0ece9a01cmr23159644pfu.58.1646079734177; Mon, 28 Feb 2022 12:22:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646079734; cv=none; d=google.com; s=arc-20160816; b=Xwmldq+saG39QuciCvRwOaYHe1Ozyeed0d1ykDFj3GPD2f3GFOb5+ZLjOkZ5SOTh1p mAgMAULIZ4hEAX+10wYPTXA3ge/nCxd/JadlwTQAKLPo0NCNuoq40AMRnKmBPVwdgXMw p3Q8uitlBo4eGrc34OexjcinDKqmmj1dxaLunI22bGy94d6Dag6cWh3v97sA3fsB7aRf mXTuY8sKe6+dmkLqCVHgt3JhkCE5eG1rONMdv2zxG1KZbVEAajsWJf+F+iuk19JDgnSd ebAnmmiYz8KXhWGT93KAOS3jIPPau/Q/ybcyC8BFroztcEnqRZ6YXNeaxGkgAcb/8wdf 8MfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=M0NLexr4P+VZxddBCmwQs6aI7960SjsuTYCAjucXl6M=; b=OAhBmSGvpmVYT1LDX/iw9T4uWt79RpdR/SwMI2xyRKCy8/GftlDsf0HskLGSrhynmd hmbanBXmmrgLRiXESd3eoEbVnbXs45cZql7SopJ0Z+ivE3a9JBvH58X+X9Ug5PDUafp6 RMFfU5k2YdXBmkM8qWKoBUIt8bjvu/KHLWvXufiyQQkm8meQ6a7CcyYBdmPRwnd78AaQ qYOgY+7Durars+vOIj8aLf5tgOxKl1VdaooYT5UZ7lqK7DxC1MTvbQWDAbRc1MxsJCPM Hpqjvbvs+XZbbJ81eims+hzzUzERjON3H+gv6Vr3PC+ezLOyfe3ktGhaMx0y8S80NHc/ fTmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TI1BwdPC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w7-20020a17090a8a0700b001bd19894580si378106pjn.120.2022.02.28.12.22.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 12:22:14 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TI1BwdPC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 004B2C485A; Mon, 28 Feb 2022 11:41:38 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239786AbiB1R6x (ORCPT + 99 others); Mon, 28 Feb 2022 12:58:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240292AbiB1RyK (ORCPT ); Mon, 28 Feb 2022 12:54:10 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 834EE939E1; Mon, 28 Feb 2022 09:41:58 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id E29D1CE17C4; Mon, 28 Feb 2022 17:41:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7F8EC340E7; Mon, 28 Feb 2022 17:41:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646070105; bh=ZQSl1PHtTbpi0tBEr5HZNu19R3TkoKzvDwABG6xiSFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TI1BwdPCLTc8NUuEDNTO4Ti+hGxs/PDBDoBdOn/jxxGCH7FbpDQsuZea4IV5ZKiqt jxw8eB4pQvJIUMGhxTkRgp0fe/XtE3C389tid+0OLzk4tZs3GrAqunR9/WMO2swfI5 TueknyUNK3AiowMqOyoMftkNKXTzGSzULcUzyvjo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dennis Dalessandro , Mike Marciniszyn , Jason Gunthorpe Subject: [PATCH 5.15 125/139] IB/qib: Fix duplicate sysfs directory name Date: Mon, 28 Feb 2022 18:24:59 +0100 Message-Id: <20220228172400.804290699@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220228172347.614588246@linuxfoundation.org> References: <20220228172347.614588246@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mike Marciniszyn commit 32f57cb1b2c8d6f20aefec7052b1bfeb7e3b69d4 upstream. The qib driver load has been failing with the following message: sysfs: cannot create duplicate filename '/devices/pci0000:80/0000:80:02.0/0000:81:00.0/infiniband/qib0/ports/1/linkcontrol' The patch below has two "linkcontrol" names causing the duplication. Fix by using the correct "diag_counters" name on the second instance. Fixes: 4a7aaf88c89f ("RDMA/qib: Use attributes for the port sysfs") Link: https://lore.kernel.org/r/1645106372-23004-1-git-send-email-mike.marciniszyn@cornelisnetworks.com Cc: Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Jason Gunthorpe Signed-off-by: Greg Kroah-Hartman --- drivers/infiniband/hw/qib/qib_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/infiniband/hw/qib/qib_sysfs.c +++ b/drivers/infiniband/hw/qib/qib_sysfs.c @@ -541,7 +541,7 @@ static struct attribute *port_diagc_attr }; static const struct attribute_group port_diagc_group = { - .name = "linkcontrol", + .name = "diag_counters", .attrs = port_diagc_attributes, };