Re: [PATCH] copy_{to,from}_user(): fix compile-time sanity checks with gcc -Og

2018-11-03 Thread Arnd Bergmann
On 11/3/18, Changbin Du wrote: > On Fri, Nov 02, 2018 at 04:56:58PM +0100, Arnd Bergmann wrote: >> When CONFIG_CC_OPTIMIZE_FOR_DEBUGGING is set, we get countless warnings >> like >> >> In function 'check_copy_size', >> inlined from 'copy_from_user' at include/linux/uaccess.h:146:6, >> inli

Re: [PATCH] copy_{to,from}_user(): fix compile-time sanity checks with gcc -Og

2018-11-02 Thread Changbin Du
On Fri, Nov 02, 2018 at 04:56:58PM +0100, Arnd Bergmann wrote: > When CONFIG_CC_OPTIMIZE_FOR_DEBUGGING is set, we get countless warnings > like > > In function 'check_copy_size', > inlined from 'copy_from_user' at include/linux/uaccess.h:146:6, > inlined from '__copy_siginfo_from_user' at

[PATCH] copy_{to,from}_user(): fix compile-time sanity checks with gcc -Og

2018-11-02 Thread Arnd Bergmann
When CONFIG_CC_OPTIMIZE_FOR_DEBUGGING is set, we get countless warnings like In function 'check_copy_size', inlined from 'copy_from_user' at include/linux/uaccess.h:146:6, inlined from '__copy_siginfo_from_user' at kernel/signal.c:3032:6: include/linux/thread_info.h:147:4: error: call to '