No functional change, but the result is more informative both in the code and
error messages if the assertions do get hit.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <julien.gralL@arm.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
int donate_page(struct domain *d, struct page_info *page, unsigned int memflags)
{
- ASSERT(0);
+ ASSERT_UNREACHABLE();
return -ENOSYS;
}
int page_is_ram_type(unsigned long mfn, unsigned long mem_type)
{
- ASSERT(0);
+ ASSERT_UNREACHABLE();
return 0;
}
static inline void *cli_get_page(xen_pfn_t cmfn, unsigned long *pcli_mfn,
struct page_info **pcli_pfp, bool_t cli_write)
{
- ASSERT(0);
+ ASSERT_UNREACHABLE();
return NULL;
}
static inline void cli_put_page(void *cli_va, struct page_info *cli_pfp,
unsigned long cli_mfn, bool_t mark_dirty)
{
- ASSERT(0);
+ ASSERT_UNREACHABLE();
}
#else
#include <asm/p2m.h>
hpet_sbdf.init = HPET_IVHD;
break;
default:
- ASSERT(0);
+ ASSERT_UNREACHABLE();
break;
}
break;