Message ID | 20221028063055.2817-1-liubo03@inspur.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp657636wru; Thu, 27 Oct 2022 23:40:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4/c2j7ZAc1RGVN1oa1XBanDA2NmeWL8vzPxFW5RcXdEp5+k1vIK6HSojmir/3B/VRoJDki X-Received: by 2002:a17:902:7b87:b0:179:ec0a:7239 with SMTP id w7-20020a1709027b8700b00179ec0a7239mr54903993pll.139.1666939217655; Thu, 27 Oct 2022 23:40:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666939217; cv=none; d=google.com; s=arc-20160816; b=mFsRtOPcRvTvAkB6kvwC/bAAMlOm2FFjyvS80ajdHVAzLAK8oGwoDpuv0wC/3hgOIU PULFCgJ2mYCM39LQkW7K/0egsDXoTjMPL+EGg+0aF0G7KPk8qenHSwEhDU0Cs8QiiVuO dh7Fh5m6bHB5TXdpABDQhdJ6E6hvgKtRkgcEMpezOkmaztK3VjjvAQQFoKD/pKHpas1W EePXo1ugNt0laMxgZwKb5dZONRUe9gqR+o6wgzrhIHeN2/ovqdSsI9nUi2VdjKrO2p2g rutUOL8gv29hLKaR3ZTS1LO1YgYNC0zR3CveoeyvMDCn7DR0KEy/a98gIkqYzL6gRxK9 /6HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:abuse-reports-to:tuid:mime-version:message-id :date:subject:cc:to:from; bh=UIe2VIrFbm671u5wnl9jadoSVmbFAxzu6gkpk1kPKvM=; b=tk8zZI8n5rLR9R+XGnlQBJA6UVs6O/ZD782ZthEOqcAQhDTZJgcHXbUMDE1LAKheBX 4gD3uaar1Vb2UhMreB7J2rDqfJpz4l4WTAz4Qlf10fNb0pIUhbpRzsZgcdNbOwBGQREe IEmP4F/KUnAvyvvjjcnTVDqMeRZEudvK9IDN93GZDVtVhE9bmk7kDvzoPCRCOwjz4EMj sT9SJjM9SH112n9CDYYeGbTq3d7zd8X62GN1BEEAN3C4MGVOlP8Mdpau/GrJFuEN6W3j WehYZVQyr0k6Yy2h3J6S3R7Jv+bjMnhC9Y3vMkHRCLR8dqSFO72umXkqbJRLO5p2uzyI 4lLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot8-20020a17090b3b4800b00200919a55b1si10400058pjb.180.2022.10.27.23.40.03; Thu, 27 Oct 2022 23:40:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229827AbiJ1GbV (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Fri, 28 Oct 2022 02:31:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbiJ1GbQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 28 Oct 2022 02:31:16 -0400 Received: from unicom145.biz-email.net (unicom145.biz-email.net [210.51.26.145]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56FBA10C4E8; Thu, 27 Oct 2022 23:31:12 -0700 (PDT) Received: from ([60.208.111.195]) by unicom145.biz-email.net ((D)) with ASMTP (SSL) id WGH00009; Fri, 28 Oct 2022 14:31:09 +0800 Received: from localhost.localdomain (10.200.104.97) by jtjnmail201607.home.langchao.com (10.100.2.7) with Microsoft SMTP Server id 15.1.2507.12; Fri, 28 Oct 2022 14:31:08 +0800 From: Bo Liu <liubo03@inspur.com> To: <brendan.higgins@linux.dev>, <davidgow@google.com> CC: <linux-kselftest@vger.kernel.org>, <kunit-dev@googlegroups.com>, <linux-kernel@vger.kernel.org>, Bo Liu <liubo03@inspur.com> Subject: [PATCH] kunit: Include missing header Date: Fri, 28 Oct 2022 02:30:55 -0400 Message-ID: <20221028063055.2817-1-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.200.104.97] tUid: 20221028143109f24a302985491c280d98218309c435e6 X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747912457216279984?= X-GMAIL-MSGID: =?utf-8?q?1747912457216279984?= |
Series |
kunit: Include missing header
|
|
Commit Message
Bo Liu
Oct. 28, 2022, 6:30 a.m. UTC
The file debugfs.c missed the header debugfs.h, which
resulted on the following warning:
lib/kunit/debugfs.c:28:6: warning: no previous prototype for 'kunit_debugfs_cleanup' [-Wmissing-prototypes]
void kunit_debugfs_cleanup(void)
^~~~~~~~~~~~~~~~~~~~~
lib/kunit/debugfs.c:33:6: warning: no previous prototype for 'kunit_debugfs_init' [-Wmissing-prototypes]
void kunit_debugfs_init(void)
^~~~~~~~~~~~~~~~~~
lib/kunit/debugfs.c:92:6: warning: no previous prototype for 'kunit_debugfs_create_suite' [-Wmissing-prototypes]
void kunit_debugfs_create_suite(struct kunit_suite *suite)
^~~~~~~~~~~~~~~~~~~~~~~~~~
lib/kunit/debugfs.c:108:6: warning: no previous prototype for 'kunit_debugfs_destroy_suite' [-Wmissing-prototypes]
void kunit_debugfs_destroy_suite(struct kunit_suite *suite)
Signed-off-by: Bo Liu <liubo03@inspur.com>
---
lib/kunit/debugfs.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Thu, Oct 27, 2022 at 11:31 PM Bo Liu <liubo03@inspur.com> wrote: > > The file debugfs.c missed the header debugfs.h, which > resulted on the following warning: > > lib/kunit/debugfs.c:28:6: warning: no previous prototype for 'kunit_debugfs_cleanup' [-Wmissing-prototypes] > void kunit_debugfs_cleanup(void) > ^~~~~~~~~~~~~~~~~~~~~ > lib/kunit/debugfs.c:33:6: warning: no previous prototype for 'kunit_debugfs_init' [-Wmissing-prototypes] > void kunit_debugfs_init(void) > ^~~~~~~~~~~~~~~~~~ > lib/kunit/debugfs.c:92:6: warning: no previous prototype for 'kunit_debugfs_create_suite' [-Wmissing-prototypes] > void kunit_debugfs_create_suite(struct kunit_suite *suite) > ^~~~~~~~~~~~~~~~~~~~~~~~~~ > lib/kunit/debugfs.c:108:6: warning: no previous prototype for 'kunit_debugfs_destroy_suite' [-Wmissing-prototypes] > void kunit_debugfs_destroy_suite(struct kunit_suite *suite) > > Signed-off-by: Bo Liu <liubo03@inspur.com> Tested-by: Daniel Latypov <dlatypov@google.com> Looks good to me, one minor nit below. Brendan, can you take a look when you get a moment? Question for context: is there a plan to enable this flag by default or something like that? I was a bit surprised that -Wall doesn't seem to enable this flag when I was testing locally. > --- > lib/kunit/debugfs.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/kunit/debugfs.c b/lib/kunit/debugfs.c > index 1048ef1b8d6e..83411075f614 100644 > --- a/lib/kunit/debugfs.c > +++ b/lib/kunit/debugfs.c > @@ -10,6 +10,7 @@ > #include <kunit/test.h> > > #include "string-stream.h" > +#include "debugfs.h" Very minor nit: could we swap the order of these? #include "debugfs.h" #include "string-stream.h"
diff --git a/lib/kunit/debugfs.c b/lib/kunit/debugfs.c index 1048ef1b8d6e..83411075f614 100644 --- a/lib/kunit/debugfs.c +++ b/lib/kunit/debugfs.c @@ -10,6 +10,7 @@ #include <kunit/test.h> #include "string-stream.h" +#include "debugfs.h" #define KUNIT_DEBUGFS_ROOT "kunit" #define KUNIT_DEBUGFS_RESULTS "results"