Merge tag 'kbuild-fixes-7.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux

Pull Kbuild fixes from Nathan Chancellor:

 - Move GCC 17's implementation of -Wconstant-logical-operand to W=2
   to fix builds with -Werror

 - Disable LLVM's flow-based profile inference algorithm (Profi) for
   AutoFDO, which can degrade runtime performance and cause pathological
   compilation time issues

* tag 'kbuild-fixes-7.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux:
  kbuild: AutoFDO: Disable Profi (-fno-sample-profile-use-profi)
  kbuild: move gcc's -Wconstant-logical-operand to W=2