Message ID | 20230929152057.85047-1-marpagan@redhat.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp481898vqb; Sat, 30 Sep 2023 09:39:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE57yX8BQanYY4REkeJqZzaFLkiBlxtkyZgQV0vaM8Yr/gsZIak8d62qS/JZScj3xH6IChu X-Received: by 2002:a05:6a00:170a:b0:692:b539:28ff with SMTP id h10-20020a056a00170a00b00692b53928ffmr7013656pfc.24.1696091981825; Sat, 30 Sep 2023 09:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696091981; cv=none; d=google.com; s=arc-20160816; b=I7Vj8hf/36hLfgm7bkDWD+B/V6d44qqdoyI4PfakD3NaRszLON1BBGlEClNCQfD68f ijbotzp4pl3qb/7odpGFqa2VCVr/RP0Q6XFPCxLrns+qgnFODmQ9w0XyfPb7df2izIG7 PpuYSoxU7CGYQZ+uhfvpRULpokQ3akGIlehtaxUZnp5xLcnBBQo0ZJTXgPPbIfT4z37D D1cAjBOpnTtD3qScYh0/NM/oSXlpUGV0mQ9ILmYCnWnoQO1HVIYkgANpZGjaFZPDblu0 rWr7Exf6FVDtvKhV1aQVSxNHGdUwMMH4qT3aiiYgPY2MTbyIGrdvQ7UVkvjTDnQIMlTn /3MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2RjG0vxzlp2XNSTnbZsP+fW84/NpvbH3AB72ShSUKnA=; fh=vL6Moim7ujQ71QOBXYMaaPnG1N9WYgskJqrZSTruGY4=; b=0sqoqVGYWWmd0BJg4K8tK26z/34ilqCJWakJVyO8860oO9FB8s8nevysNDYAne5lq4 BI81DK0A3/LVMD5+2P/A10GkqkedN9+fWFX8G6SjSkCdb+simR0c4rjS7nruj4DcrBtl VWhxFwJZmeSKmYiCsJXwAJBof37KjJWBrI07EK1YrXB/b7JQwhlkiUEl8VJZ1ShFTORs A0hZDtpucvil2N3e9yxVouHmHXo0zoFskuKiF0TZLV8p9Dt/oGQxx69JcNK38HfXrWM+ 6KIefW+sznFDEmGC+/DTsyGo/O3n+TgIY37q8Q0G6cSvq+UHWt48/QVtLFlnaCpHUbSQ DCFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XoyyUVL1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id q13-20020a056a00084d00b00690d8c05582si25147432pfk.372.2023.09.30.09.39.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 09:39:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XoyyUVL1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B282D80A8579; Fri, 29 Sep 2023 08:22:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233562AbjI2PWF (ORCPT <rfc822;pwkd43@gmail.com> + 20 others); Fri, 29 Sep 2023 11:22:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233536AbjI2PWD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 29 Sep 2023 11:22:03 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7608EF7 for <linux-kernel@vger.kernel.org>; Fri, 29 Sep 2023 08:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696000872; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=2RjG0vxzlp2XNSTnbZsP+fW84/NpvbH3AB72ShSUKnA=; b=XoyyUVL1jD+jpqvOWJsTp9k6qXksjpXW+z/JlYcagTPNkIP++9Kdp/U52yHYsVOsO+bQks 4c1me3On5xRpkrl76/AgefhXfzqU6c8Z4s6+xUQQD4OO4L5WlX6j4QUoaicEKgiVbSwSuX klf/Skwg7mayg4RZ5zrgeCl+QjnLlOU= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-250-CV0KRmI4NfKrJ_gEKnNNuA-1; Fri, 29 Sep 2023 11:21:11 -0400 X-MC-Unique: CV0KRmI4NfKrJ_gEKnNNuA-1 Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-4194d8b6fceso107854661cf.1 for <linux-kernel@vger.kernel.org>; Fri, 29 Sep 2023 08:21:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696000871; x=1696605671; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2RjG0vxzlp2XNSTnbZsP+fW84/NpvbH3AB72ShSUKnA=; b=Ul05ineU3hYe2nRicOEMWTumZFxpPSVRw4bTnwcjjGdQzIgwPKCFrfGzNt9sKwEcT1 kC/uPwlsz8eIlGLmONVpCLEjP8mEvaf3iqhGVCpJx/wkB/TwbZ8xtYFpRAll5mTFHxZl 9d7dhYyGtMEM6iNMGd4PCJg17l3FEsEyY+BgBj5JB9b3ITIMZejkBffvK+YDA5ogHJ49 u4XG/OyKfSpHTmi25j9AsojDj0KgjZFpBkG9phkQDOu516f+E3ninmwJn0VwYzzMftRI DuWhjLaInZo706LLUQnychiPhGb0l0lPu8aSGBQ7+WD9iCmSFB/iCP+xyJnWJfLl8Ysw L95g== X-Gm-Message-State: AOJu0YwvMMLi/LG0p3xfz30YxINiPUq20opEF9K9baz4MBtZWiDjfOZL eCpH9+PF+97Ql3o7QZouS/LFJhk28KpIiNgdyPmK1o8RS2pRsldK1HMUIGHrOD2c0nne8Oveeuw hSWZI8jg7rOb/r8xSHsgvrYs= X-Received: by 2002:ac8:57c7:0:b0:419:53ce:3fa9 with SMTP id w7-20020ac857c7000000b0041953ce3fa9mr5832304qta.53.1696000870691; Fri, 29 Sep 2023 08:21:10 -0700 (PDT) X-Received: by 2002:ac8:57c7:0:b0:419:53ce:3fa9 with SMTP id w7-20020ac857c7000000b0041953ce3fa9mr5832288qta.53.1696000870476; Fri, 29 Sep 2023 08:21:10 -0700 (PDT) Received: from klayman.redhat.com (net-2-34-30-58.cust.vodafonedsl.it. [2.34.30.58]) by smtp.gmail.com with ESMTPSA id bq14-20020a05622a1c0e00b00419801b1094sm287053qtb.13.2023.09.29.08.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 08:21:10 -0700 (PDT) From: Marco Pagani <marpagan@redhat.com> To: Moritz Fischer <mdf@kernel.org>, Wu Hao <hao.wu@intel.com>, Xu Yilun <yilun.xu@intel.com>, Tom Rix <trix@redhat.com> Cc: Marco Pagani <marpagan@redhat.com>, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org Subject: [PATCH v2 0/4] fpga: add platform drivers to the FPGA KUnit test suites Date: Fri, 29 Sep 2023 17:20:53 +0200 Message-ID: <20230929152057.85047-1-marpagan@redhat.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 29 Sep 2023 08:22:11 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778481345931608449 X-GMAIL-MSGID: 1778481345931608449 |
Series |
fpga: add platform drivers to the FPGA KUnit test suites
|
|
Message
Marco Pagani
Sept. 29, 2023, 3:20 p.m. UTC
Add and register minimal platform drivers associated with parent platform devices used for testing to prevent a null-ptr-deref when try_module_get() is called. v2: - Renamed include guard symbol in fpga-test-helpers.h Marco Pagani (4): fpga: add helpers for the FPGA KUnit test suites. fpga: add a platform driver to the FPGA Manager test suite fpga: add a platform driver to the FPGA Bridge test suite fpga: add a platform driver to the FPGA Region test suite drivers/fpga/tests/fpga-bridge-test.c | 18 +++++++++++++++- drivers/fpga/tests/fpga-mgr-test.c | 18 +++++++++++++++- drivers/fpga/tests/fpga-region-test.c | 26 ++++++++++++++++++----- drivers/fpga/tests/fpga-test-helpers.h | 29 ++++++++++++++++++++++++++ 4 files changed, 84 insertions(+), 7 deletions(-) create mode 100644 drivers/fpga/tests/fpga-test-helpers.h base-commit: 6465e260f48790807eef06b583b38ca9789b6072
Comments
On Fri, Sep 29, 2023 at 05:20:53PM +0200, Marco Pagani wrote: > Add and register minimal platform drivers associated with parent > platform devices used for testing to prevent a null-ptr-deref when > try_module_get() is called. > > v2: > - Renamed include guard symbol in fpga-test-helpers.h > > Marco Pagani (4): > fpga: add helpers for the FPGA KUnit test suites. > fpga: add a platform driver to the FPGA Manager test suite I added the Closes tag and applied the series. Thanks, Yilun > fpga: add a platform driver to the FPGA Bridge test suite > fpga: add a platform driver to the FPGA Region test suite > > drivers/fpga/tests/fpga-bridge-test.c | 18 +++++++++++++++- > drivers/fpga/tests/fpga-mgr-test.c | 18 +++++++++++++++- > drivers/fpga/tests/fpga-region-test.c | 26 ++++++++++++++++++----- > drivers/fpga/tests/fpga-test-helpers.h | 29 ++++++++++++++++++++++++++ > 4 files changed, 84 insertions(+), 7 deletions(-) > create mode 100644 drivers/fpga/tests/fpga-test-helpers.h > > > base-commit: 6465e260f48790807eef06b583b38ca9789b6072 > -- > 2.41.0 >