Am 11.06.2013 16:56, schrieb Luiz Capitulino:
> On Sun, 9 Jun 2013 18:10:38 +0200
> Andreas Färber <[email protected]> wrote:
>
>> Change error reporting from return value to Error argument.
>>
>> Signed-off-by: Andreas Färber <[email protected]>
>> ---
>> include/qom/cpu.h | 14 ++++++++++++++
>> include/sysemu/memory_mapping.h | 2 --
>> memory_mapping-stub.c | 6 ------
>> memory_mapping.c | 7 ++++---
>> qom/cpu.c | 16 ++++++++++++++++
>> target-i386/arch_memory_mapping.c | 12 +++++++-----
>> target-i386/cpu-qom.h | 3 +++
>> target-i386/cpu.c | 1 +
>> 8 files changed, 45 insertions(+), 16 deletions(-)
>>
>> diff --git a/include/qom/cpu.h b/include/qom/cpu.h
>> index 1f70240..254be2e 100644
>> --- a/include/qom/cpu.h
>> +++ b/include/qom/cpu.h
[...]
>> @@ -148,6 +152,16 @@ struct CPUState {
>> bool cpu_paging_enabled(const CPUState *cpu);
>>
>> /**
>> + * @cpu: The CPU whose memory mappings are to be obtained.
>> + * @list: Where to write the memory mappings to.
>> + * @errp: Pointer for reporting an #Error.
>> + *
>> + * Returns: 0 if successful.
>> + */
>
> It turns void now, but you can add:
>
> Reviewed-by: Luiz Capitulino <[email protected]>
>
> When you respin.
Thanks, fixing up as follows:
diff --git a/include/qom/cpu.h b/include/qom/cpu.h
index 254be2e..a5bb515 100644
--- a/include/qom/cpu.h
+++ b/include/qom/cpu.h
@@ -152,11 +152,10 @@ struct CPUState {
bool cpu_paging_enabled(const CPUState *cpu);
/**
+ * cpu_get_memory_mapping:
* @cpu: The CPU whose memory mappings are to be obtained.
* @list: Where to write the memory mappings to.
* @errp: Pointer for reporting an #Error.
- *
- * Returns: 0 if successful.
*/
void cpu_get_memory_mapping(CPUState *cpu, MemoryMappingList *list,
Error **errp);
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg