mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][V2] drm/amd/powerplay: fix spelling mistake and add KERN_WARNING to printks
@ 2016-10-24 23:14 Colin King
  2016-10-25  7:43 ` Christian König
  0 siblings, 1 reply; 3+ messages in thread
From: Colin King @ 2016-10-24 23:14 UTC (permalink / raw)
  To: Alex Deucher, Christian König, David Airlie, Rex Zhu,
	Nils Wallménius, dri-devel
  Cc: linux-kernel

From: Colin Ian King <colin.king@canonical.com>

Fix trivial spelling mistake cant't -> can't and add KERN_WARNING to
printk messages.  Remove redundant spaces before \n too (thanks to
Joe Perches for spotting those).

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c      | 4 ++--
 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c   | 4 ++--
 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c | 4 ++--
 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c     | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c b/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c
index 76310ac..62e99d7 100644
--- a/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c
+++ b/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c
@@ -2125,7 +2125,7 @@ uint32_t fiji_get_offsetof(uint32_t type, uint32_t member)
 			return offsetof(SMU73_Discrete_DpmTable, LowSclkInterruptThreshold);
 		}
 	}
-	printk("cant't get the offset of type %x member %x \n", type, member);
+	printk(KERN_WARNING "can't get the offset of type %x member %x\n", type, member);
 	return 0;
 }
 
@@ -2150,7 +2150,7 @@ uint32_t fiji_get_mac_definition(uint32_t value)
 		return SMU73_MAX_LEVELS_MVDD;
 	}
 
-	printk("cant't get the mac of %x \n", value);
+	printk(KERN_WARNING "can't get the mac of %x\n", value);
 	return 0;
 }
 
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c b/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c
index 8c889ca..0cc20a8 100644
--- a/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c
+++ b/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c
@@ -2140,7 +2140,7 @@ uint32_t iceland_get_offsetof(uint32_t type, uint32_t member)
 			return offsetof(SMU71_Discrete_DpmTable, LowSclkInterruptThreshold);
 		}
 	}
-	printk("cant't get the offset of type %x member %x \n", type, member);
+	printk(KERN_WARNING "can't get the offset of type %x member %x\n", type, member);
 	return 0;
 }
 
@@ -2163,7 +2163,7 @@ uint32_t iceland_get_mac_definition(uint32_t value)
 		return SMU71_MAX_LEVELS_MVDD;
 	}
 
-	printk("cant't get the mac of %x \n", value);
+	printk(KERN_WARNING "can't get the mac of %x\n", value);
 	return 0;
 }
 
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c b/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c
index 4ccc0b7..7236c51 100644
--- a/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c
+++ b/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c
@@ -2174,7 +2174,7 @@ uint32_t polaris10_get_offsetof(uint32_t type, uint32_t member)
 			return offsetof(SMU74_Discrete_DpmTable, LowSclkInterruptThreshold);
 		}
 	}
-	printk("cant't get the offset of type %x member %x \n", type, member);
+	printk(KERN_WARNING "can't get the offset of type %x member %x\n", type, member);
 	return 0;
 }
 
@@ -2201,7 +2201,7 @@ uint32_t polaris10_get_mac_definition(uint32_t value)
 		return SMU7_UVD_MCLK_HANDSHAKE_DISABLE;
 	}
 
-	printk("cant't get the mac of %x \n", value);
+	printk(KERN_WARNING "can't get the mac of %x\n", value);
 	return 0;
 }
 
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c b/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c
index de2a24d..d08f6f1 100644
--- a/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c
+++ b/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c
@@ -2651,7 +2651,7 @@ uint32_t tonga_get_offsetof(uint32_t type, uint32_t member)
 			return offsetof(SMU72_Discrete_DpmTable, LowSclkInterruptThreshold);
 		}
 	}
-	printk("cant't get the offset of type %x member %x\n", type, member);
+	printk(KERN_WARNING "can't get the offset of type %x member %x\n", type, member);
 	return 0;
 }
 
@@ -2675,7 +2675,7 @@ uint32_t tonga_get_mac_definition(uint32_t value)
 	case SMU_MAX_LEVELS_MVDD:
 		return SMU72_MAX_LEVELS_MVDD;
 	}
-	printk("cant't get the mac value %x\n", value);
+	printk(KERN_WARNING "can't get the mac value %x\n", value);
 
 	return 0;
 }
-- 
2.9.3

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

* Re: [PATCH][V2] drm/amd/powerplay: fix spelling mistake and add KERN_WARNING to printks
  2016-10-24 23:14 [PATCH][V2] drm/amd/powerplay: fix spelling mistake and add KERN_WARNING to printks Colin King
@ 2016-10-25  7:43 ` Christian König
  2016-10-25 15:28   ` Alex Deucher
  0 siblings, 1 reply; 3+ messages in thread
From: Christian König @ 2016-10-25  7:43 UTC (permalink / raw)
  To: Colin King, Alex Deucher, David Airlie, Rex Zhu,
	Nils Wallménius, dri-devel
  Cc: linux-kernel

Am 25.10.2016 um 01:14 schrieb Colin King:
> From: Colin Ian King <colin.king@canonical.com>
>
> Fix trivial spelling mistake cant't -> can't and add KERN_WARNING to
> printk messages.  Remove redundant spaces before \n too (thanks to
> Joe Perches for spotting those).
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Reviewed-by: Christian König <christian.koenig@amd.com>.

> ---
>   drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c      | 4 ++--
>   drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c   | 4 ++--
>   drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c | 4 ++--
>   drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c     | 4 ++--
>   4 files changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c b/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c
> index 76310ac..62e99d7 100644
> --- a/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c
> +++ b/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c
> @@ -2125,7 +2125,7 @@ uint32_t fiji_get_offsetof(uint32_t type, uint32_t member)
>   			return offsetof(SMU73_Discrete_DpmTable, LowSclkInterruptThreshold);
>   		}
>   	}
> -	printk("cant't get the offset of type %x member %x \n", type, member);
> +	printk(KERN_WARNING "can't get the offset of type %x member %x\n", type, member);
>   	return 0;
>   }
>   
> @@ -2150,7 +2150,7 @@ uint32_t fiji_get_mac_definition(uint32_t value)
>   		return SMU73_MAX_LEVELS_MVDD;
>   	}
>   
> -	printk("cant't get the mac of %x \n", value);
> +	printk(KERN_WARNING "can't get the mac of %x\n", value);
>   	return 0;
>   }
>   
> diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c b/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c
> index 8c889ca..0cc20a8 100644
> --- a/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c
> +++ b/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c
> @@ -2140,7 +2140,7 @@ uint32_t iceland_get_offsetof(uint32_t type, uint32_t member)
>   			return offsetof(SMU71_Discrete_DpmTable, LowSclkInterruptThreshold);
>   		}
>   	}
> -	printk("cant't get the offset of type %x member %x \n", type, member);
> +	printk(KERN_WARNING "can't get the offset of type %x member %x\n", type, member);
>   	return 0;
>   }
>   
> @@ -2163,7 +2163,7 @@ uint32_t iceland_get_mac_definition(uint32_t value)
>   		return SMU71_MAX_LEVELS_MVDD;
>   	}
>   
> -	printk("cant't get the mac of %x \n", value);
> +	printk(KERN_WARNING "can't get the mac of %x\n", value);
>   	return 0;
>   }
>   
> diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c b/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c
> index 4ccc0b7..7236c51 100644
> --- a/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c
> +++ b/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c
> @@ -2174,7 +2174,7 @@ uint32_t polaris10_get_offsetof(uint32_t type, uint32_t member)
>   			return offsetof(SMU74_Discrete_DpmTable, LowSclkInterruptThreshold);
>   		}
>   	}
> -	printk("cant't get the offset of type %x member %x \n", type, member);
> +	printk(KERN_WARNING "can't get the offset of type %x member %x\n", type, member);
>   	return 0;
>   }
>   
> @@ -2201,7 +2201,7 @@ uint32_t polaris10_get_mac_definition(uint32_t value)
>   		return SMU7_UVD_MCLK_HANDSHAKE_DISABLE;
>   	}
>   
> -	printk("cant't get the mac of %x \n", value);
> +	printk(KERN_WARNING "can't get the mac of %x\n", value);
>   	return 0;
>   }
>   
> diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c b/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c
> index de2a24d..d08f6f1 100644
> --- a/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c
> +++ b/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c
> @@ -2651,7 +2651,7 @@ uint32_t tonga_get_offsetof(uint32_t type, uint32_t member)
>   			return offsetof(SMU72_Discrete_DpmTable, LowSclkInterruptThreshold);
>   		}
>   	}
> -	printk("cant't get the offset of type %x member %x\n", type, member);
> +	printk(KERN_WARNING "can't get the offset of type %x member %x\n", type, member);
>   	return 0;
>   }
>   
> @@ -2675,7 +2675,7 @@ uint32_t tonga_get_mac_definition(uint32_t value)
>   	case SMU_MAX_LEVELS_MVDD:
>   		return SMU72_MAX_LEVELS_MVDD;
>   	}
> -	printk("cant't get the mac value %x\n", value);
> +	printk(KERN_WARNING "can't get the mac value %x\n", value);
>   
>   	return 0;
>   }

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

* Re: [PATCH][V2] drm/amd/powerplay: fix spelling mistake and add KERN_WARNING to printks
  2016-10-25  7:43 ` Christian König
@ 2016-10-25 15:28   ` Alex Deucher
  0 siblings, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2016-10-25 15:28 UTC (permalink / raw)
  To: Christian König
  Cc: Colin King, Alex Deucher, David Airlie, Rex Zhu,
	Nils Wallménius, Maling list - DRI developers, LKML

On Tue, Oct 25, 2016 at 3:43 AM, Christian König
<christian.koenig@amd.com> wrote:
> Am 25.10.2016 um 01:14 schrieb Colin King:
>>
>> From: Colin Ian King <colin.king@canonical.com>
>>
>> Fix trivial spelling mistake cant't -> can't and add KERN_WARNING to
>> printk messages.  Remove redundant spaces before \n too (thanks to
>> Joe Perches for spotting those).
>>
>> Signed-off-by: Colin Ian King <colin.king@canonical.com>
>
>
> Reviewed-by: Christian König <christian.koenig@amd.com>.
>

Applied.  Thanks!

Alex

>
>> ---
>>   drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c      | 4 ++--
>>   drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c   | 4 ++--
>>   drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c | 4 ++--
>>   drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c     | 4 ++--
>>   4 files changed, 8 insertions(+), 8 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c
>> b/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c
>> index 76310ac..62e99d7 100644
>> --- a/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c
>> +++ b/drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c
>> @@ -2125,7 +2125,7 @@ uint32_t fiji_get_offsetof(uint32_t type, uint32_t
>> member)
>>                         return offsetof(SMU73_Discrete_DpmTable,
>> LowSclkInterruptThreshold);
>>                 }
>>         }
>> -       printk("cant't get the offset of type %x member %x \n", type,
>> member);
>> +       printk(KERN_WARNING "can't get the offset of type %x member %x\n",
>> type, member);
>>         return 0;
>>   }
>>   @@ -2150,7 +2150,7 @@ uint32_t fiji_get_mac_definition(uint32_t value)
>>                 return SMU73_MAX_LEVELS_MVDD;
>>         }
>>   -     printk("cant't get the mac of %x \n", value);
>> +       printk(KERN_WARNING "can't get the mac of %x\n", value);
>>         return 0;
>>   }
>>   diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c
>> b/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c
>> index 8c889ca..0cc20a8 100644
>> --- a/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c
>> +++ b/drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c
>> @@ -2140,7 +2140,7 @@ uint32_t iceland_get_offsetof(uint32_t type,
>> uint32_t member)
>>                         return offsetof(SMU71_Discrete_DpmTable,
>> LowSclkInterruptThreshold);
>>                 }
>>         }
>> -       printk("cant't get the offset of type %x member %x \n", type,
>> member);
>> +       printk(KERN_WARNING "can't get the offset of type %x member %x\n",
>> type, member);
>>         return 0;
>>   }
>>   @@ -2163,7 +2163,7 @@ uint32_t iceland_get_mac_definition(uint32_t
>> value)
>>                 return SMU71_MAX_LEVELS_MVDD;
>>         }
>>   -     printk("cant't get the mac of %x \n", value);
>> +       printk(KERN_WARNING "can't get the mac of %x\n", value);
>>         return 0;
>>   }
>>   diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c
>> b/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c
>> index 4ccc0b7..7236c51 100644
>> --- a/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c
>> +++ b/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smc.c
>> @@ -2174,7 +2174,7 @@ uint32_t polaris10_get_offsetof(uint32_t type,
>> uint32_t member)
>>                         return offsetof(SMU74_Discrete_DpmTable,
>> LowSclkInterruptThreshold);
>>                 }
>>         }
>> -       printk("cant't get the offset of type %x member %x \n", type,
>> member);
>> +       printk(KERN_WARNING "can't get the offset of type %x member %x\n",
>> type, member);
>>         return 0;
>>   }
>>   @@ -2201,7 +2201,7 @@ uint32_t polaris10_get_mac_definition(uint32_t
>> value)
>>                 return SMU7_UVD_MCLK_HANDSHAKE_DISABLE;
>>         }
>>   -     printk("cant't get the mac of %x \n", value);
>> +       printk(KERN_WARNING "can't get the mac of %x\n", value);
>>         return 0;
>>   }
>>   diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c
>> b/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c
>> index de2a24d..d08f6f1 100644
>> --- a/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c
>> +++ b/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smc.c
>> @@ -2651,7 +2651,7 @@ uint32_t tonga_get_offsetof(uint32_t type, uint32_t
>> member)
>>                         return offsetof(SMU72_Discrete_DpmTable,
>> LowSclkInterruptThreshold);
>>                 }
>>         }
>> -       printk("cant't get the offset of type %x member %x\n", type,
>> member);
>> +       printk(KERN_WARNING "can't get the offset of type %x member %x\n",
>> type, member);
>>         return 0;
>>   }
>>   @@ -2675,7 +2675,7 @@ uint32_t tonga_get_mac_definition(uint32_t value)
>>         case SMU_MAX_LEVELS_MVDD:
>>                 return SMU72_MAX_LEVELS_MVDD;
>>         }
>> -       printk("cant't get the mac value %x\n", value);
>> +       printk(KERN_WARNING "can't get the mac value %x\n", value);
>>         return 0;
>>   }
>
>
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2016-10-25 15:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-24 23:14 [PATCH][V2] drm/amd/powerplay: fix spelling mistake and add KERN_WARNING to printks Colin King
2016-10-25  7:43 ` Christian König
2016-10-25 15:28   ` Alex Deucher

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

all inboxes | Powered by JetHome®