| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] xen/page_alloc: Remove dead code in alloc_domheap_pages()
 Hi Jan, On 07/04/2021 10:25, Jan Beulich wrote: On 06.04.2021 21:22, Julien Grall wrote:--- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -457,6 +457,12 @@ static long total_avail_pages; static DEFINE_SPINLOCK(heap_lock); static long outstanding_claims; /* total outstanding claims by all domains */+static void __init __maybe_unused build_assertions(void) I saw it, but I was concerned that someone may modify the definition of NR_ZONES without looking at the rest of the code base. Anyway, I guess that the ASSERT(zone_hi != 0) in the code should be sufficient to catch such problem. So I will drop it. Irrespective of the usefulness, if this is to be kept I think the function wants to live at the end of the source file, like the majority of other files have it (another consistent place could be at the top of the file, after all #include-s, as can be found in two other cases).@@ -2340,8 +2346,9 @@ struct page_info *alloc_domheap_pages(bits = domain_clamp_alloc_bitsize(memflags & MEMF_no_owner ? NULL : d, In general, I am in not in favor to modify unrelated to code (e.g. coding style) or things that deserved a more than a one-line explanation in the commit message. This is not the case here, so I will respin it and switch from min_t to min. Cheers, -- Julien Grall 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |