Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2575983rwi; Fri, 28 Oct 2022 08:37:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ttlsEoyGMNvz/etoFqJd2K7X8d+PNxZ0JIxT1ZmDkaq+OFlx3c0cx/xvGAMnjGSOFXBUN X-Received: by 2002:a17:90a:ad83:b0:213:9c65:c2b5 with SMTP id s3-20020a17090aad8300b002139c65c2b5mr1608138pjq.137.1666971465266; Fri, 28 Oct 2022 08:37:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666971465; cv=none; d=google.com; s=arc-20160816; b=vCR/iJXIHM8ovJeNdPH7HuFr1AROk8V6tHaw7yZjHmgHhc2iXah/Bo2y9og7Bbz5qg 7wM6Ch4+YnkhGTzaRhU4EsoltL3noXpIT4ilFg7e3soxDHVqffLJz5vsjSBoSn5/tUwm giEifJCVh3VbWb/ZeGwkQ6ljctQBmLhg4NJmQTlWJFqX3qlxnEr0cx4POW0G1YtWe6dp Ut8QzL9sh3WnL3OpcgtX7tRSYFf8Y+didFwGJB2Zy9EgabLznWYcfMm0Md2DZd6TL8zg xFqmRZNa/dSJsG57/7xZ/C9gP53WZ5wlGXe4cAqcDEtcGOG5dBJX8/rjFCCD3Lgko4Hl 3gpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KESgtxp98yTHUoZtlQU4tbNiD6fIKzl1fVdZR1xYpYg=; b=pk4ZGEIeI3fkYdFCbLfzvHFNCR57dHbDcxAZ+nTmazcLWIM5O/zJwzmGrHudaINuUT ij6XX2g50vdaKgbTRa7Vfk6ZRD8V3G1pKo4gPCH0ZvaKQSYpPJ7o7qC+V3VTVsMZuG18 qAmUqmjxesvB33uXWWFwk8thl6UquJ4BL6p/W+yg1O+63/hDqFL7Ovk0HhQ3WMix+UZn d1eiGluc8l2BFabTGTIdERI0UaPVfEUGLbLAQP4W3kCGe2ykKQnIXIflrQ4ijCyffHFk xV597IRf2uw9ZX7l0CHUJwwmyKLWKNXqFxO5BK4Zcifvbk8vSO5KqqzPlSoSAlM1pLeo LlXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=CREjyA8i; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a63ff41000000b00412607fea43si5682317pgk.617.2022.10.28.08.37.30; Fri, 28 Oct 2022 08:37:45 -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; dkim=pass header.i=@google.com header.s=20210112 header.b=CREjyA8i; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231360AbiJ1OrO (ORCPT + 99 others); Fri, 28 Oct 2022 10:47:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231226AbiJ1Oq1 (ORCPT ); Fri, 28 Oct 2022 10:46:27 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 109E91F5268 for ; Fri, 28 Oct 2022 07:46:15 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id t25so13455483ejb.8 for ; Fri, 28 Oct 2022 07:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=KESgtxp98yTHUoZtlQU4tbNiD6fIKzl1fVdZR1xYpYg=; b=CREjyA8iKBGLrlScxh1MaZcu5JW1Eaclq9/mWkUrqcirUTHEuerOj6LJNS98dEH485 x/3tJ4el/hzWs3zDY2z4494TbS/XS/As+ZsdFatVbc8o00L8yJsyVSvtcmF7opWM3efi btaOl5H6a9FRYYtHnbKODvAzL23JLPoKteUpYxpnTzccOgY6JQcBVlqYxMN1FF68P/Ju DQco4x47+9VnXGtp3e2ECngJOPkiW+AAKQOAmK5Y7KApvQ2TAbOGHSCEVGERS0mS+6Ru h/ycWT2PK3iLLXa2s09SwbRlVFXjdBcB3xO2Crsh7jpCKY1/J19Zcde6HBO+HOEhFbYv D4Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KESgtxp98yTHUoZtlQU4tbNiD6fIKzl1fVdZR1xYpYg=; b=JFQIyD9tdmELW+PQ4+pYy6NTnnoghpMdoml8jP7QDFZQ+bMxZO2CMxNh+mNcy9rDTv gVG/mezCmXKeGtOPrifmGjiaUXZlRsGLNewagB9l1ZGyaZCD/xAdiI2dCzTUXeV3OU3h F2bDsvzSUeE5wUR/zc6ne/Oor6F2DTIIs607f8TEqgVMZEKvi/xKnvght1iL/5T9/a2v oTVPPJKVgNCojg47rEPCy8vc6drDdXxFdF1KYq4Nma3Qr6oZi0qj86FOXJ6RjL2OFbfg nNo7iL50wxDxrrXlyWdQNOE9H2kuP6YrU5o9uD9W3RuVL7TC8zDmZQbtQyapQMWb/A9c OnhQ== X-Gm-Message-State: ACrzQf3EbqTaq7nl6E9EQd6UaZeyZbeOJsURs85dSvkbpjzb6Yyoh3Y0 dc5/IKzgbgDwO6iA4XTnBDtFx8RTtThmR5FmjCyPAw== X-Received: by 2002:a17:907:2705:b0:7ad:8460:7d30 with SMTP id w5-20020a170907270500b007ad84607d30mr10658222ejk.693.1666968374179; Fri, 28 Oct 2022 07:46:14 -0700 (PDT) MIME-Version: 1.0 References: <20221028063055.2817-1-liubo03@inspur.com> In-Reply-To: <20221028063055.2817-1-liubo03@inspur.com> From: Daniel Latypov Date: Fri, 28 Oct 2022 07:46:02 -0700 Message-ID: Subject: Re: [PATCH] kunit: Include missing header To: Bo Liu Cc: brendan.higgins@linux.dev, davidgow@google.com, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 27, 2022 at 11:31 PM Bo Liu 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 Tested-by: Daniel Latypov 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 > > #include "string-stream.h" > +#include "debugfs.h" Very minor nit: could we swap the order of these? #include "debugfs.h" #include "string-stream.h"