Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp636409lqp; Sun, 9 Jun 2024 12:01:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8vmx3BowUqEppiUOPpYAqPO4ZlY8ShpygnBCRI5mmACDRrmFfhnV6u8kgX6QR/84nf/aJWxyE9tZtUVSZMPEm7NM5h/+oZ6t+N9PXUw== X-Google-Smtp-Source: AGHT+IHFWVy+oHpTWYuU2By9AkHNlo2KvshBycR/u/X3jFMCvW2ss3FOmimsi6BMOro3JlXLPvcx X-Received: by 2002:a17:907:72d6:b0:a67:7649:3c3b with SMTP id a640c23a62f3a-a6cd5616a97mr672977466b.5.1717959700295; Sun, 09 Jun 2024 12:01:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717959700; cv=pass; d=google.com; s=arc-20160816; b=hkh0+vHxyw6hJt+Z2NrfTMTE8P99hkP+Vj3dz2s/XImyHS8FtXNmvqvOBw2nwRkLXo KiVFJZmidICVTku3Aztdvjc8SheD3ShF5yw64RpCJG06BewrkkusKfxOSAyJRUPv/MFJ mewe0goApSMsdbDSTvdB9XnZEbXoDu4p5qtPyGXCAp4xIw3Y9A790tryUDGSO9ilxyAa iSz0H9xnEPfH4+ugPiOD88IVK2qUwrKECKIJm8oCsyDI9Q8xtwtAtKOQUx6r60LgityA RRZCUbPipbxm1Pte/wsQ/ZCTL+lBYaFrgITyQgJSFBG1UTLFDEs/qTkZTfiK2f6UMfae jr+g== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=EPmBBYLT5yNnrcbl92wdFUaVe7Q/yxC54IFQQ0drxFU=; fh=T2kPCCe4V7RMzK+ZqP2P24YU5yTIsyg7pcOY5efEBF8=; b=wkGYFf0fprQm/Zj4xGt39C4O0TJBTOSxvt7XrCvAC0dCaIRW1b/0Td+tX4UuEAdjcy tFzB7KwmbfOVgyLDxqHb/t24BJkk1DV76Gdp9FvV4FHrdDufwNxCu8n6Pt8oJC/Va3PZ nPK+L289q5q0INJoSVied4cr/F25dbvZLj+5lq2jzN91lnZW+bcQ0zVYuAcpwJmSHWA5 cVCcWLiVjS/LXXs9PPhkVn9LcquPQYfd0m8gxOtaJsqrjRbKieprArxdTP/lBjp4f8VU kfRaucQqz90mXxer+Tc+95xsNgdd7H69cqbO4T6o2X2Tr1qy61CzCR35x22Cwb1eupcS q88A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b63hlcB9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-207486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207486-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f1f3e6b1csi31878066b.1.2024.06.09.12.01.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 12:01:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b63hlcB9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-207486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207486-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id CD55E1F2123A for ; Sun, 9 Jun 2024 19:01:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A1924D8A9; Sun, 9 Jun 2024 19:01:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="b63hlcB9" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2126E1B28D; Sun, 9 Jun 2024 19:01:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717959691; cv=none; b=HUwlcleHDvmb1wNETQouiZPdi/6i+E5q4Z7YJiaxpDDcjHL5wenmyJ4cXjObO/5pGCAZvIAQYkCmZGIS6FPFfvEEa2jlMD8nlGnnjWT1gFRvShzWtkcS66v2idT+CsHh6mlDVRrOcam83dneAJg6+zd1Emcz5J11xPR18Vv4ZoQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717959691; c=relaxed/simple; bh=ocoRvi11iBtziByojGeenMr4D6A+yGo/xCifrTlDuUw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pZNPtR0z3rLUadaTjbcvGsdUyOT/BSxDVojqaFmVbtKIW2LYoJxv2kzrJoF3HeH4U3WGBc/S3rvAE21aQIKwqhr5PRzipjWkN5+JnHOIHpECOwvtO5WDQZfj9f2alDYX6OqvJ2T40mMeepVSnEfudzr4CjR0avksBDVvs/lqkZ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=b63hlcB9; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-52b7ecafe05so678083e87.3; Sun, 09 Jun 2024 12:01:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717959688; x=1718564488; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=EPmBBYLT5yNnrcbl92wdFUaVe7Q/yxC54IFQQ0drxFU=; b=b63hlcB9bWCs8JtfivCd/EXRYv0ut7dLaXNAnb9VzJeMvtpNRz086lTBRD3anerXPv isx53cv/i2EacUuRwZYXbr8ElkLN2vKXv6G6n88UbCBnuFUJtqlisHpRKb1I6jcsrrkI 4pd5kIbDASfVY+BJGiYpxafjKiQgHelR0JXNzcPlWFejoVweESwzt6TylAR947Gs3our Hc5fEpVRLGrZ7X7JtZB+IVQbFvGyWKBS4OQTG1UvDQ3Y89ALvhl/+PQ3PQMPPh0QC628 /UNmL0ENh7oneohL5i2w4e2+1t6xHPhYyA4kf/F11nGnrTy1mn49ViWm3S+cIRYhR1cA VuMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717959688; x=1718564488; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EPmBBYLT5yNnrcbl92wdFUaVe7Q/yxC54IFQQ0drxFU=; b=ro9XDkUyo8FeS9zbstWA4qVY4+d2roTW4kwfsdX32IdWSOoon39D6UFdCLGAj9T95/ imuutooFn2/yjPfMLsKX2Rjkdrb029bFPeG27xgFa0CJ0eClFR7iAwrzqf2FPM5HjKM3 EqgZ8C4scablVFdoJQFXlrS+Ux6JDpD5t7gv142YdFxBHnWqjYvzcc06WSSIcMn0AUNF uXRgDGcT3WZWRuuUifZkUVLHoNlE/8PsybgbtchfFH2hgwe1bvaoYFAQmGG/FZMqmuil HQW/wt3wpiooqv1TQVHmGW3elnZ0oahV4aPOH24wt8k8o0poEjJ++uXVTZMpAELz0+Jn Levw== X-Forwarded-Encrypted: i=1; AJvYcCV168gvUEYGYY5DVvgoZOvvR20xRUqVziHLmdcjm7/FhnXOOfb0uo+/mz7lA6sz+jzGc31QhyCBdieAWis3Yag3culg/QUHRDsnIZKux9EGaudgpCsZP2L/Q9VcSpn65YgAV3hvc54VTp661w93 X-Gm-Message-State: AOJu0YyyJDGxhQWwPuLQxG1RSHT3EKSgSOVNRxi0sMskxqiRr1e3p0xH XLnWBcpAIPfZwARijsgxqox8QNQJKXzl5LKt+VyZQpvMFruqgBs1 X-Received: by 2002:a05:6512:551:b0:52b:8325:6eed with SMTP id 2adb3069b0e04-52bb9f76f7dmr4617590e87.2.1717959687981; Sun, 09 Jun 2024 12:01:27 -0700 (PDT) Received: from ?IPV6:2a01:4b00:d20e:7300:4c17:8e3c:d4d8:5918? ([2a01:4b00:d20e:7300:4c17:8e3c:d4d8:5918]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35f1f109346sm2387028f8f.27.2024.06.09.12.01.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Jun 2024 12:01:27 -0700 (PDT) Message-ID: <655c6a80-53d0-4a9c-b242-25936646e49c@gmail.com> Date: Sun, 9 Jun 2024 20:01:26 +0100 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 1/5] kunit: string-stream: export non-static functions To: David Gow Cc: brendan.higgins@linux.dev, rmoar@google.com, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org References: <20240604123204.10412-1-ivan.orlov0322@gmail.com> <20240604123204.10412-2-ivan.orlov0322@gmail.com> Content-Language: en-US From: Ivan Orlov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/8/24 10:20, David Gow wrote: > On Tue, 4 Jun 2024 at 20:32, Ivan Orlov wrote: >> >> Export non-static functions from the string-stream.c file into the KUnit >> namespace in order to be able to access them from the KUnit core tests >> (when they are loaded as modules). >> >> Signed-off-by: Ivan Orlov >> --- > > Looks good to me, thanks. > > It's very slightly hilarious to use EXPORT_SYMBOL_IF_KUNIT() here, > because _of course_ KUnit is enabled, but I think it's the right idea > nevertheless. > > Reviewed-by: David Gow Hi David, Thank you for the review. Yes, the name of the EXPORT_SYMBOL_IF_KUNIT macro in this case is a bit confusing... It is used not only to export the symbol conditionally (if CONFIG_KUNIT is enabled), but also to export the symbol into the KUnit namespace (so I used it as a shortcut for this action here) :) -- Kind regards, Ivan Orlov