RE: how to fix section mismatch warning after inserting #pragma GCC optimize ?

2022-01-23 Thread Chan Kim
section mismatch warning after inserting #pragma GCC optimize ? Hello all, In linux 5.4.21 source code, I put #pragma GCC push_options #pragma GCC optimize ("O0") and #pragma GCC pop_options around function static int __init gic_init_bases in file drivers/irqchip/

Re: how to fix section mismatch warning after inserting #pragma GCC optimize ?

2022-01-23 Thread Greg KH
On Sun, Jan 23, 2022 at 07:48:01PM +0900, Chan Kim wrote: > Hello all, > > > > In linux 5.4.21 source code, I put > > #pragma GCC push_options > > #pragma GCC optimize ("O0") Do not do that. Bad things will happen, the kernel really does not like this at all. Why do you want to

how to fix section mismatch warning after inserting #pragma GCC optimize ?

2022-01-23 Thread Chan Kim
Hello all, In linux 5.4.21 source code, I put #pragma GCC push_options #pragma GCC optimize ("O0") and #pragma GCC pop_options around function static int __init gic_init_bases in file drivers/irqchip/irq-gic-v3.c. When I build it, I get this warning message (section