From patchwork Tue Aug 11 15:51:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 6993081 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2ED5B9F344 for ; Tue, 11 Aug 2015 15:51:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 50A5E205E2 for ; Tue, 11 Aug 2015 15:51:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6C4CC2058C for ; Tue, 11 Aug 2015 15:51:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965250AbbHKPvt (ORCPT ); Tue, 11 Aug 2015 11:51:49 -0400 Received: from mail-ig0-f180.google.com ([209.85.213.180]:36111 "EHLO mail-ig0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965225AbbHKPvt (ORCPT ); Tue, 11 Aug 2015 11:51:49 -0400 Received: by igbij6 with SMTP id ij6so93528390igb.1 for ; Tue, 11 Aug 2015 08:51:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=XjCOoAN9GBA+94ngmcgW3QgTJ9niGHOw4NskSrXLMXk=; b=lJe8g3oKJOgade9EBrMQXDKD4fGjsBPPg0ZsXO+0Dg9Kbv5oVGRnG3mb2Uvhhx9zxn 0bo0nWX2057hXG3mXoDU1Swn5hVHu4bXPYLSTvsjaht3E0QChaTRLrQeq/yRCvyJ75uy wYoTc+MB2W8/T6Km7ZY4li4g5c58FgEWUCX6kFi522k/0iZEp1ZmzJz4jbpfVimMu+dT PWLH/Nyc2OcgHzLPNYep8d3XZ1nlbSruP58Pxdcfn/OUw8SDMO6q+WAyPDxvJW4wA/OM F4UpMmmeZinvNww9srVN2ZXoLPWxxdyNQG+z2M3pIRNZXxb48jMQUdH3Io16HUyOi3KL WHFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=XjCOoAN9GBA+94ngmcgW3QgTJ9niGHOw4NskSrXLMXk=; b=XaHDoPeZNXuI9NUtCAZ1lEGtg5JAP1uWx87dZJq+smeYf+soF3xI0jmam4gnV0izTc jfJHaZq0A3L88EgW54eK7i03/8dvAuTZNilpbU6Bqyrws7JYlyQoKH9MVXZPJ76/e15t no05Rgaoun8Xz4WSda16IkThB6ioHy9bqgGZIgRoM9zvBzAKgwtuiLRcTx2w+Bks7AZj 0asjK2MLuCrMHwjvTy0N9NnE+mZQ81Q29WTKZ91eu2ZIcpw8ypqUvmKqX08TxCzq/56/ r/I79dOslwmIim+6hhIHGkScuOhCdIvO+sDpaURC2yN6d09zcTh+5NWcgwhdVj1Bv4ec tO0Q== X-Gm-Message-State: ALoCoQmpyvyJdxLUJNODiNVii0AUQT87y+oe0EI/xZJuonhcs7bVUwNbLOixb6AUiZtnf3ZClkhP X-Received: by 10.50.72.6 with SMTP id z6mr19420842igu.65.1439308308602; Tue, 11 Aug 2015 08:51:48 -0700 (PDT) Received: from localhost ([2620:0:1007:b:254d:7b22:9adf:e278]) by smtp.gmail.com with ESMTPSA id i13sm1782561ioe.4.2015.08.11.08.51.47 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 11 Aug 2015 08:51:47 -0700 (PDT) Subject: [PATCH v3 06/11] PCI: Inline the ATS setup code into pci_ats_init() To: linux-pci@vger.kernel.org, Joerg Roedel , David Woodhouse From: Bjorn Helgaas Cc: Gregor Dick , iommu@lists.linux-foundation.org, Yinghai Lu Date: Tue, 11 Aug 2015 10:51:46 -0500 Message-ID: <20150811155146.21078.16008.stgit@bhelgaas-glaptop2.roam.corp.google.com> In-Reply-To: <20150811154525.21078.85310.stgit@bhelgaas-glaptop2.roam.corp.google.com> References: <20150811154525.21078.85310.stgit@bhelgaas-glaptop2.roam.corp.google.com> User-Agent: StGit/0.16 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 The ATS setup code in ats_alloc_one() is only used by pci_ats_init(), so inline it there. No functional change. Signed-off-by: Bjorn Helgaas Reviewed-by: Joerg Roedel --- drivers/pci/ats.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pci/ats.c b/drivers/pci/ats.c index 9a98b3a..95905f3 100644 --- a/drivers/pci/ats.c +++ b/drivers/pci/ats.c @@ -17,7 +17,7 @@ #include "pci.h" -static void ats_alloc_one(struct pci_dev *dev) +void pci_ats_init(struct pci_dev *dev) { int pos; u16 cap; @@ -32,11 +32,6 @@ static void ats_alloc_one(struct pci_dev *dev) PCI_ATS_MAX_QDEP; } -void pci_ats_init(struct pci_dev *dev) -{ - ats_alloc_one(dev); -} - /** * pci_enable_ats - enable the ATS capability * @dev: the PCI device