On 14/02/2016 12:31, Xiao Guangrong wrote:
+static bool check_mode(enum kvm_page_track_mode mode)
+{
+ if (mode < 0 || mode >= KVM_PAGE_TRACK_MAX)
+ return false;
+
+ return true;
+}
Oops, forgot about this; please rename to page_track_mode_is_valid and
make it "static inline".