diff mbox

qemu-kvm: Cleanup compatfd makefile rule

Message ID 4AB3C3EC.5030200@siemens.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jan Kiszka Sept. 18, 2009, 5:31 p.m. UTC
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

 Makefile |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Avi Kivity Sept. 21, 2009, 9:29 a.m. UTC | #1
On 09/18/2009 08:31 PM, Jan Kiszka wrote:
> Signed-off-by: Jan Kiszka<jan.kiszka@siemens.com>
> ---
>
>   Makefile |    7 +------
>   1 files changed, 1 insertions(+), 6 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 6a9ca7c..6855fa2 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -65,9 +65,8 @@ recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
>
>   block-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o
>   block-obj-y += nbd.o block.o aio.o aes.o osdep.o
> -block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
> +block-obj-$(CONFIG_POSIX) += posix-aio-compat.o compatfd.o
>   block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
> -block-obj-y += compatfd.o
>    

This looks to be already obsolete, but note that I prefer kvm-specific 
changes to be on their own lines to reduce merge conflicts.  That is how 
the code look now.
Jan Kiszka Sept. 21, 2009, 10:25 a.m. UTC | #2
Avi Kivity wrote:
> On 09/18/2009 08:31 PM, Jan Kiszka wrote:
>> Signed-off-by: Jan Kiszka<jan.kiszka@siemens.com>
>> ---
>>
>>   Makefile |    7 +------
>>   1 files changed, 1 insertions(+), 6 deletions(-)
>>
>> diff --git a/Makefile b/Makefile
>> index 6a9ca7c..6855fa2 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -65,9 +65,8 @@ recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
>>
>>   block-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o
>>   block-obj-y += nbd.o block.o aio.o aes.o osdep.o
>> -block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
>> +block-obj-$(CONFIG_POSIX) += posix-aio-compat.o compatfd.o
>>   block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
>> -block-obj-y += compatfd.o
>>    
> 
> This looks to be already obsolete, but note that I prefer kvm-specific 
> changes to be on their own lines to reduce merge conflicts.  That is how 
> the code look now.

I don't mind if separate line or not, just use the proper CONFIG_POSIX
conditional.

Jan
Avi Kivity Sept. 21, 2009, 11:49 a.m. UTC | #3
On 09/21/2009 01:25 PM, Jan Kiszka wrote:
> Avi Kivity wrote:
>    
>> On 09/18/2009 08:31 PM, Jan Kiszka wrote:
>>      
>>> Signed-off-by: Jan Kiszka<jan.kiszka@siemens.com>
>>> ---
>>>
>>>    Makefile |    7 +------
>>>    1 files changed, 1 insertions(+), 6 deletions(-)
>>>
>>> diff --git a/Makefile b/Makefile
>>> index 6a9ca7c..6855fa2 100644
>>> --- a/Makefile
>>> +++ b/Makefile
>>> @@ -65,9 +65,8 @@ recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
>>>
>>>    block-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o
>>>    block-obj-y += nbd.o block.o aio.o aes.o osdep.o
>>> -block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
>>> +block-obj-$(CONFIG_POSIX) += posix-aio-compat.o compatfd.o
>>>    block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
>>> -block-obj-y += compatfd.o
>>>
>>>        
>> This looks to be already obsolete, but note that I prefer kvm-specific
>> changes to be on their own lines to reduce merge conflicts.  That is how
>> the code look now.
>>      
> I don't mind if separate line or not, just use the proper CONFIG_POSIX
> conditional.
>
>    

I'm not sure it should be conditional, or part of block-obj-y.
Jan Kiszka Sept. 21, 2009, 11:53 a.m. UTC | #4
Avi Kivity wrote:
> On 09/21/2009 01:25 PM, Jan Kiszka wrote:
>> Avi Kivity wrote:
>>    
>>> On 09/18/2009 08:31 PM, Jan Kiszka wrote:
>>>      
>>>> Signed-off-by: Jan Kiszka<jan.kiszka@siemens.com>
>>>> ---
>>>>
>>>>    Makefile |    7 +------
>>>>    1 files changed, 1 insertions(+), 6 deletions(-)
>>>>
>>>> diff --git a/Makefile b/Makefile
>>>> index 6a9ca7c..6855fa2 100644
>>>> --- a/Makefile
>>>> +++ b/Makefile
>>>> @@ -65,9 +65,8 @@ recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
>>>>
>>>>    block-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o
>>>>    block-obj-y += nbd.o block.o aio.o aes.o osdep.o
>>>> -block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
>>>> +block-obj-$(CONFIG_POSIX) += posix-aio-compat.o compatfd.o
>>>>    block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
>>>> -block-obj-y += compatfd.o
>>>>
>>>>        
>>> This looks to be already obsolete, but note that I prefer kvm-specific
>>> changes to be on their own lines to reduce merge conflicts.  That is how
>>> the code look now.
>>>      
>> I don't mind if separate line or not, just use the proper CONFIG_POSIX
>> conditional.
>>
>>    
> 
> I'm not sure it should be conditional, or part of block-obj-y.

I am: compatfd requires POSIX, but the block layer is also built on
non-POSIX hosts.

Jan
Avi Kivity Sept. 21, 2009, 11:56 a.m. UTC | #5
On 09/21/2009 02:53 PM, Jan Kiszka wrote:
>
>> I'm not sure it should be conditional, or part of block-obj-y.
>>      
> I am: compatfd requires POSIX, but the block layer is also built on
> non-POSIX hosts.
>    

Oh, it's POSIX, not the old POSIX_AIO.  I'll make the change.
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 6a9ca7c..6855fa2 100644
--- a/Makefile
+++ b/Makefile
@@ -65,9 +65,8 @@  recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
 
 block-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o
 block-obj-y += nbd.o block.o aio.o aes.o osdep.o
-block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
+block-obj-$(CONFIG_POSIX) += posix-aio-compat.o compatfd.o
 block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
-block-obj-y += compatfd.o
 
 block-nested-y += cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o
 block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o
@@ -78,10 +77,6 @@  block-nested-$(CONFIG_CURL) += curl.o
 
 block-obj-y +=  $(addprefix block/, $(block-nested-y))
 
-ifdef CONFIG_AIO
-block-obj-y += compatfd.o
-endif
-
 ######################################################################
 # libqemu_common.a: Target independent part of system emulation. The
 # long term path is to suppress *all* target specific code in case of