From patchwork Tue Mar 7 17:35:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Gardner X-Patchwork-Id: 736311 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3vd3j82KrVz9sNh; Wed, 8 Mar 2017 04:35:56 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical-com.20150623.gappssmtp.com header.i=@canonical-com.20150623.gappssmtp.com header.b="L8KoNM2e"; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1clJ1d-0004os-46; Tue, 07 Mar 2017 17:35:53 +0000 Received: from mail-it0-f53.google.com ([209.85.214.53]) by huckleberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1clJ1L-0004iK-UC for kernel-team@lists.ubuntu.com; Tue, 07 Mar 2017 17:35:36 +0000 Received: by mail-it0-f53.google.com with SMTP id m27so9734291iti.1 for ; Tue, 07 Mar 2017 09:35:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=t9bcPIj6B+ZAHr3KdMc0yluYSFfXsUUmNJQ9PwaAIqA=; b=L8KoNM2eFNW3aHM5Z5WcYfPZWs918I2RVx1x7LGSbdmzNiSI9GTf9yN0bPcpPJKfiS 6vTDmqMAAhPT9m0zMFLONAxt/8UkaQKYd1DWg0/PPGgTyyY2YifgS05tfMba52s8W0lj c/kil5UHZHZnZHk/zXsTy2i9CGxdnvz9FKS830dHPOEY3BZ1deIp4h+XEwIkcDx94uuc gSPCC2f61jN/9+mw6rxYEwQhaCRLKkiW0YfeLvpQWZLnwu8Xp19KpKeaPoSGoMfKMJb3 TlxBgOtWjTcC4D+QQ/eD/LjX1jIjiREZeNhQlhAj0JYzcEHV8X7AKRQrBS7pRSBQz7C9 7Gtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=t9bcPIj6B+ZAHr3KdMc0yluYSFfXsUUmNJQ9PwaAIqA=; b=iPrEOlB4tFvemk7yJDzywoe3d5VrGCYzVFNGvMm2uhcAUFCZU7Aesc6S/zvigoRmlk VFPMJWzXm27AamqlMAiyNotV1PUCB8DVVXrdBisJU4Cibfde2CFunE92VzQa0vJYXltx FJihdD+JuQmrZ3aToEYfn0TWzdpZg8qLGawd7aJAMlWZFCmry4EJTNdtUk+BzXiX7MQd qfe/nZHM5NtA9ZvHNot5BdR21nWFPYIuYQv/eTaYtXzZNI+2n8xgkRo67l+gWySSbhO1 K6yJJ2Xj89Q0ZfcOJSCKmgGQ3UvKvdl3FAdWhDq7K+ZKHgqXUsYWr8y6FTLL4hi3mStB eCPA== X-Gm-Message-State: AMke39mK9urydy2pQ1UWUplRaR9KCKczJM1/0jrmGzyDXs1cYTdUIOPH5b29mpKGKCDbL4IH X-Received: by 10.36.98.80 with SMTP id d77mr1874084itc.99.1488908134621; Tue, 07 Mar 2017 09:35:34 -0800 (PST) Received: from localhost.localdomain (host-98-127-250-84.bln-mt.client.bresnan.net. [98.127.250.84]) by smtp.gmail.com with ESMTPSA id e4sm392819ioe.7.2017.03.07.09.35.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Mar 2017 09:35:34 -0800 (PST) From: Tim Gardner To: kernel-team@lists.ubuntu.com Subject: [PATCH 3/4] PCI: hv: Make unnecessarily global IRQ masking functions static Date: Tue, 7 Mar 2017 10:35:25 -0700 Message-Id: <1488908126-2221-4-git-send-email-tim.gardner@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488908126-2221-1-git-send-email-tim.gardner@canonical.com> References: <1488908126-2221-1-git-send-email-tim.gardner@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: kernel-team-bounces@lists.ubuntu.com From: Tobias Klauser BugLink: http://bugs.launchpad.net/bugs/1670518 Make hv_irq_mask() and hv_irq_unmask() static as they are only used in pci-hyperv.c This fixes a sparse warning. Signed-off-by: Tobias Klauser Signed-off-by: Bjorn Helgaas Acked-by: K. Y. Srinivasan (cherry picked from commit 542ccf4551fa019a8ae9dfb7c8cd7e73a3d7e614) Signed-off-by: Tim Gardner --- drivers/pci/host/pci-hyperv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c index 10bc3a0..7ff8a48 100644 --- a/drivers/pci/host/pci-hyperv.c +++ b/drivers/pci/host/pci-hyperv.c @@ -758,7 +758,7 @@ static int hv_set_affinity(struct irq_data *data, const struct cpumask *dest, return parent->chip->irq_set_affinity(parent, dest, force); } -void hv_irq_mask(struct irq_data *data) +static void hv_irq_mask(struct irq_data *data) { pci_msi_mask_irq(data); } @@ -773,7 +773,7 @@ void hv_irq_mask(struct irq_data *data) * is built out of this PCI bus's instance GUID and the function * number of the device. */ -void hv_irq_unmask(struct irq_data *data) +static void hv_irq_unmask(struct irq_data *data) { struct msi_desc *msi_desc = irq_data_get_msi_desc(data); struct irq_cfg *cfg = irqd_cfg(data);