Skip to contentSkip to conversation

rmk build: 54 warnings 0 failures (rmk/v5.8-rc3-11-g48b8eed3a337d)

DISCUSSION Russell King - ARM Linux admin 2 participants 2 messages Jul 21, 2020 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

A build of my tree by Olof's autobuilder revealed a problem concerning a couple of platforms - this is based on v5.8-rc3:

Quoted 6 lines · Olof's autobuilder

arm.mps2_defconfig:
net/sunrpc/svcsock.c:226:5: warning: "ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE" is not defined, evaluates to 0 [-Wundef]

arm.xcep_defconfig:
net/sunrpc/svcsock.c:226:5: warning: "ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE" is not defined, evaluates to 0 [-Wundef] net/sunrpc/svcsock.c:226:5: warning: "ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE" is not defined, evaluates to 0 [-Wundef]

The issue is that as the #if concerned is used to determine whether code that calls flush_dcache_page() (and therefore ensures data integrity) is omitted - and in the above cases it will be omitted.

On ARM, we define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE to 1 in asm/cacheflush.h, but for some reason, it seems that net/sunrpc/svcsock.c is not seeing that.

Maybe net/sunrpc/svcsock.c needs to include asm/cacheflush.h to ensure it picks up the definition of this preprocessor symbol?

It looks like this was introduced by:

commit ca07eda33e01eafa7a26ec06974f7eacee6a89c8

Author: Chuck Lever <[email protected]>
Date:   Wed May 20 17:30:12 2020 -0400

SUNRPC: Refactor svc_recvfrom()

Thanks.

Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
#2 lore raw

Hi Russell-

Quoted 26 lines · Russell King - ARM Linux admin

A build of my tree by Olof's autobuilder revealed a problem concerning a couple of platforms - this is based on v5.8-rc3:

Quoted 6 lines · Olof's autobuilder

arm.mps2_defconfig:
net/sunrpc/svcsock.c:226:5: warning: "ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE" is not defined, evaluates to 0 [-Wundef]

arm.xcep_defconfig:
net/sunrpc/svcsock.c:226:5: warning: "ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE" is not defined, evaluates to 0 [-Wundef] net/sunrpc/svcsock.c:226:5: warning: "ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE" is not defined, evaluates to 0 [-Wundef]

The issue is that as the #if concerned is used to determine whether code that calls flush_dcache_page() (and therefore ensures data integrity) is omitted - and in the above cases it will be omitted.

On ARM, we define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE to 1 in asm/cacheflush.h, but for some reason, it seems that net/sunrpc/svcsock.c is not seeing that.

Maybe net/sunrpc/svcsock.c needs to include asm/cacheflush.h to ensure it picks up the definition of this preprocessor symbol?

It looks like this was introduced by:

Quoted 7 lines

commit ca07eda33e01eafa7a26ec06974f7eacee6a89c8

Author: Chuck Lever <[email protected]>
Date:   Wed May 20 17:30:12 2020 -0400

SUNRPC: Refactor svc_recvfrom()

Thanks.

This should be addressed by

becd2014923f ("SUNRPC: Add missing definition of ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE")

which was merged in v5.8-rc4.

--
Chuck Lever