OSDN Git Service

marvell: octeontx2: build error: unknown type name 'u64'
authorAnders Roxell <anders.roxell@linaro.org>
Wed, 13 Oct 2021 13:57:43 +0000 (15:57 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Oct 2021 20:25:36 +0000 (13:25 -0700)
commit6312d52838b21f5c4a5afa1269a00df4364fd354
treeff7e67fa463036445a49df5dbf2286de109f8159
parent13b5ffa0e282f3d18e57735e37b8fed3a392872b
marvell: octeontx2: build error: unknown type name 'u64'

Building an allmodconfig kernel arm64 kernel, the following build error
shows up:

In file included from drivers/crypto/marvell/octeontx2/cn10k_cpt.c:4:
include/linux/soc/marvell/octeontx2/asm.h:38:15: error: unknown type name 'u64'
   38 | static inline u64 otx2_atomic64_fetch_add(u64 incr, u64 *ptr)
      |               ^~~

Include linux/types.h in asm.h so the compiler knows what the type
'u64' are.

Fixes: af3826db74d1 ("octeontx2-pf: Use hardware register for CQE count")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Link: https://lore.kernel.org/r/20211013135743.3826594-1-anders.roxell@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/soc/marvell/octeontx2/asm.h