Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp217240rdb; Sat, 30 Sep 2023 01:27:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG4sW94KNSqaCOYC2kd7inc6hz+OeDRD1fNaeKQzR5tm0nOWiBVl9t3STI3Ik/9fBW/fGnb X-Received: by 2002:a05:6a00:1a48:b0:690:3b59:cc7a with SMTP id h8-20020a056a001a4800b006903b59cc7amr7317898pfv.23.1696062446820; Sat, 30 Sep 2023 01:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696062446; cv=none; d=google.com; s=arc-20160816; b=V/kmYMvmbHj9h9stluX72tuEUQmUXzn0uA59JjAvnTCSMBpx+7tEB32/RgwRBz1P7c NJ08hlbsN+LkGEpdfPKUJufabD4bOQajRBOxCjIjsF73tEDIg/azN7qjdaOXwlK7nscb NCm0mOpmBqmMuuKu/I1H5+f0YyKk0dQfXm8e144S6BOZjMfX/mF0s5+1d6mbXxHyZigO 2TTCN8VF2eNujBvxqt14Tgx20kLyp7teKORxk6LhQeAn1uinCInNHzia1GwMcTVcy0KS QPWLvOoAwBdvwEXcbH1KDL71zrxZ0M8ue3xVxaXbPWQQnf18b4ndNK+NHv1SB8yYZoeY CFDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+job+tDF91LZ2HTCTVIFKEzy7z1MqL/nOH7uvllfz4o=; fh=YvtWbebQsRPEZSBu58ultTGSE5TJDPWtYq0nb3wR0H8=; b=K44ienshaXgi/RLQBKHL5B7l7LIJFqQvbpLDZ3J6F9D+73xWOfJbbv6wa7h9JPMaZc uEe23492WaRAvRx6IHoej5+ZbaJVk25NwUXhtLZ9rap4wJNbwQxuREtnPhWdrHAcvQAJ hkwu2+gKVIKzIV6U0u7XeIcSF+yDkCa44x92q6SzynJPbTZD3siKM+RsAWX8d1rul3FD hD6CNFeodut3FFCirrkS9CeXi45Jws8QS/JBltcebRMPw1tAqXa4Uchcr9M1pls4tbGg dpGzad1y8jT42n7DMlFxSD6nrEzKSB8zHIkR3x+M2x/HCrpefK2EM3XrT9b4Rc4f85FH 9cWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iHGXLIic; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ca37-20020a056a0206a500b00578a43e3b0bsi26697970pgb.655.2023.09.30.01.27.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 01:27:26 -0700 (PDT) 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=@intel.com header.s=Intel header.b=iHGXLIic; 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=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id DA59C81D2D57; Thu, 28 Sep 2023 09:03:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231875AbjI1QD0 (ORCPT + 99 others); Thu, 28 Sep 2023 12:03:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230274AbjI1QDZ (ORCPT ); Thu, 28 Sep 2023 12:03:25 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73F40D6; Thu, 28 Sep 2023 09:03:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695917004; x=1727453004; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=2WJ2JHUZMGgvXYHvfCZXwdKMPR5M8xkDsvfLanYSBWw=; b=iHGXLIic3ZYAiRcya92TSOTrrxI3muWNJzpiDhR3aj+CeYt6j1AWhqXT JlOpnevWAOkDq8ICCcWal+3OqB02+sRqlGb9Q97lv2gnIXkdR0aNaXxMy BtKesaZO5EwycwxE7XiE4vTjk3hfKZG73YBVPcUiOWkxQ8FmQOQKwXLs4 cB8YA/9xqGwFiaplN0zzo8alJymL/lkemhbiOLfz5HM4uzyydpO8zbv1r s532ooi1uXiCDw1LEFHBJ582SzG+yYiLDsXRD+jQV1oqA/Y0dgDAGJNp5 HzAQEjKCQCEjosmM9JTbtmYPcD1kgSRK5GLKaBBf8Bg2UkyZHZX8VkY6D A==; X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="382008973" X-IronPort-AV: E=Sophos;i="6.03,184,1694761200"; d="scan'208";a="382008973" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2023 09:02:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="699329280" X-IronPort-AV: E=Sophos;i="6.03,184,1694761200"; d="scan'208";a="699329280" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by orsmga003.jf.intel.com with ESMTP; 28 Sep 2023 09:02:03 -0700 Date: Fri, 29 Sep 2023 00:01:26 +0800 From: Xu Yilun To: Marco Pagani Cc: Moritz Fischer , Wu Hao , Tom Rix , linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org Subject: Re: [PATCH 1/4] fpga: add helpers for the FPGA KUnit test suites. Message-ID: References: <20230926163911.66114-1-marpagan@redhat.com> <20230926163911.66114-2-marpagan@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230926163911.66114-2-marpagan@redhat.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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]); Thu, 28 Sep 2023 09:03:30 -0700 (PDT) On 2023-09-26 at 18:39:08 +0200, Marco Pagani wrote: > Add helpers to facilitate the registration of minimal platform drivers > to support the parent platform devices used for testing. > > Signed-off-by: Marco Pagani > --- > drivers/fpga/tests/fpga-test-helpers.h | 29 ++++++++++++++++++++++++++ > 1 file changed, 29 insertions(+) > create mode 100644 drivers/fpga/tests/fpga-test-helpers.h > > diff --git a/drivers/fpga/tests/fpga-test-helpers.h b/drivers/fpga/tests/fpga-test-helpers.h > new file mode 100644 > index 000000000000..fcad3249be68 > --- /dev/null > +++ b/drivers/fpga/tests/fpga-test-helpers.h > @@ -0,0 +1,29 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * KUnit test for the FPGA Manager > + * > + * Copyright (C) 2023 Red Hat, Inc. > + * > + * Author: Marco Pagani > + */ > + > +#ifndef FPGA_KUNIT_HELPERS_ > +#define FPGA_KUNIT_HELPERS_ How about _FPGA_KUNIT_HELPERS_H Others LGTM for this series. Thanks, Yilun > + > +#define TEST_PDEV_NAME "fpga-test-pdev" > + > +#define TEST_PLATFORM_DRIVER(__drv_name) \ > + __TEST_PLATFORM_DRIVER(__drv_name, TEST_PDEV_NAME) > +/* > + * Helper macro for defining a minimal platform driver that can > + * be registered to support the parent platform devices used for > + * testing. > + */ > +#define __TEST_PLATFORM_DRIVER(__drv_name, __dev_name) \ > +static struct platform_driver __drv_name = { \ > + .driver = { \ > + .name = __dev_name, \ > + }, \ > +} > + > +#endif /* FPGA_KUNIT_HELPERS_ */ > -- > 2.41.0 >