Skip to contentSkip to conversation

Enable -Wcast-function-type for 5.17-rc1

GIT PULL Merged Gustavo A. R. Silva 3 participants 4 messages Jan 11, 2022 – Jan 12, 2022

lore
Share & tools
lore
#0 lore raw

The following changes since commit fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf:

Linux 5.16-rc1 (2021-11-14 13:56:52 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git tags/Wcast-function-type-5.17-rc1

for you to fetch changes up to 552a23a0e5d0a84cecd4687043d8030673981d30:

Makefile: Enable -Wcast-function-type (2021-11-15 13:45:12 -0600)

----------------------------------------------------------------
Enable -Wcast-function-type

Hi Linus,

Please, pull the following patch that globally enables -Wcast-function-type.

We need to make sure new function cast mismatches are not introduced in the kernel in order to avoid tripping CFI checking.

Thanks!
--
Gustavo

----------------------------------------------------------------
Gustavo A. R. Silva (1):
Makefile: Enable -Wcast-function-type

 Makefile | 5 +++++
 1 file changed, 5 insertions(+)
#1 lore raw
Quoted 3 lines · Gustavo A. R. Silva

Please, pull the following patch that globally enables -Wcast-function-type.

This seems to have been in linux-next, so hopefully that means that all cases that used to warn are actually fixed and there are no ugly surprises waiting..

Linus

#2 lore raw
Quoted 9 lines · Linus Torvalds
Quoted 3 lines · Gustavo A. R. Silva

Please, pull the following patch that globally enables -Wcast-function-type.

This seems to have been in linux-next, so hopefully that means that all cases that used to warn are actually fixed and there are no ugly surprises waiting..

Yep; this has been in linux-next for a whole development cycle. The cases that showed up during that time were alredy fixed.

In case any other issue shows up I'll address it ASAP.

Thanks
--
Gustavo

merge bot Merged
#3 lore raw
In reply to Gustavo A. R. Silva
The pull request you sent on Tue, 11 Jan 2022 13:38:55 -0600:

The pull request you sent on Tue, 11 Jan 2022 13:38:55 -0600:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git tags/Wcast-function-type-5.17-rc1

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/01367e86e90948b1ae8f66b2c23aadd7e8374e34

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html