public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]arch:x86:kvm:i8254.h Fix typo in kvm_pit
@ 2011-03-30 16:19 Justin P. Mattock
  2011-03-30 16:26 ` Avi Kivity
  0 siblings, 1 reply; 9+ messages in thread
From: Justin P. Mattock @ 2011-03-30 16:19 UTC (permalink / raw)
  To: trivial; +Cc: kvm, linux-kernel, avi, Justin P. Mattock

The below patch changes base_addresss to base_address.
Note: I have grepped for base_addresss and nothing shows up,
grepping for base_address gets me lots of output, telling me that
this is a typo, but could be wrong.

Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>

---
 arch/x86/kvm/i8254.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h
index 46d08ca..c2fa48b 100644
--- a/arch/x86/kvm/i8254.h
+++ b/arch/x86/kvm/i8254.h
@@ -33,7 +33,7 @@ struct kvm_kpit_state {
 };
 
 struct kvm_pit {
-	unsigned long base_addresss;
+	unsigned long base_address;
 	struct kvm_io_device dev;
 	struct kvm_io_device speaker_dev;
 	struct kvm *kvm;
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH]arch:x86:kvm:i8254.h Fix typo in kvm_pit
  2011-03-30 16:19 [PATCH]arch:x86:kvm:i8254.h Fix typo in kvm_pit Justin P. Mattock
@ 2011-03-30 16:26 ` Avi Kivity
  2011-03-30 16:30   ` Justin P. Mattock
  0 siblings, 1 reply; 9+ messages in thread
From: Avi Kivity @ 2011-03-30 16:26 UTC (permalink / raw)
  To: Justin P. Mattock; +Cc: trivial, kvm, linux-kernel

On 03/30/2011 06:19 PM, Justin P. Mattock wrote:
> The below patch changes base_addresss to base_address.
> Note: I have grepped for base_addresss and nothing shows up,
> grepping for base_address gets me lots of output, telling me that
> this is a typo, but could be wrong.
>
> Signed-off-by: Justin P. Mattock<justinmattock@gmail.com>
>
> ---
>   arch/x86/kvm/i8254.h |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h
> index 46d08ca..c2fa48b 100644
> --- a/arch/x86/kvm/i8254.h
> +++ b/arch/x86/kvm/i8254.h
> @@ -33,7 +33,7 @@ struct kvm_kpit_state {
>   };
>
>   struct kvm_pit {
> -	unsigned long base_addresss;
> +	unsigned long base_address;
>   	struct kvm_io_device dev;
>   	struct kvm_io_device speaker_dev;
>   	struct kvm *kvm;

Why not remove the variable completely?

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH]arch:x86:kvm:i8254.h Fix typo in kvm_pit
  2011-03-30 16:26 ` Avi Kivity
@ 2011-03-30 16:30   ` Justin P. Mattock
  2011-03-30 17:17     ` Avi Kivity
  0 siblings, 1 reply; 9+ messages in thread
From: Justin P. Mattock @ 2011-03-30 16:30 UTC (permalink / raw)
  To: Avi Kivity; +Cc: trivial, kvm, linux-kernel

On 03/30/2011 09:26 AM, Avi Kivity wrote:
> On 03/30/2011 06:19 PM, Justin P. Mattock wrote:
>> The below patch changes base_addresss to base_address.
>> Note: I have grepped for base_addresss and nothing shows up,
>> grepping for base_address gets me lots of output, telling me that
>> this is a typo, but could be wrong.
>>
>> Signed-off-by: Justin P. Mattock<justinmattock@gmail.com>
>>
>> ---
>> arch/x86/kvm/i8254.h | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h
>> index 46d08ca..c2fa48b 100644
>> --- a/arch/x86/kvm/i8254.h
>> +++ b/arch/x86/kvm/i8254.h
>> @@ -33,7 +33,7 @@ struct kvm_kpit_state {
>> };
>>
>> struct kvm_pit {
>> - unsigned long base_addresss;
>> + unsigned long base_address;
>> struct kvm_io_device dev;
>> struct kvm_io_device speaker_dev;
>> struct kvm *kvm;
>
> Why not remove the variable completely?
>

didnt even think to completely remove the variable(figured it was used 
somewhere).I will look at that and resend with removal of the variable 
for you..

Justin P. Mattock

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH]arch:x86:kvm:i8254.h Fix typo in kvm_pit
  2011-03-30 16:30   ` Justin P. Mattock
@ 2011-03-30 17:17     ` Avi Kivity
  2011-03-30 17:42       ` Justin P. Mattock
  2011-03-30 22:21       ` Jiri Kosina
  0 siblings, 2 replies; 9+ messages in thread
From: Avi Kivity @ 2011-03-30 17:17 UTC (permalink / raw)
  To: Justin P. Mattock; +Cc: trivial, kvm, linux-kernel

On 03/30/2011 06:30 PM, Justin P. Mattock wrote:
> On 03/30/2011 09:26 AM, Avi Kivity wrote:
>> On 03/30/2011 06:19 PM, Justin P. Mattock wrote:
>>> The below patch changes base_addresss to base_address.
>>> Note: I have grepped for base_addresss and nothing shows up,
>>> grepping for base_address gets me lots of output, telling me that
>>> this is a typo, but could be wrong.
>>>
>>> Signed-off-by: Justin P. Mattock<justinmattock@gmail.com>
>>>
>>> ---
>>> arch/x86/kvm/i8254.h | 2 +-
>>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>>
>>> diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h
>>> index 46d08ca..c2fa48b 100644
>>> --- a/arch/x86/kvm/i8254.h
>>> +++ b/arch/x86/kvm/i8254.h
>>> @@ -33,7 +33,7 @@ struct kvm_kpit_state {
>>> };
>>>
>>> struct kvm_pit {
>>> - unsigned long base_addresss;
>>> + unsigned long base_address;
>>> struct kvm_io_device dev;
>>> struct kvm_io_device speaker_dev;
>>> struct kvm *kvm;
>>
>> Why not remove the variable completely?
>>
>
> didnt even think to completely remove the variable(figured it was used 
> somewhere).I will look at that and resend with removal of the variable 
> for you..

Well if it was used, you ought to have changed all of the users, no?

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH]arch:x86:kvm:i8254.h Fix typo in kvm_pit
  2011-03-30 17:17     ` Avi Kivity
@ 2011-03-30 17:42       ` Justin P. Mattock
  2011-03-31  9:20         ` Avi Kivity
  2011-03-30 22:21       ` Jiri Kosina
  1 sibling, 1 reply; 9+ messages in thread
From: Justin P. Mattock @ 2011-03-30 17:42 UTC (permalink / raw)
  To: Avi Kivity; +Cc: trivial, kvm, linux-kernel

On 03/30/2011 10:17 AM, Avi Kivity wrote:
> On 03/30/2011 06:30 PM, Justin P. Mattock wrote:
>> On 03/30/2011 09:26 AM, Avi Kivity wrote:
>>> On 03/30/2011 06:19 PM, Justin P. Mattock wrote:
>>>> The below patch changes base_addresss to base_address.
>>>> Note: I have grepped for base_addresss and nothing shows up,
>>>> grepping for base_address gets me lots of output, telling me that
>>>> this is a typo, but could be wrong.
>>>>
>>>> Signed-off-by: Justin P. Mattock<justinmattock@gmail.com>
>>>>
>>>> ---
>>>> arch/x86/kvm/i8254.h | 2 +-
>>>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>>>
>>>> diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h
>>>> index 46d08ca..c2fa48b 100644
>>>> --- a/arch/x86/kvm/i8254.h
>>>> +++ b/arch/x86/kvm/i8254.h
>>>> @@ -33,7 +33,7 @@ struct kvm_kpit_state {
>>>> };
>>>>
>>>> struct kvm_pit {
>>>> - unsigned long base_addresss;
>>>> + unsigned long base_address;
>>>> struct kvm_io_device dev;
>>>> struct kvm_io_device speaker_dev;
>>>> struct kvm *kvm;
>>>
>>> Why not remove the variable completely?
>>>
>>
>> didnt even think to completely remove the variable(figured it was used
>> somewhere).I will look at that and resend with removal of the variable
>> for you..
>
> Well if it was used, you ought to have changed all of the users, no?
>

at the moment I see:
(keep in mind my reading skills only go so far!)

  grep -Re base_address kvm/* -n
kvm/ioapic.c:276:       return ((addr >= ioapic->base_address &&
kvm/ioapic.c:277:                (addr < ioapic->base_address + 
IOAPIC_MEM_LENGTH)));
kvm/ioapic.c:371:       ioapic->base_address = IOAPIC_DEFAULT_BASE_ADDRESS;
kvm/ioapic.h:38:        u64 base_address;

so changing base_addresss; to base_address; gets kvm_ioapic_reset to 
function correctly as well as ioapic_in_range?
(but could be wrong)

Justin P. Mattock







^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH]arch:x86:kvm:i8254.h Fix typo in kvm_pit
  2011-03-30 17:17     ` Avi Kivity
  2011-03-30 17:42       ` Justin P. Mattock
@ 2011-03-30 22:21       ` Jiri Kosina
  2011-03-30 23:52         ` Justin P. Mattock
  1 sibling, 1 reply; 9+ messages in thread
From: Jiri Kosina @ 2011-03-30 22:21 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Justin P. Mattock, kvm, linux-kernel

On Wed, 30 Mar 2011, Avi Kivity wrote:

> > > > The below patch changes base_addresss to base_address.
> > > > Note: I have grepped for base_addresss and nothing shows up,
> > > > grepping for base_address gets me lots of output, telling me that
> > > > this is a typo, but could be wrong.
> > > > 
> > > > Signed-off-by: Justin P. Mattock<justinmattock@gmail.com>
> > > > 
> > > > ---
> > > > arch/x86/kvm/i8254.h | 2 +-
> > > > 1 files changed, 1 insertions(+), 1 deletions(-)
> > > > 
> > > > diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h
> > > > index 46d08ca..c2fa48b 100644
> > > > --- a/arch/x86/kvm/i8254.h
> > > > +++ b/arch/x86/kvm/i8254.h
> > > > @@ -33,7 +33,7 @@ struct kvm_kpit_state {
> > > > };
> > > > 
> > > > struct kvm_pit {
> > > > - unsigned long base_addresss;
> > > > + unsigned long base_address;
> > > > struct kvm_io_device dev;
> > > > struct kvm_io_device speaker_dev;
> > > > struct kvm *kvm;
> > > 
> > > Why not remove the variable completely?
> > > 
> > 
> > didnt even think to completely remove the variable(figured it was used
> > somewhere).I will look at that and resend with removal of the variable for
> > you..
> 
> Well if it was used, you ought to have changed all of the users, no?

I am afraid Justin is not trying to compile-test his patches (I got this 
suspicion after last patchset trying to remove all the includes of 
version.h).

-- 
Jiri Kosina
SUSE Labs, Novell Inc.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH]arch:x86:kvm:i8254.h Fix typo in kvm_pit
  2011-03-30 22:21       ` Jiri Kosina
@ 2011-03-30 23:52         ` Justin P. Mattock
  0 siblings, 0 replies; 9+ messages in thread
From: Justin P. Mattock @ 2011-03-30 23:52 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Avi Kivity, kvm, linux-kernel

On 03/30/2011 03:21 PM, Jiri Kosina wrote:
> On Wed, 30 Mar 2011, Avi Kivity wrote:
>
>>>>> The below patch changes base_addresss to base_address.
>>>>> Note: I have grepped for base_addresss and nothing shows up,
>>>>> grepping for base_address gets me lots of output, telling me that
>>>>> this is a typo, but could be wrong.
>>>>>
>>>>> Signed-off-by: Justin P. Mattock<justinmattock@gmail.com>
>>>>>
>>>>> ---
>>>>> arch/x86/kvm/i8254.h | 2 +-
>>>>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>>>>
>>>>> diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h
>>>>> index 46d08ca..c2fa48b 100644
>>>>> --- a/arch/x86/kvm/i8254.h
>>>>> +++ b/arch/x86/kvm/i8254.h
>>>>> @@ -33,7 +33,7 @@ struct kvm_kpit_state {
>>>>> };
>>>>>
>>>>> struct kvm_pit {
>>>>> - unsigned long base_addresss;
>>>>> + unsigned long base_address;
>>>>> struct kvm_io_device dev;
>>>>> struct kvm_io_device speaker_dev;
>>>>> struct kvm *kvm;
>>>>
>>>> Why not remove the variable completely?
>>>>
>>>
>>> didnt even think to completely remove the variable(figured it was used
>>> somewhere).I will look at that and resend with removal of the variable for
>>> you..
>>
>> Well if it was used, you ought to have changed all of the users, no?
>
> I am afraid Justin is not trying to compile-test his patches (I got this
> suspicion after last patchset trying to remove all the includes of
> version.h).
>


I do remember to do that, but I will be honest there are ones that I 
totally forgot, then remembered after sending out the patch(I admit it I 
am guilty of that)

Think having a checklist is the best thing to follow when doing a patch
(telling yourself "yeah Ill remember to do that", never is the best way.

Justin P. Mattock

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH]arch:x86:kvm:i8254.h Fix typo in kvm_pit
  2011-03-30 17:42       ` Justin P. Mattock
@ 2011-03-31  9:20         ` Avi Kivity
  2011-03-31 15:50           ` Justin P. Mattock
  0 siblings, 1 reply; 9+ messages in thread
From: Avi Kivity @ 2011-03-31  9:20 UTC (permalink / raw)
  To: Justin P. Mattock; +Cc: trivial, kvm, linux-kernel

On 03/30/2011 07:42 PM, Justin P. Mattock wrote:
> On 03/30/2011 10:17 AM, Avi Kivity wrote:
>> On 03/30/2011 06:30 PM, Justin P. Mattock wrote:
>>> On 03/30/2011 09:26 AM, Avi Kivity wrote:
>>>> On 03/30/2011 06:19 PM, Justin P. Mattock wrote:
>>>>> The below patch changes base_addresss to base_address.
>>>>> Note: I have grepped for base_addresss and nothing shows up,
>>>>> grepping for base_address gets me lots of output, telling me that
>>>>> this is a typo, but could be wrong.
>>>>>
>>>>> Signed-off-by: Justin P. Mattock<justinmattock@gmail.com>
>>>>>
>>>>> ---
>>>>> arch/x86/kvm/i8254.h | 2 +-
>>>>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>>>>
>>>>> diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h
>>>>> index 46d08ca..c2fa48b 100644
>>>>> --- a/arch/x86/kvm/i8254.h
>>>>> +++ b/arch/x86/kvm/i8254.h
>>>>> @@ -33,7 +33,7 @@ struct kvm_kpit_state {
>>>>> };
>>>>>
>>>>> struct kvm_pit {
>>>>> - unsigned long base_addresss;
>>>>> + unsigned long base_address;
>>>>> struct kvm_io_device dev;
>>>>> struct kvm_io_device speaker_dev;
>>>>> struct kvm *kvm;
>>>>
>>>> Why not remove the variable completely?
>>>>
>>>
>>> didnt even think to completely remove the variable(figured it was used
>>> somewhere).I will look at that and resend with removal of the variable
>>> for you..
>>
>> Well if it was used, you ought to have changed all of the users, no?
>>
>
> at the moment I see:
> (keep in mind my reading skills only go so far!)
>
>  grep -Re base_address kvm/* -n
> kvm/ioapic.c:276:       return ((addr >= ioapic->base_address &&
> kvm/ioapic.c:277:                (addr < ioapic->base_address + 
> IOAPIC_MEM_LENGTH)));
> kvm/ioapic.c:371:       ioapic->base_address = 
> IOAPIC_DEFAULT_BASE_ADDRESS;
> kvm/ioapic.h:38:        u64 base_address;
>
> so changing base_addresss; to base_address; gets kvm_ioapic_reset to 
> function correctly as well as ioapic_in_range?
> (but could be wrong)
>

Can you explain how kvm_ioapic_reset() would be affected by the change?

Really, you need to understand what you're doing before sending patches.

-- 
error compiling committee.c: too many arguments to function



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH]arch:x86:kvm:i8254.h Fix typo in kvm_pit
  2011-03-31  9:20         ` Avi Kivity
@ 2011-03-31 15:50           ` Justin P. Mattock
  0 siblings, 0 replies; 9+ messages in thread
From: Justin P. Mattock @ 2011-03-31 15:50 UTC (permalink / raw)
  To: Avi Kivity; +Cc: trivial, kvm, linux-kernel

On 03/31/2011 02:20 AM, Avi Kivity wrote:
> On 03/30/2011 07:42 PM, Justin P. Mattock wrote:
>> On 03/30/2011 10:17 AM, Avi Kivity wrote:
>>> On 03/30/2011 06:30 PM, Justin P. Mattock wrote:
>>>> On 03/30/2011 09:26 AM, Avi Kivity wrote:
>>>>> On 03/30/2011 06:19 PM, Justin P. Mattock wrote:
>>>>>> The below patch changes base_addresss to base_address.
>>>>>> Note: I have grepped for base_addresss and nothing shows up,
>>>>>> grepping for base_address gets me lots of output, telling me that
>>>>>> this is a typo, but could be wrong.
>>>>>>
>>>>>> Signed-off-by: Justin P. Mattock<justinmattock@gmail.com>
>>>>>>
>>>>>> ---
>>>>>> arch/x86/kvm/i8254.h | 2 +-
>>>>>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>>>>>
>>>>>> diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h
>>>>>> index 46d08ca..c2fa48b 100644
>>>>>> --- a/arch/x86/kvm/i8254.h
>>>>>> +++ b/arch/x86/kvm/i8254.h
>>>>>> @@ -33,7 +33,7 @@ struct kvm_kpit_state {
>>>>>> };
>>>>>>
>>>>>> struct kvm_pit {
>>>>>> - unsigned long base_addresss;
>>>>>> + unsigned long base_address;
>>>>>> struct kvm_io_device dev;
>>>>>> struct kvm_io_device speaker_dev;
>>>>>> struct kvm *kvm;
>>>>>
>>>>> Why not remove the variable completely?
>>>>>
>>>>
>>>> didnt even think to completely remove the variable(figured it was used
>>>> somewhere).I will look at that and resend with removal of the variable
>>>> for you..
>>>
>>> Well if it was used, you ought to have changed all of the users, no?
>>>
>>
>> at the moment I see:
>> (keep in mind my reading skills only go so far!)
>>
>> grep -Re base_address kvm/* -n
>> kvm/ioapic.c:276: return ((addr >= ioapic->base_address &&
>> kvm/ioapic.c:277: (addr < ioapic->base_address + IOAPIC_MEM_LENGTH)));
>> kvm/ioapic.c:371: ioapic->base_address = IOAPIC_DEFAULT_BASE_ADDRESS;
>> kvm/ioapic.h:38: u64 base_address;
>>
>> so changing base_addresss; to base_address; gets kvm_ioapic_reset to
>> function correctly as well as ioapic_in_range?
>> (but could be wrong)
>>
>
> Can you explain how kvm_ioapic_reset() would be affected by the change?
>
> Really, you need to understand what you're doing before sending patches.
>

well looking at the code:
virt/kvm/ioapic.c @@276

static inline int ioapic_in_range(struct kvm_ioapic *ioapic, gpa_t addr)
{
	return ((addr >= ioapic->base_address &&
		 (addr < ioapic->base_address + IOAPIC_MEM_LENGTH)));
}

I see: base_address in there but looking more at the code its for 
something completely different..

Justin P. Mattock

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-03-31 15:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-30 16:19 [PATCH]arch:x86:kvm:i8254.h Fix typo in kvm_pit Justin P. Mattock
2011-03-30 16:26 ` Avi Kivity
2011-03-30 16:30   ` Justin P. Mattock
2011-03-30 17:17     ` Avi Kivity
2011-03-30 17:42       ` Justin P. Mattock
2011-03-31  9:20         ` Avi Kivity
2011-03-31 15:50           ` Justin P. Mattock
2011-03-30 22:21       ` Jiri Kosina
2011-03-30 23:52         ` Justin P. Mattock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox