mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [BUILD BUG v6.3-rc1] platform/x86/amd: error: implicit declaration of function ‘amd_pmc_write_stb’
@ 2023-03-10  3:44 Steven Rostedt
  2023-03-10  3:50 ` Steven Rostedt
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Rostedt @ 2023-03-10  3:44 UTC (permalink / raw)
  To: LKML; +Cc: Linus Torvalds, Hans de Goede, Shyam Sundar S K, platform-driver-x86

Someone on the linux-rt IRC channel complained of a build failure for
6.3-rc1-rt1, but investigating it further, the build failure exists in
6.3-rc1 vanilla.

With CONFIG_SUSPEND not defined I get:

drivers/platform/x86/amd/pmc.c: In function ‘amd_pmc_stb_debugfs_open_v2’:
drivers/platform/x86/amd/pmc.c:256:15: error: implicit declaration of function ‘amd_pmc_write_stb’; did you mean ‘amd_pmc_read_stb’? [-Werror=implicit-function-declaration]
  256 |         ret = amd_pmc_write_stb(dev, AMD_PMC_STB_DUMMY_PC);
      |               ^~~~~~~~~~~~~~~~~
      |               amd_pmc_read_stb


I see in that file:

#ifdef CONFIG_SUSPEND
static int amd_pmc_write_stb(struct amd_pmc_dev *dev, u32 data)
{
[...]
}
#endif

And that commit b0d4bb973539 ("platform/x86/amd: pmc: Write dummy postcode
into the STB DRAM") adds a call to amd_pmc_write_stb() right were that
error is, without any protection against CONFIG_SUSPEND.

Try it! Build AMD/pmc.c without CONFIG_SUSPEND to enjoy the same build
message as I received.

-- Steve

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-10  3:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-10  3:44 [BUILD BUG v6.3-rc1] platform/x86/amd: error: implicit declaration of function ‘amd_pmc_write_stb’ Steven Rostedt
2023-03-10  3:50 ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®