| 4a8f4f97 | 21-Apr-2021 |
Reshma Pattan <[email protected]> |
examples/vm_power: remove VM channel number check
VM channel number should not be validated against the host vm_power_manager coremask core indexes, as VM cores need not to be same as host cores. So
examples/vm_power: remove VM channel number check
VM channel number should not be validated against the host vm_power_manager coremask core indexes, as VM cores need not to be same as host cores. So remove this check, to allow all the vm channels to be added successfully.
Fixes: b49c677a0d24 ("examples/vm_power: respect core mask") Cc: [email protected]
Signed-off-by: Reshma Pattan <[email protected]> Reviewed-by: David Hunt <[email protected]>
show more ...
|
| a9f57cfc | 28-Oct-2020 |
Bruce Richardson <[email protected]> |
examples/vm_power: fix build on Ubuntu 20.04
When compiling on Ubuntu 20.04, a warning was issued about possible truncation of the path string for the power management socket.
channel_manager.c: In
examples/vm_power: fix build on Ubuntu 20.04
When compiling on Ubuntu 20.04, a warning was issued about possible truncation of the path string for the power management socket.
channel_manager.c: In function ‘add_all_channels’: channel_manager.c:470:41: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 90 [-Wformat-truncation=] 470 | sizeof(chan_info->channel_path), "%s%s", | ^~
This can be fixed by adding in an explicit truncation check to the code and handling it appropriately.
Fixes: e8ae9b662506 ("examples/vm_power: channel manager and monitor in host") Cc: [email protected]
Signed-off-by: Bruce Richardson <[email protected]> Acked-by: David Hunt <[email protected]>
show more ...
|