Re: [PATCH] of: unittest: Fix of_unittest_pci_node() kconfig dependencies

From: Randy Dunlap
Date: Fri Aug 25 2023 - 14:56:08 EST




On 8/24/23 15:17, Rob Herring wrote:
> of_unittest_pci_node test depends on both CONFIG_PCI_DYNAMIC_OF_NODES
> and CONFIG_OF_OVERLAY. Move the test into the existing
> CONFIG_OF_OVERLAY ifdef and rework the CONFIG_PCI_DYNAMIC_OF_NODES
> dependency to use IS_ENABLED() instead. This reduces the combinations to
> build.
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202308241954.oRNfVqmB-lkp@xxxxxxxxx/
> Fixes: 26409dd04589 ("of: unittest: Add pci_dt_testdrv pci driver")
> Cc: Lizhi Hou <lizhi.hou@xxxxxxx>
> Signed-off-by: Rob Herring <robh@xxxxxxxxxx>


Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Tested-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>

Thanks.

> ---
> drivers/of/unittest.c | 16 +++++++---------
> 1 file changed, 7 insertions(+), 9 deletions(-)
>

--
~Randy