Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp972175lqt; Tue, 19 Mar 2024 09:05:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhlzqgMwNUC+uhbG46GOkwt3XB76fGXRRSnHSQ28Dg+pajSbJ1Jpt7sFsTN9S2M4JIJ9uR+crRC6GPjw76xYecTYhFfMN0FdGgGYZ+Eg== X-Google-Smtp-Source: AGHT+IHSVa0ADIZS8WDv6tZ5rMd3EIzSvZaLUeEOJjW+PQ7RI4Ffo6GqLFa4aYZqJfwqDteAfAuY X-Received: by 2002:a05:6a21:9985:b0:1a3:5c83:31c0 with SMTP id ve5-20020a056a21998500b001a35c8331c0mr3252743pzb.38.1710864308481; Tue, 19 Mar 2024 09:05:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710864308; cv=pass; d=google.com; s=arc-20160816; b=i/VpwhGPMYU6vGNHv9Xp9TcUyVwSLc9JDV12xlUt4++as0T94M1RrMzncAzIG/+hYN frKiRHnrJPBZaTcs72R7QrHN97pQoFcJ+8LJ9YvDuMZwwV2NnLVwBnA/hhlSbskxo8vb lUUtUXFNgJpG078XE91lSofdO9bTmJHxV0oL02FCWijkF6I9MXlZSMfzZPhhGW33oXbt 419bBSnrAS5LVeHUXUw9QbfymhdY3+qthjr6m6movN/UO0Oe7AVca8DkjsZoz4awgtwG YhRZGXNqdNHorNEIfX7NtBJFuZY1EYl0cHitjJxj0ZaNLbX2CywpnsyTy6LmJwGIVpWq NMyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=eS0GccxVXWypqUcgMEYj0E+WEKgYMi2i2cBpKDqor1Y=; fh=LQvResJ2BSz8M71x2y945VoEhGuhUe6iHt0+f/OEOmQ=; b=VVM8481sv8omt14af9aSzOb27DpGG02J/RrWYOaimZnVAatEEaaTyRpavHIF+Pt99C mSs4DfQ6k9GU3il9KypdSO5gIQ5j/SR4FwJil1Svx+gyMDbbStZilyiIPnkziXFEwUS8 Ihmfz6VblOtRJyEyrE7NSIfryh2AFL3BmE+O277eUqxQyBhra76bypJfZ86SUs2bC/l9 t+UQhq3GFJK5OFV9aAQYTcJApSUCRTZoPU9piUJZGCMT4EVB8fG9x/zVQDRfE+Ae5m+L 6zBp63lSCBKTRrDF0nijoJtn96UgsmX7hMZ/WagZtN7Sd+7DplTK4nzm+Drb246GgfOw gpew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b="1GD/VRLI"; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-107762-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107762-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 202-20020a6300d3000000b005e4a2f03587si10610623pga.557.2024.03.19.09.05.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:05:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107762-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b="1GD/VRLI"; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-107762-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107762-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4ABB7285479 for ; Tue, 19 Mar 2024 16:04:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EAD1481754; Tue, 19 Mar 2024 16:04:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="1GD/VRLI" Received: from 008.lax.mailroute.net (008.lax.mailroute.net [199.89.1.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A01FD651BE; Tue, 19 Mar 2024 16:03:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864240; cv=none; b=rkrLrW4yvMF2vvckJKbWvBAcjW5Xlcqs+WoaYIw9ur+26H2nQoEQuMEkDL4A1YwN/A0F3SVuhcZuo732QBh+J71ACBS6ZasbFc6eutuleo2PCipgWmWCL5nTecEtWVOEfTAmXt+6VBobhVizUmVPReyPra2bgomxyc/5akJJ7Qc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864240; c=relaxed/simple; bh=CEUhq594SW1Z9wHf3qYoTJ70gFZ0XXHV/NW7y+d4pYQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GEl3ZOwfEzTQFosArQnqegSGMA1uOExUSeXFv0aYNCsPfZcEOn1xB4JpJfjAclZKQlj1pJkvIxfC8JTBtyw0VxQgdYo6hHpqmMSsOhzygfNWLKcFRnJegI0pK3sn7Kt+w8agGO4tr289MZ70VjQgCAKJMdL60xz7fq4bw4V7nRE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=1GD/VRLI; arc=none smtp.client-ip=199.89.1.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Received: from localhost (localhost [127.0.0.1]) by 008.lax.mailroute.net (Postfix) with ESMTP id 4Tzc3D2nP7z6Cnk8y; Tue, 19 Mar 2024 16:03:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:references:content-language:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1710864229; x=1713456230; bh=eS0GccxVXWypqUcgMEYj0E+W EKgYMi2i2cBpKDqor1Y=; b=1GD/VRLIz8hJStZSXeXadtBmzhDOchXyKzRp3CJ6 homyFeEjoIlh8ztTY0SlA0u2gFi/eIut8oAM5LKT7I9zmKPS2WLGb98Pte1N2wZH OsOK5eNRDehPTPcworC2UL2sEpJObmbkU3KLpg0MYcwsTEOkS1E1pyYit8CtT/Gr 8OcxuKRM/UdxIiHbd+3XfaYnuVj1O37HInp4nTGf2ExFSbgVRkltofgxko1UgfBz rBcZRPpnkn5stjJYOHfHDW9QWEJM1G3Fcnqo7SKo3BE0YGHGD/FhcWsKsC5H8j1o vae1oJA5MAZ7WCKtgad/q35lGWzuyqwpeeWVHk2sJvpYyw== X-Virus-Scanned: by MailRoute Received: from 008.lax.mailroute.net ([127.0.0.1]) by localhost (008.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id L_Mqn8hu0QZA; Tue, 19 Mar 2024 16:03:49 +0000 (UTC) Received: from [192.168.51.14] (c-73-231-117-72.hsd1.ca.comcast.net [73.231.117.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 008.lax.mailroute.net (Postfix) with ESMTPSA id 4Tzc3771Nhz6Cnk8t; Tue, 19 Mar 2024 16:03:47 +0000 (UTC) Message-ID: Date: Tue, 19 Mar 2024 09:03:45 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] scsi: core: Make scsi_lib KUnit tests modular for real Content-Language: en-US To: Geert Uytterhoeven , Mike Christie , "James E . J . Bottomley" , "Martin K . Petersen" , Lukas Bulwahn Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <48ca5e827ca420bbdbabb1643e2179dc95c9e0b7.1710849638.git.geert@linux-m68k.org> From: Bart Van Assche In-Reply-To: <48ca5e827ca420bbdbabb1643e2179dc95c9e0b7.1710849638.git.geert@linux-m68k.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/19/24 05:02, Geert Uytterhoeven wrote: > While SCSI_LIB_KUNIT_TEST is a tristate config symbol, configuring a > modular build of this test does not do anything: as the test code is > just included by the mid layer code, it only works in the built-in case. > > Fix this by converting the test to a stand-alone module. This requires > exporting scsi_check_passthrough() and adding a MODULE_LICENSE() tag. I don't like it that scsi_check_passthrough() is exported so that counts as a disadvantage of this patch. Why to convert scsi_lib_test into a kernel module? What are the advantages compared to the current approach? That information is missing from the patch description. Thanks, Bart.