Skip to content
Commit 68e4c390 authored by Pablo Greco's avatar Pablo Greco Committed by Greg Kroah-Hartman
Browse files

mt76: mt7615: Fix build with older compilers

commit f53300fd upstream.

Some compilers (tested with 4.8.5 from CentOS 7) fail properly process
FIELD_GET inside an inline function, which ends up in a BUILD_BUG_ON.
Convert inline function to a macro.

Fixes commit bf92e768 ("mt76: mt7615: add support for per-chain
signal strength reporting")
Reported in https://lkml.org/lkml/2019/9/21/146



Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarPablo Greco <pgreco@centosproject.org>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
Cc: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b558275c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment