Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1371947ybg; Wed, 29 Jul 2020 12:23:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzojtZYgI8Qe2ipgaM5zu+slmyPsUsk/ptbOjmHatknMZ4EHwjVn6t1JP0gAy9zTZDua/YQ X-Received: by 2002:a17:906:f298:: with SMTP id gu24mr31397409ejb.302.1596050586897; Wed, 29 Jul 2020 12:23:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596050586; cv=none; d=google.com; s=arc-20160816; b=yoHza9lzUjLfdNXSipAzhlnP8vqySA4ojrY9HmaCf+2x66xKBYO7wvTlA/5GWaFhKs BULEd644lrPOZFVNVarbEHHXwC/fkxBYZmEOJGEb0wA+UoaSz1cZI9r4f6dqBsXM17lB vssFrB82WVm+2JMF4I7VUlCW+Q/4vdchKAgGOcuHF0V3BgvVKBHg+aN5SH7GxC6jW2Y4 ji07GkPHD7JUYug5RLlXgKvWUlHFojphvb5jf8USXvu3/3KUjQuSlFSeoMFW3OCXBChq FTYEI7FyQxlPd1gHjolGhqqKNJZhoXU8kWoe/duXGWr6NDYAJmdglyC9EUNIY2nMrD7N uNFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=ZerhiKOebGZ6y0mvDK2F2PbKooKB2U+RdeYSnCJdmQs=; b=a1x17h/3IJLZqw96e3RZIceRHZf7vVVA7ggQsksKPpWpw/fqkM+ez1OqtJR17CY3xj sI5VzliZQeZKvPn/XDGoOj72UkQRYxyULNN9nKoq+cQ71hap/u6F0FB+uV5+Xh4Ht4G1 8iplwAOM0r4t98iSIfSCaQ+ZSBVC/5mQgVUpM8uuYczAAHlF8bKGxW1woyQt5X7oPKnq uZbnR0PvDJqwhpN9KTYEDWnojDDj0vqpff8mJVS1SXoIhTYK1Khzi5wk7ImxNLnydT1V IVo6CrnroMNdN6m5L0J2R/uU2F56XnZDA79FOS5fogSsY5J2YlzplePH5tshLpbYRDWd 8WcQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c14si1955566edr.41.2020.07.29.12.22.44; Wed, 29 Jul 2020 12:23:06 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726869AbgG2TTy (ORCPT + 99 others); Wed, 29 Jul 2020 15:19:54 -0400 Received: from mga09.intel.com ([134.134.136.24]:6307 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726813AbgG2TTx (ORCPT ); Wed, 29 Jul 2020 15:19:53 -0400 IronPort-SDR: Kbs0mnr1F0haw7UsaLZIbz4v/rDcSNWCDgtNizq3QTASpTP5uflnLBbDKhWahqdiuJvMDmYC+a /eXE7IoX1D0A== X-IronPort-AV: E=McAfee;i="6000,8403,9697"; a="152719831" X-IronPort-AV: E=Sophos;i="5.75,411,1589266800"; d="scan'208";a="152719831" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2020 12:19:52 -0700 IronPort-SDR: 9RzVGALLuwjEf6BbEneL9Y8lhW66wiDJI9yQHUpi82JXlsMRSLvM/YpEAcDLtJ0yE68qDNGsgR PD7ny7XnW9OA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,411,1589266800"; d="scan'208";a="364941243" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga001.jf.intel.com with ESMTP; 29 Jul 2020 12:19:49 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1k0rcC-004ksx-SW; Wed, 29 Jul 2020 22:19:48 +0300 Date: Wed, 29 Jul 2020 22:19:48 +0300 From: Andy Shevchenko To: Vitor Massaru Iha Cc: kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, brendanhiggins@google.com, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org, gregkh@linuxfoundation.org, tglx@linutronix.de, fkostenzer@live.at, geert@linux-m68k.org, paul.gortmaker@windriver.com, akpm@linux-foundation.org, torvalds@linux-foundation.org Subject: Re: [PATCH v2] lib: kunit: Convert test_sort to KUnit test Message-ID: <20200729191948.GZ3703480@smile.fi.intel.com> References: <20200729191151.476368-1-vitor@massaru.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200729191151.476368-1-vitor@massaru.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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 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? -- With Best Regards, Andy Shevchenko