Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752109AbaLSHWx (ORCPT ); Fri, 19 Dec 2014 02:22:53 -0500 Received: from mail-bn1on0083.outbound.protection.outlook.com ([157.56.110.83]:53184 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751903AbaLSHWu (ORCPT ); Fri, 19 Dec 2014 02:22:50 -0500 Date: Fri, 19 Dec 2014 08:22:31 +0100 From: Michal Simek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: atull , Michal Simek CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v5 3/6] staging: fpga manager: framework core References: <1418835289-15752-1-git-send-email-atull@opensource.altera.com> <1418835289-15752-4-git-send-email-atull@opensource.altera.com> <05395a89d783481b8b7c06bb299b53e0@BL2FFO11FD020.protection.gbl> In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-7.5.0.1018-21186.005 X-TM-AS-User-Approved-Sender: Yes Message-ID: <28ea2232cf2d4d63b6a85a10decd4198@BN1AFFO11FD039.protection.gbl> X-EOPAttributedMessage: 0 Authentication-Results: spf=pass (sender IP is 62.221.5.235) smtp.mailfrom=michal.simek@xilinx.com; X-Forefront-Antispam-Report: CIP:62.221.5.235;CTRY:GB;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(979002)(6009001)(438002)(479174004)(189002)(51704005)(24454002)(199003)(377454003)(164054003)(50466002)(2950100001)(64126003)(50986999)(92566001)(76176999)(99396003)(54356999)(120916001)(46102003)(33646002)(77156002)(62966003)(108616004)(104016003)(77096005)(107046002)(74316001)(92726002)(31966008)(93886004)(86362001)(65956001)(21056001)(6806004)(23746002)(87936001)(65806001)(47776003)(4396001)(20776003)(106466001)(83506001)(64706001)(65826006)(107986001)(24736002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1AFFO11HUB028;H:xir-pvapsmtpgw01;FPR:;SPF:Pass;MLV:ovrnspm;PTR:unknown-62-221-5-235.ipspace.xilinx.com;MX:1;A:1;LANG:en; X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BN1AFFO11HUB028; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004);SRVR:BN1AFFO11HUB028; X-Forefront-PRVS: 0430FA5CB7 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:BN1AFFO11HUB028; X-OriginatorOrg: xilinx.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/18/2014 09:46 PM, atull wrote: > On Thu, 18 Dec 2014, Michal Simek wrote: > >> Hi Alan, >> >> first of all - there are these kernel-doc warnings. >> >> Info(drivers/staging/fpga/fpga-mgr.c:37): Scanning doc for fpga_mgr_low_level_state >> Warning(drivers/staging/fpga/fpga-mgr.c:43): No description found for return value of 'fpga_mgr_low_level_state' >> Info(drivers/staging/fpga/fpga-mgr.c:51): Scanning doc for __fpga_mgr_reset >> Warning(drivers/staging/fpga/fpga-mgr.c:55): No description found for return value of '__fpga_mgr_reset' >> Info(drivers/staging/fpga/fpga-mgr.c:69): Scanning doc for fpga_mgr_reset >> Warning(drivers/staging/fpga/fpga-mgr.c:73): No description found for return value of 'fpga_mgr_reset' >> Info(drivers/staging/fpga/fpga-mgr.c:88): Scanning doc for __fpga_mgr_stage_init >> Warning(drivers/staging/fpga/fpga-mgr.c:92): No description found for return value of '__fpga_mgr_stage_write_init' >> Info(drivers/staging/fpga/fpga-mgr.c:108): Scanning doc for __fpga_mgr_stage_write >> Warning(drivers/staging/fpga/fpga-mgr.c:115): No description found for return value of '__fpga_mgr_stage_write' >> Info(drivers/staging/fpga/fpga-mgr.c:129): Scanning doc for __fpga_mgr_stage_complete >> Warning(drivers/staging/fpga/fpga-mgr.c:133): No description found for return value of '__fpga_mgr_stage_write_complete' >> Info(drivers/staging/fpga/fpga-mgr.c:151): Scanning doc for __fpga_mgr_write >> Warning(drivers/staging/fpga/fpga-mgr.c:158): No description found for return value of '__fpga_mgr_write' >> Info(drivers/staging/fpga/fpga-mgr.c:173): Scanning doc for fpga_mgr_write >> Warning(drivers/staging/fpga/fpga-mgr.c:179): No description found for return value of 'fpga_mgr_write' >> Info(drivers/staging/fpga/fpga-mgr.c:195): Scanning doc for fpga_mgr_firmware_write >> Warning(drivers/staging/fpga/fpga-mgr.c:204): No description found for return value of 'fpga_mgr_firmware_write' >> Info(drivers/staging/fpga/fpga-mgr.c:234): Scanning doc for fpga_mgr_name >> Warning(drivers/staging/fpga/fpga-mgr.c:239): No description found for return value of 'fpga_mgr_name' >> Info(drivers/staging/fpga/fpga-mgr.c:414): Scanning doc for fpga_mgr_register >> Warning(drivers/staging/fpga/fpga-mgr.c:423): No description found for return value of 'fpga_mgr_register' >> Info(drivers/staging/fpga/fpga-mgr.c:480): Scanning doc for fpga_mgr_remove >> Warning(drivers/staging/fpga/fpga-mgr.c:484): No description found for parameter 'pdev' >> Warning(drivers/staging/fpga/fpga-mgr.c:484): Excess function parameter 'dev' description in 'fpga_mgr_remove' >> > > I see the warnings now. I wasn't using the '-v' option for kernel-doc. > Fixed in v6. > >>> diff --git a/drivers/staging/fpga/Makefile b/drivers/staging/fpga/Makefile >>> new file mode 100644 >>> index 0000000..ff6c677 >>> --- /dev/null >>> +++ b/drivers/staging/fpga/Makefile >>> @@ -0,0 +1,10 @@ >>> +# >>> +# Makefile for the fpga framework and fpga manager drivers. >>> +# >>> + >>> +fpga-mgr-core-y += fpga-mgr.o >> >> remove this line - it is unused. >> > > OK > >>> +static int __init fpga_mgr_dev_init(void) >>> +{ >>> + pr_info("FPGA Manager framework driver\n"); >>> + >>> + fpga_mgr_class = class_create(THIS_MODULE, "fpga_manager"); >>> + if (IS_ERR(fpga_mgr_class)) >>> + return PTR_ERR(fpga_mgr_class); >>> + >>> + fpga_mgr_class->dev_groups = fpga_mgr_groups; >> >> >> Write this here. >> if (IS_ENABLED(CONFIG_FPGA_MGR_SYSFS)) { >> fpga_mgr_class->dev_groups = fpga_mgr_groups; >> } >> >> I have tested it and it is working just fine. You can compile this >> driver with SYSFS=n >> The whole code is built and config option just export it. >> I think it is better than having #if there. >> >> Greg: Is there any problem with this solution? >> > > I'm cool with this myself. I'll add in v6. > >> BTW: I have pushed my branch to zero day testing system to get better coverage >> > > Michal, I've already done that with each submission. Assuming you are > referring to the kbuild test robot. Yes, Kbuild test robot. Thanks, Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/