Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp161927rdb; Fri, 29 Sep 2023 22:35:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFcOXAP4VrloG0AmQgtt7Tjbs3AZRdK/zsRwfUUwA+m/cA9LapkcUfLuSOnSVTJhAgrV14h X-Received: by 2002:a05:6a20:4425:b0:14d:5580:8ff0 with SMTP id ce37-20020a056a20442500b0014d55808ff0mr7683696pzb.25.1696052157680; Fri, 29 Sep 2023 22:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696052157; cv=none; d=google.com; s=arc-20160816; b=jwEu8YKfB/T0oRBQULp+ivdmX0gHO7yfVEXKo2eHWQQAFK79RnRK2hjJ97HfpCsF9g WPg1hALrK5EbBJu/Ot35hKIJ3bhlgbZhLlLo7rKqPZVhCl4U2ehCCSosvAqtLfgnd/Kd +sOr4+vxFM05mchizCZpSyhDePK1sgpIXKjxWhNuwW0uCC2c/rEnm29cGrzGH5Wyf0dV g70GckBgxtlI4hkofcnb04AH1J1umUGtHOuESegoul+3gahaWpgrC5zG4HVog2DRzXpl +Zlcj3Hmzp/ZpCmpJpM5dw+gR2KqVB3xjfbTnp+ieFSHmPZ3Q4nyEnYqeqH72srrD9IC 6emw== 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 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id b14-20020a170902d50e00b001c432da203asi9184659plg.270.2023.09.29.22.35.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 22:35:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; 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 2620:137:e000::3:4 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 56D6C809927D; Fri, 29 Sep 2023 08:22:08 -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 S233552AbjI2PWF (ORCPT + 99 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 ); 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 ; 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 ; 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 To: Moritz Fischer , Wu Hao , Xu Yilun , Tom Rix Cc: Marco Pagani , 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: 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:08 -0700 (PDT) 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 -- 2.41.0