]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: stratix10-svc: build only on 64-bit ARM
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Sun, 21 Mar 2021 18:46:50 +0000 (19:46 +0100)
committerDinh Nguyen <dinguyen@kernel.org>
Sun, 4 Apr 2021 12:41:43 +0000 (07:41 -0500)
commit776e9da9bb6ac69e5318f78a11bf4ac56d9f9114
treeba52a6a6920c07c22844f0bfa460866019c3b3f4
parent1219c8bcad595387384d1e4557ff9c8e3a60af6e
firmware: stratix10-svc: build only on 64-bit ARM

The Stratix10 service layer and RCU drivers are useful only on
Stratix10, so on ARMv8.  Compile testing the RCU driver on 32-bit ARM
fails:

  drivers/firmware/stratix10-rsu.c: In function 'rsu_status_callback':
  include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_179'
    declared with attribute error: FIELD_GET: type of reg too small for mask
    _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
  ...
  drivers/firmware/stratix10-rsu.c:96:26: note: in expansion of macro 'FIELD_GET'
    priv->status.version = FIELD_GET(RSU_VERSION_MASK,

Fixes: 1219c8bcad59 ("ARM: socfpga: drop ARCH_SOCFPGA")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Richard Gong <richard.gong@linux.intel.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
---
v2: add Fixes tag
drivers/firmware/Kconfig