Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp338088ybb; Wed, 25 Mar 2020 00:17:00 -0700 (PDT) X-Google-Smtp-Source: ADFU+vthrDu1aEaTSDDFEPyyN/a+J/78uUN5ViO2rqLckCEiEER/RafxRW3ogZcN8e/syxypkFHS X-Received: by 2002:a05:6830:19e2:: with SMTP id t2mr1374159ott.97.1585120619919; Wed, 25 Mar 2020 00:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585120619; cv=none; d=google.com; s=arc-20160816; b=nvwxfN8aj1xFdaNI60AFNbNUgxppinxhx1IXKjsaWGNCwCb5pOgMPIIrTwFvsBeJdv lK7KQtDcF2trMv/x8JV+UERwv3sSMCyyRBdWYgzVhBvFs+IwM7kyz/IQPMfASBxgzaLt j7Il5hID+WUnc5/GPTFtvmzy5jVwByBdT7+6T611CUgaQrEDiXrEFtjBFeruzpAAYAC8 9u/KZ4lTvKZYrGHqNsM/q8PAVO8EfXhoz5UU9yVSbkn4GfKC3Kfe3G2K9ELbXN4oy6xi kRrdpz8Q1kmOywk/eC1cDvOO4KgoxafuYbGctURR56IrYIp0p///tHkXYX4D8rIirUZV QA2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/Kz+XsnJbRrZweAIE3/IydJAreMyoA6mY23DeOTYdqc=; b=pzSBSb2NYy+1Kz/heawfeAHfdBxuPkCDJJmaGXM21GmQnGjNKm5VR3AvnM9X6gR+UF 4qHo0qBLE5WBy2zTgrnsmD9aFxgjJyyf80nBRkqNz+D98JLd4SH+/MXLtcq5lNREYbrZ a+2h9WvX6Ed/VLVBe/moRN1Mq15z2nCxnpka9r0SgpRvvzvExH4nDtK+xOe7ZtXVvk9x xvC9xaMnkPf3vRZUoS/APfKj2bY6XuTauRQ39IG5Jky0t3xV+1k0Tcan66Kx+9leMEQy ldgajY8G7s9c2Vz97W6/o5lDbja2LBKYjfSOkt2Jyl/VQ2KwkhKqk1dsn3di7bfNeWAj /T8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YPMpc2mo; 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 x1si6488975otq.201.2020.03.25.00.16.48; Wed, 25 Mar 2020 00:16:59 -0700 (PDT) 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=YPMpc2mo; 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 S1727392AbgCYHQN (ORCPT + 99 others); Wed, 25 Mar 2020 03:16:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:57282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbgCYHQN (ORCPT ); Wed, 25 Mar 2020 03:16:13 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 969C6206F6; Wed, 25 Mar 2020 07:16:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585120571; bh=rAaMmZCfF2JGaNLQBxQpmYG0YuF1N707UWJZWRwGZWg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YPMpc2mobI+Ysg9uSGbcV0ubNoAUuYAcTUU1KuTdXYelkuLrKrHu8qT68KKUX6Kfu 0Y0YRw0lpWYt37ipCZnvC4xe3cDa0ojFF68UlSMKOVYfSY4LKSMFBe929xoGzBy0Gj 7nUkaoFRd0D3Htxih4RSnD+dwURE9Ip4YSQNNoG8= Date: Wed, 25 Mar 2020 08:16:08 +0100 From: Greg KH To: Kelsey Skunberg Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, bhelgaas@google.com, rbilovol@cisco.com, ddutile@redhat.com, ruslan.bilovol@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org, bodong@mellanox.com Subject: Re: [Linux-kernel-mentees] [PATCH] PCI: sysfs: Change bus_rescan and dev_rescan to rescan Message-ID: <20200325071608.GA2978943@kroah.com> References: <20200324234848.8299-1-skunberg.kelsey@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200324234848.8299-1-skunberg.kelsey@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 24, 2020 at 05:48:48PM -0600, Kelsey Skunberg wrote: > From: Kelsey Skunberg > > rename device attribute name arguments 'bus_rescan' and 'dev_rescan' to 'rescan' > to avoid breaking userspace applications. > > The attribute argument names were changed in the following commits: > 8bdfa145f582 ("PCI: sysfs: Define device attributes with DEVICE_ATTR*()") > 4e2b79436e4f ("PCI: sysfs: Change DEVICE_ATTR() to DEVICE_ATTR_WO()") > > Revert the names used for attributes back to the names used before the above > patches were applied. This also requires to change DEVICE_ATTR_WO() to > DEVICE_ATTR() and __ATTR(). > > Note when using DEVICE_ATTR() the attribute is automatically named > dev_attr_.attr. To avoid duplicated names between attributes, use > __ATTR() instead of DEVICE_ATTR() to a assign a custom attribute name for > dev_rescan. > > change bus_rescan_store() to dev_bus_rescan_store() to complete matching the > names used before the mentioned patches were applied. > > Signed-off-by: Kelsey Skunberg You should add: Fixes: 8bdfa145f582 ("PCI: sysfs: Define device attributes with DEVICE_ATTR*()") Fixes: 4e2b79436e4f ("PCI: sysfs: Change DEVICE_ATTR() to DEVICE_ATTR_WO()") to this too, and a Cc: stable to the signed-off-by: area so that it gets properly backported. Other than that minor thing, looks good to me, thanks for fixing it so quickly: Reviewed-by: Greg Kroah-Hartman