@@ -248,11 +248,14 @@ void LiveUpdate::exec(const buffer_t& blob, void* location)
248248#ifdef PLATFORM_x86_solo5
249249 solo5_exec (blob.data (), blob.size ());
250250 throw std::runtime_error (" solo5_exec returned" );
251+ (void ) found_kernel_start;
251252# elif defined(PLATFORM_UNITTEST)
252253 throw liveupdate_exec_success ();
254+ (void ) found_kernel_start;
253255# elif defined(USERSPACE_KERNEL)
254256 hotswap (phys_base, bin_data, bin_len, (void *) (uintptr_t ) start_offset, sr_data);
255257 throw liveupdate_exec_success ();
258+ (void ) found_kernel_start;
256259# elif defined(ARCH_x86_64)
257260 // change to simple pagetable
258261 __x86_init_paging ((void *) 0x1000 );
@@ -270,6 +273,8 @@ void LiveUpdate::exec(const buffer_t& blob, void* location)
270273 ((decltype (&hotswap64)) HOTSWAP_AREA)(phys_base, bin_data, bin_len, start_offset, sr_data, nullptr );
271274 }
272275 }
276+ #else
277+ (void ) found_kernel_start;
273278# endif
274279 // copy hotswapping function to sweet spot
275280 memcpy (HOTSWAP_AREA, (void *) &hotswap, &__hotswap_length - (char *) &hotswap);
0 commit comments