Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1393137ybg; Wed, 29 Jul 2020 13:02:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+d9+wxHzOVg1q7hhq6jA1jH2hDtrmP4c3jrI7sf45QDMbbQxL7eQ2ExpYjmbNqnk3LV2W X-Received: by 2002:a17:906:8d5:: with SMTP id o21mr25765eje.155.1596052923464; Wed, 29 Jul 2020 13:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596052923; cv=none; d=google.com; s=arc-20160816; b=gqK5dxAU3kh2Jk1rKHPPk6eJIsfeVfhNM7LmEwvbLvKz7yKJqTos799EjQ2bGCBHxi kuM8/0hBpc3DD6pr4uJhKIzzjYjet5DXfP4QIniWYBYPFpCiOLf5r2r88fAtljiT4jC4 XULPiSsPnkbcufXy6mFy6+dKH0G8zU0+GhU8EMNN9mrtYZZ9grNXM1qlMehYZB+mJ7IE QJRasuaAOF9SQG+pvQ8owEK/iYjhm3he/oqRBnWGW1NGKIAUhFwEdTXxGOGG3dE55hPL ACxUyP3i117m98QSSB1+nfVdg0Ggpuca8MXBStX/5Pt5GpX4EEq+LD3wKGhq4d95q7Ej Pq4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=uXah3Xc+kLkZM/PLhPslS3L9/VAQlpaeM7DPNTz+mRo=; b=fp+GpOxb23a12kVp9PwUPWk3nI+Yj2HWNLvOcEG7qPQY42A3rnvtAsnA8JhimiwUUJ e9b+7mBOopWh6QqgxY58vH0eQjhv01v8Om1JpxHikNJLuTsxt42cbVI55KKbGsAvYK5g pPVKw8GNAtvPgB9KtK/+USCEn71RZ/95XDVPC6smmWUwUQjLFKq/EqjD/oYIRy/dqEb0 HsMS2jz0/J8ROXyqVfdO4+luQOpASV5X2w/N/ZkGFrm/IRDebYcOrQDWzhXcddA9ZbA3 RaW8fue75c0bRFdcVMQImAWxuobBEr22rETGmRj2PziIVrW6l4qHkNQ38UqzFxNnPT23 fPmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=m0yOqGSS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga10si1099718ejb.372.2020.07.29.13.01.40; Wed, 29 Jul 2020 13:02:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=m0yOqGSS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726718AbgG2T7l (ORCPT + 99 others); Wed, 29 Jul 2020 15:59:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbgG2T7k (ORCPT ); Wed, 29 Jul 2020 15:59:40 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A195EC0619D2 for ; Wed, 29 Jul 2020 12:59:40 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id l2so7231023pff.0 for ; Wed, 29 Jul 2020 12:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uXah3Xc+kLkZM/PLhPslS3L9/VAQlpaeM7DPNTz+mRo=; b=m0yOqGSSOobbbR1nXbyONcYMoY9QcZn/h7RfTI6uhYaO/tH+AqMNCgY4tLf21I8vXk Yh4Ks3FqHTvlZaNLAK1//sEF+F4zflndG/1gOtS0jQVceWjtcIlAGrVYWF18eEEftqub ChyKawfxRra4GHOAfLwuDeqdkMpSTXvbb5AjPF/Cr6ypx42CMLxmJa0i1AeERJm2jfhU UekCtB4i6g+uwk7Wnp1Ba+mt9c2OV22+9zXc2UAog6H1P87JdmRhoZPaSDwcTULzPjNh Bo5jaFASd2oYnfR3SQqwi4ctv3IU2uD24B7oxSMByDICnt6HRM6SfF2MXCNJ4WPzptly KFTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uXah3Xc+kLkZM/PLhPslS3L9/VAQlpaeM7DPNTz+mRo=; b=SYzXQSEPIIPHnVCl6RuSRS2hjwJZj8G5x6Qo7K5rUrFDKM/fcp6U5hEWGQlyRjdyxN zyte1/4DLCweftPYu0ejGFLtbCUjTHO7/uC/5ZMYx+RCjzxxTefT56chTZe5Si+3O7IZ seMmux0pG5PIGhe5SPLSZlR5X7PK6oIwy2rBEifXS8oSc9ew2ITbM0b0qFsjl+02kBAK Tg5k1aDjm8SDBQCIfkNfXSmL4BEfh+VAEfdc/CI8hAKi44VzcD03YBeKcL6J0wsIOy1O 3tmCV4scm4gvXqjUx5hsq+rIWSzwT+6DrIfkUnrh7BI6s93qjumpXvTtTGtuSPMQZcFC XCEg== X-Gm-Message-State: AOAM531nYlIuOlZegoozZtmU+rZqPJnBIwahSLeIDYMNCgZ6uhywACxu KvYe+P4BKjJlrVAwQWGos4MRdEGCqqACBl01c2OdhQ== X-Received: by 2002:a63:d501:: with SMTP id c1mr30791224pgg.159.1596052779669; Wed, 29 Jul 2020 12:59:39 -0700 (PDT) MIME-Version: 1.0 References: <20200729191151.476368-1-vitor@massaru.org> <20200729191948.GZ3703480@smile.fi.intel.com> In-Reply-To: <20200729191948.GZ3703480@smile.fi.intel.com> From: Brendan Higgins Date: Wed, 29 Jul 2020 12:59:28 -0700 Message-ID: Subject: Re: [PATCH v2] lib: kunit: Convert test_sort to KUnit test To: Andy Shevchenko Cc: Vitor Massaru Iha , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , Shuah Khan , linux-kernel-mentees@lists.linuxfoundation.org, Greg KH , Thomas Gleixner , fkostenzer@live.at, Geert Uytterhoeven , Paul Gortmaker , Andrew Morton , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 29, 2020 at 12:19 PM Andy Shevchenko wrote: > > On Wed, Jul 29, 2020 at 04:11:51PM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the test_sort.c to KUnit test. > > > > Please apply this commit first (linux-kselftest/kunit-fixes): > > 3f37d14b8a3152441f36b6bc74000996679f0998 kunit: kunit_config: Fix parsing of CONFIG options with space > > Looks like you mixed up commit message and changelog / comments. > > > Code Style Documentation: [0] > > > > Fix these warnings Reported-by lkp@intel.com > > > > WARNING: modpost: vmlinux.o(.data+0x4fc70): Section mismatch in reference from the variable sort_test_cases to the variable .init.text:sort_test > > The variable sort_test_cases references > > the variable __init sort_test > > If the reference is valid then annotate the > > variable with or __refdata (see linux/init.h) or name the variable > > > > WARNING: modpost: lib/sort_kunit.o(.data+0x11c): Section mismatch in reference from the variable sort_test_cases to the function .init.text:sort_test() > > The variable sort_test_cases references > > the function __init sort_test() > > > Signed-off-by: Vitor Massaru Iha > > Reported-by: kernel test robot > > Link: [0] https://lore.kernel.org/linux-kselftest/20200620054944.167330-1-davidgow@google.com/T/#u > > This should be in different order: Link, Reported-by, SoB. > Also [0] is unnecessary > > > lib/{test_sort.c => sort_kunit.c} | 31 +++++++++++++++---------------- > > Still opened question why kunit is a suffix? Can't we leave same name? Can't we > do it rather prefix? Sorry to jump in now; I thought Vitor's reply with a link to the new proposed documentation[1] addressed this. The naming convention issue came up about a month ago[2]. The people in the discussion (including myself) came to an agreement on _kunit.c. That being said, the documentation hasn't been accepted yet, so if you really feel strongly about it, now is the time to change it. All that being said, I would rather not discuss that issue here for the benefit of the participants in the preceding discussions. I posted lore links for the relevant threads, which should be easy enough to In-Reply-To your way into. Nevertheless, if it makes it easier, let me know and I can CC you into the discussions. [1] https://lore.kernel.org/linux-kselftest/20200620054944.167330-1-davidgow@google.com/T/#u [2] https://lore.kernel.org/linux-kselftest/202006141005.BA19A9D3@keescook/t/#u Cheers