Skip to content

Commit adac17e

Browse files
nickdesaulnierstorvalds
authored andcommitted
mm/ksm: remove old GCC 4.9+ check
The minimum supported version of GCC has been raised to GCC 5.1. Signed-off-by: Nick Desaulniers <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 4eb6bd5 commit adac17e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mm/ksm.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,10 +651,8 @@ static void remove_node_from_stable_tree(struct stable_node *stable_node)
651651
* from &migrate_nodes. This will verify that future list.h changes
652652
* don't break STABLE_NODE_DUP_HEAD. Only recent gcc can handle it.
653653
*/
654-
#if defined(GCC_VERSION) && GCC_VERSION >= 40903
655654
BUILD_BUG_ON(STABLE_NODE_DUP_HEAD <= &migrate_nodes);
656655
BUILD_BUG_ON(STABLE_NODE_DUP_HEAD >= &migrate_nodes + 1);
657-
#endif
658656

659657
if (stable_node->head == &migrate_nodes)
660658
list_del(&stable_node->list);

0 commit comments

Comments
 (0)