Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2274046ybl; Thu, 15 Aug 2019 09:11:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzchizzWwvQ4q+LmzdvJy5IWeIeIS6+1ugbBuy9g5BzubO+21lzRbZBy53NOXMwCrDhFdZe X-Received: by 2002:a62:4d85:: with SMTP id a127mr6227075pfb.148.1565885462519; Thu, 15 Aug 2019 09:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565885462; cv=none; d=google.com; s=arc-20160816; b=Fn9+v93DPEzPnk0Icnuk3sAv1c86gKV/6zVheErhnlG0MZrrb/9yemB7L+dRjGi4Lz gef/A5yZGV3XtMhbwqXm923W1BC+bORZ5Em7mNiafVcc/xkUw5DyD8ow9eqnVktw2D6z JDxxZAIfmxcNDquPgp8DIqftyD1ocFMDzUzCQmpISvGXMvTiRUwJyH6gLBdr995l4sRe v7jNdWP5B+DFJIAGuZzrEqkDCs8j5SyvPZUFJxDQLVqMQO1kXk8/dJ6AylN8dd5uaMgg TJoDDcmELHXLnEVN5UNntmDZiWMmgrbd9BGaQ+H6jrVTsZh27AZTz3oKRS5qZip6pLup 2rnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OIvLm9BKbPxobZgdfYUa4fLHU4m3JDjMZGh+ZqsEo9s=; b=m345LpihIzIy+MHUHHdTc7wb+cqAt0gMhDaiWlbkLa4WAqB/i8/gYXAXr+UFuWKeSK PAKsQA0oVQ4arYiSzSMZRtkIGmwCUKJEHBWuesGL2o7tJPSAgTBWQMkHT2qTUZGaQADG IVwO2j9wRvrwj1y0IV86wq4PKdSAdlFcEYPGEIZClGWBdfeN1JF7lijAcNziqZQ2jS3a cMbM0WljpOp8fVu9wxtjCiNduZ9qHKpbOyprfOMaRLPP6vy60ErzUDuMTSJJpg6blOhI frP5si6pwTYE/FivG+zn7ROYiy1Z9Nw14MU/TZfitUAjQ1SAK3zrh9ofDKd/y0aFJm/p UiqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hsFdBaTd; 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 w3si2190337plp.182.2019.08.15.09.10.47; Thu, 15 Aug 2019 09:11:02 -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=hsFdBaTd; 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 S1729151AbfHOQIZ (ORCPT + 99 others); Thu, 15 Aug 2019 12:08:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:49226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbfHOQIY (ORCPT ); Thu, 15 Aug 2019 12:08:24 -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 630C920644; Thu, 15 Aug 2019 16:08:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565885303; bh=vSk1b8p8CN/xt3ceJ3QVyQ27kuR0ZWUAKF9gUzpXsiw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hsFdBaTdcEF2qtOfvApSmCWRes1LPq20CTI+NlZ/pZf/ynfOCCTkcytYIKNWpZiOO eUjB2UVxOLQQl2KTLu0aMfZspS+YNLVpO1aTwyzENv6xJgM/7POMrWLCHjeuGOO/BI kqb+3XaXuwxet8apsIWwMttAbFO8/kJ9YjpRd1Bk= Date: Thu, 15 Aug 2019 18:08:21 +0200 From: Greg KH To: Kelsey Skunberg Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org, bodong@mellanox.com, ddutile@redhat.com Subject: Re: [PATCH v3 0/4] PCI: Clean up pci-sysfs.c Message-ID: <20190815160821.GA12911@kroah.com> References: <20190813204513.4790-1-skunberg.kelsey@gmail.com> <20190815153352.86143-1-skunberg.kelsey@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190815153352.86143-1-skunberg.kelsey@gmail.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 15, 2019 at 09:33:49AM -0600, Kelsey Skunberg wrote: > This series is designed to clean up device attributes and permissions in > pci-sysfs.c. Then move the sysfs SR-IOV functions from pci-sysfs.c to > iov.c for better organization. > > Patch 1: Define device attributes with DEVICE_ATTR* instead of __ATTR*. > > Patch 2: Change permissions from symbolic to the preferred octal. > > Patch 3: Change DEVICE_ATTR() with 0220 permissions to DEVICE_ATTR_WO(). > > Patch 4: Move sysfs SR-IOV functions to iov.c to keep the feature's code > together. Reviewed-by: Greg Kroah-Hartman