]> git.baikalelectronics.ru Git - kernel.git/commit
x86/cpu: Include the header of init_ia32_feat_ctl()'s prototype
authorLuciano Leão <lucianorsleao@gmail.com>
Thu, 22 Sep 2022 20:00:54 +0000 (17:00 -0300)
committerBorislav Petkov <bp@suse.de>
Mon, 26 Sep 2022 15:06:27 +0000 (17:06 +0200)
commitf76facafd56a80ec0731d8bdc6f4dd5f7f137d06
treea64e6dea7c83ad1e15c5a932489002f8fa76dddd
parentd4509a25c2d4b2cd3e55b25e0acfab56ab9f6d35
x86/cpu: Include the header of init_ia32_feat_ctl()'s prototype

Include the header containing the prototype of init_ia32_feat_ctl(),
solving the following warning:

  $ make W=1 arch/x86/kernel/cpu/feat_ctl.o
  arch/x86/kernel/cpu/feat_ctl.c:112:6: warning: no previous prototype for ‘init_ia32_feat_ctl’ [-Wmissing-prototypes]
    112 | void init_ia32_feat_ctl(struct cpuinfo_x86 *c)

This warning appeared after commit

  8bfb2b544c168 ("x86/cpu: Reinitialize IA32_FEAT_CTL MSR on BSP during wakeup")

had moved the function init_ia32_feat_ctl()'s prototype from
arch/x86/kernel/cpu/cpu.h to arch/x86/include/asm/cpu.h.

Note that, before the commit mentioned above, the header include "cpu.h"
(arch/x86/kernel/cpu/cpu.h) was added by commit

  95b82de1729aa ("x86/cpu: Fix a -Wmissing-prototypes warning for init_ia32_feat_ctl()")

solely to fix init_ia32_feat_ctl()'s missing prototype. So, the header
include "cpu.h" is no longer necessary.

  [ bp: Massage commit message. ]

Fixes: 8bfb2b544c168 ("x86/cpu: Reinitialize IA32_FEAT_CTL MSR on BSP during wakeup")
Signed-off-by: Luciano Leão <lucianorsleao@gmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Nícolas F. R. A. Prado <n@nfraprado.net>
Link: https://lore.kernel.org/r/20220922200053.1357470-1-lucianorsleao@gmail.com
arch/x86/kernel/cpu/feat_ctl.c