lkml.org 
[lkml]   [2019]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[tip:WIP.x86/alternatives 2/9] kernel/jump_label.c:387:10-11: WARNING: return of 0/1 in function 'jump_label_can_update_check' with return type bool
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/alternatives
head: 1f30946b1a01baf22df6faf74c0a1e602bb6cac7
commit: 41bef31d0abe29b5888b33b526cacc8a30795318 [2/9] jump_label: Add the jump_label_can_update_check() helper

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>



coccinelle warnings: (new ones prefixed by >>)

>> kernel/jump_label.c:387:10-11: WARNING: return of 0/1 in function 'jump_label_can_update_check' with return type bool

vim +/jump_label_can_update_check +387 kernel/jump_label.c

376
377 bool jump_label_can_update_check(struct jump_entry *entry, bool init)
378 {
379 /*
380 * An entry->code of 0 indicates an entry which has been
381 * disabled because it was in an init text area.
382 */
383 if (init || !jump_entry_is_init(entry)) {
384 if (!kernel_text_address(jump_entry_code(entry))) {
385 WARN_ONCE(1, "can't patch jump_label at %pS",
386 (void *)jump_entry_code(entry));
> 387 return 0;
388 }
389 return 1;
390 }
391 return 0;
392 }
393

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

\
 
 \ /
  Last update: 2019-04-20 02:27    [W:0.039 / U:4.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site