]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
x86/tlb: fix NEED_FLUSH return type
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 3 Feb 2020 12:06:19 +0000 (13:06 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2020 12:06:19 +0000 (13:06 +0100)
The returned type wants to be bool instead of int.

No functional change intended.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wl@xen.org>
xen/include/asm-x86/flushtlb.h

index 434821aaf38b9a8cddc628b7cb0606b369c4f7fc..2cfe4e6e97f068a7d3bf016456733dc8e7c59919 100644 (file)
@@ -42,7 +42,7 @@ static inline void page_set_tlbflush_timestamp(struct page_info *page)
  * @lastuse_stamp is a timestamp taken when the PFN we are testing was last 
  * used for a purpose that may have caused the CPU's TLB to become tainted.
  */
-static inline int NEED_FLUSH(u32 cpu_stamp, u32 lastuse_stamp)
+static inline bool NEED_FLUSH(u32 cpu_stamp, u32 lastuse_stamp)
 {
     u32 curr_time = tlbflush_current_time();
     /*