Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2012832rdh; Tue, 26 Sep 2023 09:40:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGTf1ea5YzlxSnp0nMcpj0sJkTCIZ1NV+Hqtv8aDUUJSYpDcIMo22N/+LWgl3zbbU0NXxxq X-Received: by 2002:a05:6358:4198:b0:143:8d26:ec91 with SMTP id w24-20020a056358419800b001438d26ec91mr12051010rwc.11.1695746429507; Tue, 26 Sep 2023 09:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695746429; cv=none; d=google.com; s=arc-20160816; b=DHwcWfCkQEOGf7TVEViYF8H5xJKkpIygkqZIXWPIEI1GSCh9PG7e3xNBN7ofaV1EOT Z6ulVLbCliApybtXh8oEbBmpATo35hO1UF7te4u9KSl1omoJAaQTFVcz2YvZGAkr3PJJ BJEPK6jZWxHL1NxuZVKmlsns+T3YGD0NIG0zC6H7W4XvxfVuWcGHmpoBlMCUExWc8NMy FuvXpBfOM7gK5P6uVWluuA1Yf4uTyfYGZx+Ir0zhQv20+NkJucoydty7MimuNziX2/qC JAk80NItCjhQf0FYB9E2BMZBENIkzVDnfJxd2xHk6UDdAsEHq5HgwoKuXcnobzKKSmT/ JUrg== 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=837Kme305+Qcb4evSQsWQExwLiy1HV1fTxRz6UFoLMg=; fh=vL6Moim7ujQ71QOBXYMaaPnG1N9WYgskJqrZSTruGY4=; b=FoDlRFOjNassfOL/+X97opBB/gZUxs2tLNtj25/OuuQTtjmR5yfhjX5kP9xO6D5Gd9 9WsSeq/HoAsjBgaFgnXKKieknHPZlz/qIRFZXiopfN5sSlnhpd2uNh15htagoZW95Rys hHh6uu0fktl0HQvJsc7+WWiGqtp8YEbyEtbC5XX7jFdUYGTJKz5D2TCYmKp79okTeR4W wRl2m7ufph1OAVzvs68f/yRE+Hbc8orBgfh5HoiH6h4XHZ+gkB6h/egxxNzc6wS6E8Ci 9GBoSgJ+OaJPlwl5qFRORjYJ+RvTXJKtBsQyKlZOZSzgu0J5Kny9gyIcReZZrgiU9Vyp LqXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DoFVRQsL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id k189-20020a6384c6000000b00578a66b5267si12863507pgd.727.2023.09.26.09.40.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 09:40:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DoFVRQsL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id A61A181CE855; Tue, 26 Sep 2023 09:40:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235335AbjIZQkF (ORCPT + 99 others); Tue, 26 Sep 2023 12:40:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235322AbjIZQkC (ORCPT ); Tue, 26 Sep 2023 12:40:02 -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 310CC10A for ; Tue, 26 Sep 2023 09:39:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695746359; 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=837Kme305+Qcb4evSQsWQExwLiy1HV1fTxRz6UFoLMg=; b=DoFVRQsL/NRtztb58guy782YuN1GOcItPbLPZ6apYxg6O+yzx/WpKNdm5LbYWFqTBqLYPS IqadRfJpEALBvSrqgP5jOgh6vt2E09iAKyHpp63FTDxrxrxW5Y5Aojvfyx7FXkaoIJTx5v vP1VzYzL8UAQeTCSBPjwwf7u2n/Qokc= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-16-ECfGvOjaNdSkK23clOqkuA-1; Tue, 26 Sep 2023 12:39:17 -0400 X-MC-Unique: ECfGvOjaNdSkK23clOqkuA-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-405917470e8so46201255e9.1 for ; Tue, 26 Sep 2023 09:39:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695746356; x=1696351156; 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=837Kme305+Qcb4evSQsWQExwLiy1HV1fTxRz6UFoLMg=; b=feXyGRUXJ81BKKG1MUiBC/VPQO3tzL1fvVCVn3UPKKIh6/MIz98rfMw/rzmaInUsW7 Keq/hXc9aXy6j4nmZUqlNh9L8mcBYR5S8ZNtqR97PY9G8jO1aqK6Ipof3Rkm4FauH2Cz 7W8OZJ3+JeAwJX+PEzFOSzy+UOw9Or8pBLu2j6hPVJ9PWsfA+dLjxyKVk9L2hhQyKFJM Fqcxi8IKzcNQbXgeLvWd/VZKO87BrNRtKPzInkOFxSDLLaK2nIAxumeCdy2jeVt6WJ2U DxdW0JlL61tjLU1j2PF7p0tOKNc8dQ4R6a7rn19uC0r8GJtzJ/keOGP1y0IadiH0+kPq tupQ== X-Gm-Message-State: AOJu0Ywn4RNJWgSlNBTe3qBc/lYP+7gEWRSL3sqR4a15AdPbzbZJG6rr cKz8mi/w5uL0GpMDtBr0NK2XnG1LmKHlnzG2LvmwI0GwF+1A67lvQT9m48s3a48Ged5BDOr1Y2S ZtdeBiEvFxWRjnWQHNieKjFI= X-Received: by 2002:a05:600c:3658:b0:405:359e:ee43 with SMTP id y24-20020a05600c365800b00405359eee43mr8949387wmq.1.1695746356070; Tue, 26 Sep 2023 09:39:16 -0700 (PDT) X-Received: by 2002:a05:600c:3658:b0:405:359e:ee43 with SMTP id y24-20020a05600c365800b00405359eee43mr8949366wmq.1.1695746355754; Tue, 26 Sep 2023 09:39:15 -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 w10-20020adfde8a000000b0031fba0a746bsm15171803wrl.9.2023.09.26.09.39.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 09:39:15 -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 0/4] fpga: add platform drivers to the FPGA KUnit test suites Date: Tue, 26 Sep 2023 18:39:07 +0200 Message-ID: <20230926163911.66114-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=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Tue, 26 Sep 2023 09:40: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. 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