There's no architecture specific requirement for it to compile. Allows
the bots to test compilation properly.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
drivers/net/dsa/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/dsa/Kconfig b/drivers/net/dsa/Kconfig
index bb9812b3b0e8..f872236d5af4 100644
--- a/drivers/net/dsa/Kconfig
+++ b/drivers/net/dsa/Kconfig
@@ -92,7 +92,7 @@ source "drivers/net/dsa/realtek/Kconfig"
config NET_DSA_RZN1_A5PSW
tristate "Renesas RZ/N1 A5PSW Ethernet switch support"
- depends on OF && ARCH_RZN1
+ depends on OF && ARCH_RZN1 || COMPILE_TEST
select NET_DSA_TAG_RZN1_A5PSW
select PCS_RZN1_MIIC
help
--
2.50.0
Hi Rosen, kernel test robot noticed the following build warnings: [auto build test WARNING on net/main] [also build test WARNING on net-next/main linus/master horms-ipvs/master v6.16-rc5 next-20250704] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Rosen-Penev/net-dsa-rzn1_a5psw-add-COMPILE_TEST/20250707-130922 base: net/main patch link: https://lore.kernel.org/r/20250707003918.21607-2-rosenp%40gmail.com patch subject: [PATCH 1/2] net: dsa: rzn1_a5psw: add COMPILE_TEST config: alpha-kismet-CONFIG_PCS_RZN1_MIIC-CONFIG_NET_DSA_RZN1_A5PSW-0-0 (https://download.01.org/0day-ci/archive/20250708/202507080426.3RX5BOHi-lkp@intel.com/config) reproduce: (https://download.01.org/0day-ci/archive/20250708/202507080426.3RX5BOHi-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202507080426.3RX5BOHi-lkp@intel.com/ kismet warnings: (new ones prefixed by >>) >> kismet: WARNING: unmet direct dependencies detected for PCS_RZN1_MIIC when selected by NET_DSA_RZN1_A5PSW WARNING: unmet direct dependencies detected for PCS_RZN1_MIIC Depends on [n]: NETDEVICES [=y] && OF [=n] && (ARCH_RZN1 [=n] || COMPILE_TEST [=y]) Selected by [y]: - NET_DSA_RZN1_A5PSW [=y] && NETDEVICES [=y] && NET_DSA [=y] && (OF [=n] && ARCH_RZN1 [=n] || COMPILE_TEST [=y]) -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
On Mon, Jul 7, 2025 at 1:25 PM kernel test robot <lkp@intel.com> wrote: > > Hi Rosen, > > kernel test robot noticed the following build warnings: > > [auto build test WARNING on net/main] > [also build test WARNING on net-next/main linus/master horms-ipvs/master v6.16-rc5 next-20250704] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > url: https://github.com/intel-lab-lkp/linux/commits/Rosen-Penev/net-dsa-rzn1_a5psw-add-COMPILE_TEST/20250707-130922 > base: net/main > patch link: https://lore.kernel.org/r/20250707003918.21607-2-rosenp%40gmail.com > patch subject: [PATCH 1/2] net: dsa: rzn1_a5psw: add COMPILE_TEST > config: alpha-kismet-CONFIG_PCS_RZN1_MIIC-CONFIG_NET_DSA_RZN1_A5PSW-0-0 (https://download.01.org/0day-ci/archive/20250708/202507080426.3RX5BOHi-lkp@intel.com/config) > reproduce: (https://download.01.org/0day-ci/archive/20250708/202507080426.3RX5BOHi-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot <lkp@intel.com> > | Closes: https://lore.kernel.org/oe-kbuild-all/202507080426.3RX5BOHi-lkp@intel.com/ > > kismet warnings: (new ones prefixed by >>) > >> kismet: WARNING: unmet direct dependencies detected for PCS_RZN1_MIIC when selected by NET_DSA_RZN1_A5PSW > WARNING: unmet direct dependencies detected for PCS_RZN1_MIIC > Depends on [n]: NETDEVICES [=y] && OF [=n] && (ARCH_RZN1 [=n] || COMPILE_TEST [=y]) > Selected by [y]: > - NET_DSA_RZN1_A5PSW [=y] && NETDEVICES [=y] && NET_DSA [=y] && (OF [=n] && ARCH_RZN1 [=n] || COMPILE_TEST [=y]) so it's probably better to do depends on OF && (ARCH_RZN1 || COMPILE_TEST) to match the pcs driver. not sure it would fix this error though... > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki
On Mon, Jul 07, 2025 at 01:47:49PM -0700, Rosen Penev wrote: > so it's probably better to do > depends on OF && (ARCH_RZN1 || COMPILE_TEST) > to match the pcs driver. > > not sure it would fix this error though... Yes, you can't select something which has "depends on", unless you ensure that all its dependencies are satisfied. If Kbuild has the same operator precedence as C, then "&&" has higher precedence than "||", and "OF && ARCH_RZN1 || COMPILE_TEST" actually evaluates to a different expression than "OF && (ARCH_RZN1 || COMPILE_TEST)". The former can be true when OF=n, while the latter can't. Thus, OF=n is an unsatisfied dependency for the PCS driver.
On Sun, Jul 06, 2025 at 05:39:17PM -0700, Rosen Penev wrote: > There's no architecture specific requirement for it to compile. Allows > the bots to test compilation properly. > > Signed-off-by: Rosen Penev <rosenp@gmail.com>
On Mon, Jul 07, 2025 at 07:55:21AM +0200, Andrew Lunn wrote: > On Sun, Jul 06, 2025 at 05:39:17PM -0700, Rosen Penev wrote: > > There's no architecture specific requirement for it to compile. Allows > > the bots to test compilation properly. > > > > Signed-off-by: Rosen Penev <rosenp@gmail.com> Lets try that again... Reviewed-by: Andrew Lunn <andrew@lunn.ch> Andrew
© 2016 - 2025 Red Hat, Inc.