]> git.itanic.dy.fi Git - linux-stable/commit
mt76: mt7615: Fix build with older compilers
authorPablo Greco <pgreco@centosproject.org>
Sun, 1 Dec 2019 18:17:10 +0000 (15:17 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 11:44:09 +0000 (12:44 +0100)
commit68e4c390173e7dcb5195e3986b10cb22dc5ce512
treef92dc51f32d74dc028ea1ec3018b4fff0c879b1c
parentb558275c1b040f0e5aa56c862241f9212b6118c3
mt76: mt7615: Fix build with older compilers

commit f53300fdaa84dc02f96ab9446b5bac4d20016c43 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 bf92e7685100 ("mt76: mt7615: add support for per-chain
signal strength reporting")
Reported in https://lkml.org/lkml/2019/9/21/146

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Pablo Greco <pgreco@centosproject.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Cc: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mediatek/mt76/mt7615/mac.c