BUG() is a no-op when CONFIG_BUG is disabled, so slab_node() needs a dummy return value to avoid reaching the end of a non-void function. Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx> --- mm/mempolicy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/mempolicy.c b/mm/mempolicy.c --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -1611,6 +1611,7 @@ unsigned slab_node(struct mempolicy *policy) default: BUG(); + return numa_node_id(); } } -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>