[PATCH v2 0/4] fpga: add platform drivers to the FPGA KUnit test suites

Marco Pagani posted 4 patches 2 years, 4 months ago
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
[PATCH v2 0/4] fpga: add platform drivers to the FPGA KUnit test suites
Posted by Marco Pagani 2 years, 4 months ago
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
Re: [PATCH v2 0/4] fpga: add platform drivers to the FPGA KUnit test suites
Posted by Xu Yilun 2 years, 4 months ago
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
>