From patchwork Mon Jan 23 21:58:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Clayton X-Patchwork-Id: 9533575 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 346DD6042F for ; Mon, 23 Jan 2017 21:58:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25FE8283EB for ; Mon, 23 Jan 2017 21:58:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A3C428420; Mon, 23 Jan 2017 21:58:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8C7D283EB for ; Mon, 23 Jan 2017 21:58:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751136AbdAWV6I (ORCPT ); Mon, 23 Jan 2017 16:58:08 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:36553 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082AbdAWV6H (ORCPT ); Mon, 23 Jan 2017 16:58:07 -0500 Received: by mail-pg0-f68.google.com with SMTP id 75so14684705pgf.3; Mon, 23 Jan 2017 13:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=GSCfWVJISycA7qXuckfXdqzZ2CDSxM7OBs0llB8ZUBI=; b=kk1C3BU81O0J58JAGotS2zWQnkkc4r0RWLeL/8yBUIx0PcJilGfQ3xZsFpcX+64pn5 XZYKDkvMzRF5//jU1caYz/fYBa3F3L51J5E6tgDd0jiprMGB0czumrqgxI4qfis06S6p 0oYXojqNtK6PNYzsFqlnjkFJsDxE/5Zc7Q6VRRAeCxwb/MByfyl+WbZS/rH3oIdOT0yB 828aqO9lUPFsyOluRW7HGwZpcRppt2pWp024Vc5QNfKqzO7wrx6VsIRmxfxSPwv7/0ib aSj315SA4tA3ucVStITLJOVB+vACZHC09wm0WT4LAodB9zPbBh+i4NlSzQJeoAtq1fo3 86Zg== 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; bh=GSCfWVJISycA7qXuckfXdqzZ2CDSxM7OBs0llB8ZUBI=; b=DrqMHyB8H1TlkOpi3xL4O5txUVyQrzTPyXFOL8Wwh0nja8ikHIy0Zf4n4rlWAM2Iy3 meLWvyzUTkTKKvpm8FLt4g4N98/itne6i+ylxMw7vJE7aOF9/3Zn9VI6nS4DqOBhcOFD YbEh3ZXtiQoYLAUjteFH20HFH9nxBJ71OLK7LbqJjE79mZsvUL8lLniKtO4KXUE8bV8h DQpn/jS0WtwvjwNkKMg4GX7KCdrZE0yw8JH7BDOlQ/sFM9a7j5R1y1u7hA/sKpdyFfnU aLkukY7iCYPmUM2e5aZp1JFelV3zdYVRxLd5+kJtbRgUSMHOxKF0pJ0VDwHnhw0RElNX 4Tog== X-Gm-Message-State: AIkVDXJz6M/H2OY8O5ivQqtvkQSnnp3pd1xYjXmPGjK7ugo4QaTbObFHial8Csogfbqa3Q== X-Received: by 10.84.238.205 with SMTP id l13mr46258264pln.168.1485208687137; Mon, 23 Jan 2017 13:58:07 -0800 (PST) Received: from jclayton-pc.columbia.uniwest.com (68-185-59-186.static.knwc.wa.charter.com. [68.185.59.186]) by smtp.gmail.com with ESMTPSA id m21sm106668pgh.4.2017.01.23.13.58.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 13:58:05 -0800 (PST) From: Joshua Clayton To: Alan Tull , Moritz Fischer Cc: linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, Joshua Clayton Subject: [PATCH] fpga: fpga-manager: make __fpga_mgr_get() static Date: Mon, 23 Jan 2017 13:58:01 -0800 Message-Id: <20170123215801.10991-1-stillcompiling@gmail.com> X-Mailer: git-send-email 2.9.3 Sender: linux-fpga-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Running sparse on this subdirectory suggested __fpga_mgr_get() should be static. __fpga_mgr_get() is internal to the fpga-mgr framework. Define it as static Signed-off-by: Joshua Clayton --- drivers/fpga/fpga-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fpga/fpga-mgr.c b/drivers/fpga/fpga-mgr.c index f0a69d3..32860dd 100644 --- a/drivers/fpga/fpga-mgr.c +++ b/drivers/fpga/fpga-mgr.c @@ -186,7 +186,7 @@ static struct attribute *fpga_mgr_attrs[] = { }; ATTRIBUTE_GROUPS(fpga_mgr); -struct fpga_manager *__fpga_mgr_get(struct device *dev) +static struct fpga_manager *__fpga_mgr_get(struct device *dev) { struct fpga_manager *mgr; int ret = -ENODEV;