From patchwork Thu Feb 9 15:07:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9564827 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 5DD056020C for ; Thu, 9 Feb 2017 15:14:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A86F28536 for ; Thu, 9 Feb 2017 15:14:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F2A82853A; Thu, 9 Feb 2017 15:14:49 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 BD4E32853C for ; Thu, 9 Feb 2017 15:14:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751027AbdBIPOs (ORCPT ); Thu, 9 Feb 2017 10:14:48 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36614 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753212AbdBIPOr (ORCPT ); Thu, 9 Feb 2017 10:14:47 -0500 Received: by mail-pf0-f194.google.com with SMTP id 19so405827pfo.3 for ; Thu, 09 Feb 2017 07:14:05 -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:mime-version :content-transfer-encoding; bh=qNVOKPUNc78S6xEa2HupXJe7b9nWquzKmepL7cfpG84=; b=GGlm4wX9Zga/7npdq6l+IVWs+ezvAFtOhOfViJ+3IahcLJG6W3vQVPorAk1qBOE/HR gp0UE+NhEpl8/96caDztohdx8edVynTYerkF1NmViJCIf6T7LwNOj2R5bUkgEiqsSmqt XKAO123NMq9yyfu0W8D2HDgjTwacbzxceXgF4OA/5lVvGqehq6VA8mIY4Kx6vt04QvKg 73TeJ2Tb2i9QUfOzHXPr1ivrsdVKUP7j/KjMaGSLzqot4np+999mUsQn+SN4+WspG/+l HhU7BUbr2wbEm2Mf4xPsjpe7WrtdPmYCr+4DCU2sqjLGwlzFjnB+vNn8hnoW4F6gffbF QVZg== 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:mime-version :content-transfer-encoding; bh=qNVOKPUNc78S6xEa2HupXJe7b9nWquzKmepL7cfpG84=; b=PUMul2wDLbaeSq95n7b70ETx3ZFI36LnxD5YmaZLFqbhOZyoIYkMnsDy/atDV29x0K lOSmN+QhQRk6A8QynHqKnGycZGEOKm7OfPWi76jq70rKty/bLGYrFytkuWNi+G/2SIIp QYvnuaDEWVTPD/vwpoBM+GEIxABn3eMx715Fd07UcM5FNuLEw/qZz2Gepf5gPgaUuKzk QLVzUxhSFvgK9jV99Rye2v0tiP61w45HsLUQoxaBFdu+8HeeEnwnUkA9+gPqC4CGoVox DzqRGTGk7SBmOiy42RnO/x6Q0uLfSNhNuZ57GualiA0L4PcGg+4zbWuuvq+yTPDe4Xtz TuYg== X-Gm-Message-State: AMke39m0lyXOEjLbAjdKXf4ZSNGOTcuZp5Ka9EHagcnsEEGYUiLS7S6fJbi3m1AnksrI6w== X-Received: by 10.84.151.9 with SMTP id i9mr4832462pli.122.1486652882773; Thu, 09 Feb 2017 07:08:02 -0800 (PST) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id 19sm29819278pft.46.2017.02.09.07.08.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Feb 2017 07:08:02 -0800 (PST) From: Wei Yongjun To: Alan Tull , Moritz Fischer Cc: Wei Yongjun , linux-fpga@vger.kernel.org Subject: [PATCH -next] fpga manager: make __fpga_mgr_get() static Date: Thu, 9 Feb 2017 15:07:57 +0000 Message-Id: <20170209150757.18953-1-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 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 From: Wei Yongjun Fixes the following sparse warning: drivers/fpga/fpga-mgr.c:189:21: warning: symbol '__fpga_mgr_get' was not declared. Should it be static? Signed-off-by: Wei Yongjun Acked-by: Moritz Fischer --- drivers/fpga/fpga-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-fpga" 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/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;