Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp799062iob; Fri, 13 May 2022 12:59:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsbPzcoxOdDbNScWWWf/Hy+VwghA00A4pf0O84CaYkLf3O0CX0r6iBZqiw7sQyW4rao0oL X-Received: by 2002:a17:906:2883:b0:6e8:7012:4185 with SMTP id o3-20020a170906288300b006e870124185mr5603064ejd.204.1652471956007; Fri, 13 May 2022 12:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652471956; cv=none; d=google.com; s=arc-20160816; b=LLqkgHnhrz/ScGC8rOu2fMy+RErHYP7i75Q5aDfmjFdAPnJtbX0yltAMzFXTh8/UlA Vwq9fkzR3b7UoIBEnfjoZWkkncJT7+o4Q35jBbq88IoEUgcFmpudaVeu2+yOq7IKapSI sJ3a1ONXMuebMgNsNdZIShtedo8Dp/U5/f4ZoxCl1X8VxKpmNqCdiFKYGIQx/blRHBHS kmggAlouP4ZSvH8tvT5D9tjIQHKwaKHBo5jULay6Dd4oy+VG87vob4vfUcm95ktpQwx8 f1AVkAOLE7UtmQEtGOFR2GFulQ/KlOPy0if8hUR4WF4hHvaMnBA8JBOBJ2zLF/UlTyk6 +c1A== 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=wYIE3zQpUPgi6v7iFVdQ2/TvPUcauYhfaGvlN50Rhro=; b=SRIPJpWPc+R1wkkX+If1lf7kRIFpj34qXRW8Z6cldJtQE+0MOBcx+EMtQGt5qwJdqQ +8m0tjph3rT29xykU34jPIGAOS/P2pPOIHj8judZ6zxMuUVOCjyPWPqpsEhIqQ7Z9GHn H85JbHB6/00/TwbaVq6l/FYrEb7Jru/Ts8jP3NbuMzRj8KfJblKbk5sauAVBW4//3qDk gEpkDjehSxayZfDFTL3JTdb78fpV2oxEKdCp8mYgy8Eozq8uR3YI9cpnldI7KfPrPt7n 4qIfLpCa1ImSZ7G9IYlAuuNKFOBKsGpmwaWFhwKeVBjO98yl9RpSymtbt6+/rHngkEp8 TojQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=iY1k9LtT; 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 ht14-20020a170907608e00b006f3ab6a51dasi3022182ejc.661.2022.05.13.12.58.49; Fri, 13 May 2022 12:59:15 -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=iY1k9LtT; 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 S1382391AbiEMQZa (ORCPT + 99 others); Fri, 13 May 2022 12:25:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381875AbiEMQZ1 (ORCPT ); Fri, 13 May 2022 12:25:27 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6284691567 for ; Fri, 13 May 2022 09:25:26 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id a21so10601251edb.1 for ; Fri, 13 May 2022 09:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wYIE3zQpUPgi6v7iFVdQ2/TvPUcauYhfaGvlN50Rhro=; b=iY1k9LtTjSRyhsBlrL/e+liP2aDYDcihjvvw+2UVcBUKOAKoTwNzi39/GXjBIzyfbm 6S8rz21bB1xCh/5l10W4z6UeRBLwWakJKIrJ03lk0GtkOzUB4z3uPPp2MOcb83RDD/qE Ilh0kPea9v0B4O5FFuR2RJfdum3iphLZWot1+oBUVpbD4y8ZLpPFYv+ukyRz2dSMnFHn KTfKVA7MLp5K8i2CEYGAmI80pggKs19ZvlcgHZu2+C4I1QtKcPNO/XAyqjFzft3hj0/G AFIXfqilaYIUzXH2z1+p/dm8czDIW5QbTUjjCVwGg0DGp3fyQGtV5HC47X3lpsKW4eZ/ pUdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wYIE3zQpUPgi6v7iFVdQ2/TvPUcauYhfaGvlN50Rhro=; b=EmGHmfOues10bXRvh1xpg9PZKPddfxgF83AOIw2G5KatLoCGHM6ht9utKidKUkICsi RG4qd1C2gcgVK4QponEgpysNKgAslii354fRkUzI4O4whvqvwoW069duJBk0XT9VZ8zN ui1Wtl6IqzsNjw7ddS00e5X6VCvEOtCoRN1FvvF3emXd5lLbrWB3diOunSMFUPYFg3/4 XScevdsiTKofhc219wg3OM/Q49vpb4UIgldTJRTrUBgE1byJLXgvmU8DB3Wg5dZexo1g PvcWxbNtdEFsZAuaT38QKDl9kstpaRxNX4/Vu311RHXrdMoSgrAazDAv4OKIhAUsvd9M Czqw== X-Gm-Message-State: AOAM533H92PZ0Tx1rVSB4Zg/HrJxVl3ohLA8wSTFgnjHPy3tAoLu+wNZ z+14LblIShoEYHSJm1p11Alg7x+haw3Q3DhEdtUqDw== X-Received: by 2002:a05:6402:28b6:b0:425:e137:e31a with SMTP id eg54-20020a05640228b600b00425e137e31amr41336129edb.215.1652459124752; Fri, 13 May 2022 09:25:24 -0700 (PDT) MIME-Version: 1.0 References: <20220502192327.81153-1-dlatypov@google.com> <87ilqa6sjo.fsf@mpe.ellerman.id.au> In-Reply-To: <87ilqa6sjo.fsf@mpe.ellerman.id.au> From: Daniel Latypov Date: Fri, 13 May 2022 09:25:13 -0700 Message-ID: Subject: Re: [PATCH] lib/atomic64_test.c: convert to use KUnit To: Michael Ellerman Cc: brendanhiggins@google.com, davidgow@google.com, linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, skhan@linuxfoundation.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, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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, May 12, 2022 at 8:06 PM Michael Ellerman wrote: > > Daniel Latypov writes: > > The test currently is a bunch of checks (implemented using BUG_ON()) > > that can be built into the kernel or as a module. > > > > Convert it to a KUnit test, which can also run in both modes. > > From a user's perspective, this change adds a CONFIG_KUNIT=y dep and > > changes the output format of the test [1]. The test itself is the same. > ... > > I don't know why I got Cc'ed on this :), but I gave it a quick test anyway. > > Seems to work fine on a Power9. > I also flipped some of the conditionals to make sure failure is detected > correctly. > > Tested-by: Michael Ellerman (powerpc) Thanks! You were just the last person to have made a real change to this file [1]. The people signing off no commits seemed inconsistent and get_maintainers didn't give anything back. commit ffba19ccae8d98beb0a17345a0b1ee9e415b23b8 Author: Michael Ellerman Date: Fri Jul 14 14:49:41 2017 -0700 > > > > Meta: > > 1. this patch applies on top of the kunit branch, > > https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git/?h=kunit > > > > 2. checkpatch complains about aligning with parens, but it wants me to > > indent the `#ifdef CONFIG_X86_64` which seems inappropriate in context. > > > > 3. this file doesn't seem to have a clear maintainer, so I assume this > > conversion is fine to go through the kunit branch. > > I think you want to at least Cc the atomic folks: > > ATOMIC INFRASTRUCTURE > M: Will Deacon > M: Peter Zijlstra > R: Boqun Feng > R: Mark Rutland > L: linux-kernel@vger.kernel.org > S: Maintained Ah, thanks for the pointer. I'll see if I can add F: lib/atomic64_test.c to that entry so this files owners get tracked properly. Daniel