From patchwork Sat Sep 28 10:12:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2957441 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0D283BFF0B for ; Sat, 28 Sep 2013 10:12:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C6F302030D for ; Sat, 28 Sep 2013 10:12:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9F375202B8 for ; Sat, 28 Sep 2013 10:12:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753467Ab3I1KMM (ORCPT ); Sat, 28 Sep 2013 06:12:12 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:46681 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753221Ab3I1KMK (ORCPT ); Sat, 28 Sep 2013 06:12:10 -0400 Received: by mail-pd0-f181.google.com with SMTP id g10so3633548pdj.12 for ; Sat, 28 Sep 2013 03:12:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1YuoWcuJGLwgqthMTm55TDvzYcQFJNCF+i38KWKmPFU=; b=Rp21MWcBUd4Pk7HwO14WVq1epG+3YE2ZRmB/tdTozGZ+kAcBuuM0/CDoxsBLX6eSS5 bEyREF22qz8OlyooyV0WUtlkqly8RfQIm00rqlc7mkDPD0OgkaSMGpi/z6JJ0ULEP6cB FVlEvmPFiJXAX8NZbRvVYX1gy940JWCFPP77wF+dYD4A8/3HIW7PeU2KhjTxMIAMFWwK uqwr7B3T9LTzsqm0zAsLdIMehyFsg6tSptFvcmrjtRUUgMMpRnCmIf7DfTLWyT0jyqPP qloTOz6KqYZnhCXJqPiOB6tDUQj+QAFAs/1BUbFDBfnzaHhxgE86ZtQIb8tIqUG9jxNU EVnQ== X-Gm-Message-State: ALoCoQn7DS7sXKP4vDHxbadGLezegbmbQgv55SLciexk+4ETTd7JIg66dKiSsTsuLPZdPKOqHlxf X-Received: by 10.68.217.129 with SMTP id oy1mr12274730pbc.23.1380363130278; Sat, 28 Sep 2013 03:12:10 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id oh2sm14149812pbb.3.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 03:12:09 -0700 (PDT) From: Sachin Kamat To: linux-pci@vger.kernel.org Cc: bhelgaas@google.com, sachin.kamat@linaro.org Subject: [PATCH 1/2] PCI: sysfs: Staticize local symbols Date: Sat, 28 Sep 2013 15:42:00 +0530 Message-Id: <1380363121-1977-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Local variables used only in this file are made static. Signed-off-by: Sachin Kamat --- drivers/pci/pci-sysfs.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index d8eb880..ec1dbea 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c @@ -304,7 +304,7 @@ static ssize_t bus_rescan_store(struct bus_type *bus, const char *buf, } static BUS_ATTR(rescan, (S_IWUSR|S_IWGRP), NULL, bus_rescan_store); -struct attribute *pci_bus_attrs[] = { +static struct attribute *pci_bus_attrs[] = { &bus_attr_rescan.attr, NULL, }; @@ -335,8 +335,9 @@ dev_rescan_store(struct device *dev, struct device_attribute *attr, } return count; } -struct device_attribute dev_rescan_attr = __ATTR(rescan, (S_IWUSR|S_IWGRP), - NULL, dev_rescan_store); +static struct device_attribute dev_rescan_attr = __ATTR(rescan, + (S_IWUSR|S_IWGRP), + NULL, dev_rescan_store); static void remove_callback(struct device *dev) { @@ -366,8 +367,9 @@ remove_store(struct device *dev, struct device_attribute *dummy, count = ret; return count; } -struct device_attribute dev_remove_attr = __ATTR(remove, (S_IWUSR|S_IWGRP), - NULL, remove_store); +static struct device_attribute dev_remove_attr = __ATTR(remove, + (S_IWUSR|S_IWGRP), + NULL, remove_store); static ssize_t dev_bus_rescan_store(struct device *dev, struct device_attribute *attr, @@ -554,7 +556,7 @@ boot_vga_show(struct device *dev, struct device_attribute *attr, char *buf) !!(pdev->resource[PCI_ROM_RESOURCE].flags & IORESOURCE_ROM_SHADOW)); } -struct device_attribute vga_attr = __ATTR_RO(boot_vga); +static struct device_attribute vga_attr = __ATTR_RO(boot_vga); static ssize_t pci_read_config(struct file *filp, struct kobject *kobj,