Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1507636ybl; Tue, 13 Aug 2019 13:58:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqx15Ejo0y3+G6o7mz20xMB/AR8x2IboakrIcVnDzieBe3fjVUgHtv/UMxc2oOxNwwWvzMao X-Received: by 2002:a63:5807:: with SMTP id m7mr24711115pgb.371.1565729922584; Tue, 13 Aug 2019 13:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565729922; cv=none; d=google.com; s=arc-20160816; b=neTeVdyyrmFiT7erTVlvpvmYx+c0EtsArSILv3uVvogR0Gl0lBMioPQmphKiOuhQeG Gwq2acNgGNLFShThx++FyQzrc7EQzQzsf2mUQ0QIjWIJFJYpcQCIoN4Mg7OAm4atmVdz voGnsHN6TlAfIbD0UnfIiejYJ/d9aUD1RSRJ18uUVsKYnWI5AM4Hfqb9IAfH6k58DHwZ Ly6EkcNbnWws6eG5uKb3BEWcJYQhaKjtSmHehd2D/L/3WS/H92veA7Xa0DjMqjOLNQxz rtLNz4ZLSePSdYCGo37GD2gT2zoEyVEiOorHPc30usPXvIuVpG86lknUcv7lMRJ9pbL/ VQLA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0sZ/hWlDeEr31hV45AP4cLUTgr2xCQPFlUeit0Vpzfc=; b=DcAjHBaHZ4RlJm2t8yX3us1QshHxiBBRz7ehDdbJWorWX3W8COB+3L3I8p1hnbD89L g94UGXniIoWyiRfIUmRPVFGU9VBV3fLTbYp8xwnIkPJYxhihFFI7Ss072qgri7/bzrcJ JV3z7LwacG9YrRIjmCfxG+wrLtQht0gWHvfTDTEaLtmD4N6w6Liqu8rhuSPSvVX5GMnm ozrnSsoLzikXdmpZIgGIdjjb9qfZ2GsKWEdEy966LkPVOjkMJWD+ZNyrvuwim3rZbtKK Y+ODOY4Q1WYXS5ATUxm9XpHWsgDQFDwGECWJUAaCwU3tOd+KoXMqf4k4US4RRL9wBX/8 v67g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XSp7U9v6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si1360434pjq.21.2019.08.13.13.58.26; Tue, 13 Aug 2019 13:58:42 -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=@gmail.com header.s=20161025 header.b=XSp7U9v6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726515AbfHMU5s (ORCPT + 99 others); Tue, 13 Aug 2019 16:57:48 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:45320 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbfHMU5r (ORCPT ); Tue, 13 Aug 2019 16:57:47 -0400 Received: by mail-ot1-f68.google.com with SMTP id m24so24339560otp.12; Tue, 13 Aug 2019 13:57:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0sZ/hWlDeEr31hV45AP4cLUTgr2xCQPFlUeit0Vpzfc=; b=XSp7U9v6O2RaTJaeqm4ZDpoPVV4rWPuldeHU40O/1P9XOkNo83/AnutIAg1vrMOT/r 2sgq0wH78MQecRogPrvMzy54Zd1U374aXlC3IBb4sJVkWAsKV0whjFToesL8Rfj2nU9H 5GIP4RAlurjghLnesLm83VfdBBciLU+FH86Hvb1boAYH/A1H9Fh1Hd4aYskRjGjFAkt4 sTA5CBRpHPQeE0+AlrbYjL/LuYhVOXaaDzT+f27xT7ECPtez9aFKq6Ve1mABErJAlKNh olI49TYFiW2+Xhj5F6dUUW6toU0c7phoS9yiVjmrhRRmT7xnoMn13vAZN39vpZL9mM3e CxGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0sZ/hWlDeEr31hV45AP4cLUTgr2xCQPFlUeit0Vpzfc=; b=su3AfnaKE4qloXkW5fOw2+SRel2R4q8XGrvuLDcKTTDQhm/zyXjogDSEgVsIjPB0Bl lVvLYEYKSEzXfO8B5yWEPpjUAUEEveqpx8prLi6B33OJrCZzoCW7n9Kw8t3ECqe7WFId x8m1pW/sgwzdWiVyDwxMjj3+1eFidUugN7Dhqze+Fsq7h58D4Dl/aSq1sVuat/J+LOIr pxCzlv9UW/cX9/z/oRzA2NUElHKGWJu25uB58y+4u027xzepRdDnjuHXoPIgB1EFdX1f X+3fVmNtpvXjzFlSrdbZnPW19t2zHol9eyQVIFvh3lSIAb9PELOLmX6+/nlHjK+nupks Ysjw== X-Gm-Message-State: APjAAAWAWL8X0tnvR/AOTckDeZRo6HFLmspCItgXd9gvR5I/A3nbivRN ZGvyrkQIeoubZUG6DHb9MP4= X-Received: by 2002:a5d:8f02:: with SMTP id f2mr22096767iof.192.1565729867212; Tue, 13 Aug 2019 13:57:47 -0700 (PDT) Received: from localhost.localdomain (c-73-243-191-173.hsd1.co.comcast.net. [73.243.191.173]) by smtp.gmail.com with ESMTPSA id y25sm12874419iol.59.2019.08.13.13.57.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 13 Aug 2019 13:57:46 -0700 (PDT) From: Kelsey Skunberg To: bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Cc: skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org, skunberg.kelsey@gmail.com Subject: [PATCH v2 0/3] PCI: pci-sysfs.c cleanup Date: Tue, 13 Aug 2019 14:45:10 -0600 Message-Id: <20190813204513.4790-1-skunberg.kelsey@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190809195721.34237-1-skunberg.kelsey@gmail.com> References: <20190809195721.34237-1-skunberg.kelsey@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Patches build off of each other. Patch 1: Define device attributes with DEVICE_ATTR*() instead of __ATTR*(). Patch 2: Change permissions from symbolic to the preferred octal. Patch 3: Move sysfs SR-IOV functions to iov.c to keep the feature's code together. Changes since v1: Add patch 1 and 2 to fix the way device attributes are defined and change permissions from symbolic to octal. Patch 3 which moves sysfs SR-IOV functions to iov.c will then apply cleaner. Kelsey Skunberg (3): PCI: sysfs: Define device attributes with DEVICE_ATTR*() PCI: sysfs: Change permissions from symbolic to octal PCI/IOV: Move sysfs SR-IOV functions to iov.c drivers/pci/iov.c | 168 +++++++++++++++++++++++++++++++ drivers/pci/pci-sysfs.c | 217 ++++------------------------------------ drivers/pci/pci.h | 2 +- 3 files changed, 188 insertions(+), 199 deletions(-) -- 2.20.1