Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp140230rdb; Tue, 5 Dec 2023 00:39:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5Ci+reXFh0z1exjut+ZwkK9B1vkwQP6pdDycgSbGgG9OAeQRIKOvLSo7yMnbjqhquaCMI X-Received: by 2002:a62:84cf:0:b0:6ce:2731:d5cb with SMTP id k198-20020a6284cf000000b006ce2731d5cbmr780385pfd.60.1701765572212; Tue, 05 Dec 2023 00:39:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701765572; cv=none; d=google.com; s=arc-20160816; b=s+T8e+tX1C7oPe1BEl4DDupcOLSvozmi+patk07DWsYXJ8NGkmUWcbXnheBvxUNcx9 EOHzPYKv4mXtpP5ltYbYsB7N2DOxuf7iuqT+3BJv95ogawsKmzGvyo2MQQzieeHS0McX AVsjr2ZLLSxkfMOukgllpBYLU5+EQ/W50xQ4gRq4X/83rnnPE9XILcaPnOGePMYodq9d zyJiYRo4s3cqzOIebZOi7mPosja6zUEb6Y+wUtxmuHZGynjxXao3uOEHlthyRgKtzK3X DNnbLEL0MdHMBVQJITINkPSsaEJNHcSHja9j3wMigf0ukbXbxNrOPGUlwuHhfcXa+P5u yX2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Ciq8GU7iUi7LUUJHQ/Yglkc7R5BvBXgn5EFW6zsVjow=; fh=1515w+M96ZnCrUbP0tR57Gz7lg1h6DeQrunG1U5jWdE=; b=yH960KXoW2dM9BZgufglaeMoSwsu7pQ1YuoJLNf+q+z7oVZ/oyc8dPM9V7hChNoFPO ltvOnQViFLmB/nuvkilCkQn9u15mG7WvRoaF4UV7knCCz6H+fhdxdO/70UMDsayfRduz vk/779sYBRsST87YGgIWsnTNxyr5/sfrbOKQbg1kLbgkm8vBFYdlBGdFhTEqMhcrQp/s u8Py36ym2Sm47xZMEPqOF2oP/jhjJogg4+VegueQ36gbbweHjfCTrZK+/RNcMHDpG5+j r2GBQJE6gNzEisW/+okD2nK5+4QGlLK8h3sAsLaUxo6BPBKCg5klEZFzTN/FYon7rba/ hweQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DnuSQie5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id p15-20020a63fe0f000000b005c21fbab567si9428456pgh.659.2023.12.05.00.39.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 00:39:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DnuSQie5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D3D278040D44; Tue, 5 Dec 2023 00:39:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344825AbjLEIjU (ORCPT + 99 others); Tue, 5 Dec 2023 03:39:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbjLEIjT (ORCPT ); Tue, 5 Dec 2023 03:39:19 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15EEBFA; Tue, 5 Dec 2023 00:39:24 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-50be4f03b06so3085644e87.0; Tue, 05 Dec 2023 00:39:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701765562; x=1702370362; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Ciq8GU7iUi7LUUJHQ/Yglkc7R5BvBXgn5EFW6zsVjow=; b=DnuSQie5JcTnWPAfRBzmKWhltOs11rdUAIVFPZsujbN/WzvjesduNffixxgQY70Aci 6JZHlapKrYTkWuOGeE9TGIc02xTOairl31UYQ49NecCvEYaNadKXiUXA23G5qw70GC+E oLYHPGPwx845eGH0B/GGKcoqGHNcg5cwF8KVA8SKnYs+6sn4H9gumJme5wbSYKN34Mga l/K+U/Rqqreb89/qRqiea/JWQR4H4iZv7KJ0lt9CRoAsdWxZQAxj9OvDk5icbK88FnPh fBUiiLaK23UOFgQRhfHneHLJekFD5TnPguupIuRWP2/BrIdwxU8ZtXipBMDI1JQweb3U RlUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701765562; x=1702370362; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ciq8GU7iUi7LUUJHQ/Yglkc7R5BvBXgn5EFW6zsVjow=; b=mBRdrSNWz6k1r2DTRmH28hHylTb30T48pRYBG5tR85Qqr9YzAOQKvoOzmni/4qs4y0 X1rJE5OBblRWFVv32RwgCWkUjUYbNOvN7g7wHcfGOaFpqcEt/8M1PggDpI+jtppBlnsY o5Mllg/zWUFkjupflv/V1eOvV1dEgOlUVQAjGFE9lbr2M22eOGxUzeaEw7vlkhH54dtd SAAsq051n9Z7rcaAziUKWUndCBY+wqxbI1o+OosnvWYr1DMsLFmY7MnMSMDI0wqrpPjC JXxVsL3Fg7QFJXidTWYaBF/Itip81Lzew/ChF2/4h00k1EBWyd4klBkdZkpj4P/HcA84 QRng== X-Gm-Message-State: AOJu0YwHtcRbHREl3y/ElyAe5DleJDeuK+HqY7fs5NABMhZTCt4/dGaT HPJqM2xS7M3KbWawKP51xFo= X-Received: by 2002:a05:6512:1056:b0:50b:fc06:7a2b with SMTP id c22-20020a056512105600b0050bfc067a2bmr970356lfb.110.1701765562074; Tue, 05 Dec 2023 00:39:22 -0800 (PST) Received: from ?IPV6:2001:14ba:16f8:1500::2? (dc78bmyyyyyyyyyyyyyby-3.rev.dnainternet.fi. [2001:14ba:16f8:1500::2]) by smtp.gmail.com with ESMTPSA id p15-20020a05651238cf00b0050bf40dcb8bsm634947lft.114.2023.12.05.00.39.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Dec 2023 00:39:21 -0800 (PST) Message-ID: <644e095d-4c01-4e8d-8036-3c04ada405f2@gmail.com> Date: Tue, 5 Dec 2023 10:39:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/4] fortify: test: Use kunit_device Content-Language: en-US, en-GB To: davidgow@google.com, Rae Moar , Brendan Higgins , Greg Kroah-Hartman , Stephen Boyd , Shuah Khan , Jonathan Corbet , Kees Cook , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Maxime Ripard Cc: linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, linux-sound@vger.kernel.org References: <20231205-kunit_bus-v1-0-635036d3bc13@google.com> <20231205-kunit_bus-v1-2-635036d3bc13@google.com> From: Matti Vaittinen In-Reply-To: <20231205-kunit_bus-v1-2-635036d3bc13@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 05 Dec 2023 00:39:31 -0800 (PST) On 12/5/23 09:31, davidgow@google.com wrote: > Using struct root_device to create fake devices for tests is something > of a hack. The new struct kunit_device is meant for this purpose, so use > it instead. > > Signed-off-by: David Gow Reviewed-by: Matti Vaittinen -- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~