linux-next: build warning after merge of the amdgpu tree

From: Stephen Rothwell
Date: Fri Mar 13 2020 - 05:57:53 EST


Hi all,

After merging the amdgpu tree, today's linux-next build (powerpc
allyesconfig) produced this warning:

In file included from include/linux/compiler_types.h:59,
from <command-line>:
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/smu7_hwmgr.c: In function 'smu7_request_link_speed_change_before_state_change':
include/linux/compiler_attributes.h:200:41: warning: statement will never be executed [-Wswitch-unreachable]
200 | # define fallthrough __attribute__((__fallthrough__))
| ^~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/smu7_hwmgr.c:3706:4: note: in expansion of macro 'fallthrough'
3706 | fallthrough;
| ^~~~~~~~~~~

Introduced by commit

e86efa063cd1 ("AMD POWERPLAY: Use fallthrough;")

--
Cheers,
Stephen Rothwell

Attachment: pgpfA06wlI9gB.pgp
Description: OpenPGP digital signature