diff mbox series

[RFC,01/14] s390/mm: Code cleanups

Message ID 20180919084802.183381-2-frankja@linux.ibm.com (mailing list archive)
State New, archived
Headers show
Series KVM: s390: Huge page splitting and shadowing | expand

Commit Message

Janosch Frank Sept. 19, 2018, 8:47 a.m. UTC
Let's clean up leftovers before introducing new code.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
---
 arch/s390/mm/gmap.c    | 8 ++++----
 arch/s390/mm/pgtable.c | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

Comments

David Hildenbrand Sept. 20, 2018, 11:07 a.m. UTC | #1
Am 19.09.18 um 10:47 schrieb Janosch Frank:
> Let's clean up leftovers before introducing new code.
> 
> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
> ---
>  arch/s390/mm/gmap.c    | 8 ++++----
>  arch/s390/mm/pgtable.c | 2 +-
>  2 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/s390/mm/gmap.c b/arch/s390/mm/gmap.c
> index 1e668b95e0c6..9ccd62cc7f37 100644
> --- a/arch/s390/mm/gmap.c
> +++ b/arch/s390/mm/gmap.c
> @@ -5,7 +5,7 @@
>   *    Copyright IBM Corp. 2007, 2016, 2018
>   *    Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>
>   *		 David Hildenbrand <david@redhat.com>
> - *		 Janosch Frank <frankja@linux.vnet.ibm.com>
> + *		 Janosch Frank <frankja@linux.ibm.com>
>   */
>  
>  #include <linux/kernel.h>
> @@ -2285,10 +2285,10 @@ static void gmap_pmdp_xchg(struct gmap *gmap, pmd_t *pmdp, pmd_t new,
>  	pmdp_notify_gmap(gmap, pmdp, gaddr);
>  	pmd_val(new) &= ~_SEGMENT_ENTRY_GMAP_IN;
>  	if (MACHINE_HAS_TLB_GUEST)
> -		__pmdp_idte(gaddr, (pmd_t *)pmdp, IDTE_GUEST_ASCE, gmap->asce,
> +		__pmdp_idte(gaddr, pmdp, IDTE_GUEST_ASCE, gmap->asce,
>  			    IDTE_GLOBAL);
>  	else if (MACHINE_HAS_IDTE)
> -		__pmdp_idte(gaddr, (pmd_t *)pmdp, 0, 0, IDTE_GLOBAL);
> +		__pmdp_idte(gaddr, pmdp, 0, 0, IDTE_GLOBAL);
>  	else
>  		__pmdp_csp(pmdp);
>  	*pmdp = new;
> @@ -2505,7 +2505,7 @@ static inline void thp_split_mm(struct mm_struct *mm)
>   * - This must be called after THP was enabled
>   */
>  static int __zap_zero_pages(pmd_t *pmd, unsigned long start,
> -			   unsigned long end, struct mm_walk *walk)
> +			    unsigned long end, struct mm_walk *walk)
>  {
>  	unsigned long addr;
>  
> diff --git a/arch/s390/mm/pgtable.c b/arch/s390/mm/pgtable.c
> index f2cc7da473e4..16d35b881a11 100644
> --- a/arch/s390/mm/pgtable.c
> +++ b/arch/s390/mm/pgtable.c
> @@ -723,7 +723,7 @@ void ptep_zap_key(struct mm_struct *mm, unsigned long addr, pte_t *ptep)
>   * Test and reset if a guest page is dirty
>   */
>  bool ptep_test_and_clear_uc(struct mm_struct *mm, unsigned long addr,
> -		       pte_t *ptep)
> +			    pte_t *ptep)
>  {
>  	pgste_t pgste;
>  	pte_t pte;
> 

Reviewed-by: David Hildenbrand <david@redhat.com>
Janosch Frank Sept. 20, 2018, 1:12 p.m. UTC | #2
On 9/20/18 1:07 PM, David Hildenbrand wrote:
> Am 19.09.18 um 10:47 schrieb Janosch Frank:
>> Let's clean up leftovers before introducing new code.
>>
>> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
[...]
>> diff --git a/arch/s390/mm/pgtable.c b/arch/s390/mm/pgtable.c
>> index f2cc7da473e4..16d35b881a11 100644
>> --- a/arch/s390/mm/pgtable.c
>> +++ b/arch/s390/mm/pgtable.c
>> @@ -723,7 +723,7 @@ void ptep_zap_key(struct mm_struct *mm, unsigned long addr, pte_t *ptep)
>>   * Test and reset if a guest page is dirty
>>   */
>>  bool ptep_test_and_clear_uc(struct mm_struct *mm, unsigned long addr,
>> -		       pte_t *ptep)
>> +			    pte_t *ptep)
>>  {
>>  	pgste_t pgste;
>>  	pte_t pte;
>>
> 
> Reviewed-by: David Hildenbrand <david@redhat.com>

Thanks
Christian Borntraeger Sept. 20, 2018, 1:15 p.m. UTC | #3
On 09/19/2018 10:47 AM, Janosch Frank wrote:
> Let's clean up leftovers before introducing new code.
> 
> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>

Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>

> ---
>  arch/s390/mm/gmap.c    | 8 ++++----
>  arch/s390/mm/pgtable.c | 2 +-
>  2 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/s390/mm/gmap.c b/arch/s390/mm/gmap.c
> index 1e668b95e0c6..9ccd62cc7f37 100644
> --- a/arch/s390/mm/gmap.c
> +++ b/arch/s390/mm/gmap.c
> @@ -5,7 +5,7 @@
>   *    Copyright IBM Corp. 2007, 2016, 2018
>   *    Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>
>   *		 David Hildenbrand <david@redhat.com>
> - *		 Janosch Frank <frankja@linux.vnet.ibm.com>
> + *		 Janosch Frank <frankja@linux.ibm.com>
>   */
>  
>  #include <linux/kernel.h>
> @@ -2285,10 +2285,10 @@ static void gmap_pmdp_xchg(struct gmap *gmap, pmd_t *pmdp, pmd_t new,
>  	pmdp_notify_gmap(gmap, pmdp, gaddr);
>  	pmd_val(new) &= ~_SEGMENT_ENTRY_GMAP_IN;
>  	if (MACHINE_HAS_TLB_GUEST)
> -		__pmdp_idte(gaddr, (pmd_t *)pmdp, IDTE_GUEST_ASCE, gmap->asce,
> +		__pmdp_idte(gaddr, pmdp, IDTE_GUEST_ASCE, gmap->asce,
>  			    IDTE_GLOBAL);
>  	else if (MACHINE_HAS_IDTE)
> -		__pmdp_idte(gaddr, (pmd_t *)pmdp, 0, 0, IDTE_GLOBAL);
> +		__pmdp_idte(gaddr, pmdp, 0, 0, IDTE_GLOBAL);
>  	else
>  		__pmdp_csp(pmdp);
>  	*pmdp = new;
> @@ -2505,7 +2505,7 @@ static inline void thp_split_mm(struct mm_struct *mm)
>   * - This must be called after THP was enabled
>   */
>  static int __zap_zero_pages(pmd_t *pmd, unsigned long start,
> -			   unsigned long end, struct mm_walk *walk)
> +			    unsigned long end, struct mm_walk *walk)
>  {
>  	unsigned long addr;
>  
> diff --git a/arch/s390/mm/pgtable.c b/arch/s390/mm/pgtable.c
> index f2cc7da473e4..16d35b881a11 100644
> --- a/arch/s390/mm/pgtable.c
> +++ b/arch/s390/mm/pgtable.c
> @@ -723,7 +723,7 @@ void ptep_zap_key(struct mm_struct *mm, unsigned long addr, pte_t *ptep)
>   * Test and reset if a guest page is dirty
>   */
>  bool ptep_test_and_clear_uc(struct mm_struct *mm, unsigned long addr,
> -		       pte_t *ptep)
> +			    pte_t *ptep)
>  {
>  	pgste_t pgste;
>  	pte_t pte;
>
diff mbox series

Patch

diff --git a/arch/s390/mm/gmap.c b/arch/s390/mm/gmap.c
index 1e668b95e0c6..9ccd62cc7f37 100644
--- a/arch/s390/mm/gmap.c
+++ b/arch/s390/mm/gmap.c
@@ -5,7 +5,7 @@ 
  *    Copyright IBM Corp. 2007, 2016, 2018
  *    Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>
  *		 David Hildenbrand <david@redhat.com>
- *		 Janosch Frank <frankja@linux.vnet.ibm.com>
+ *		 Janosch Frank <frankja@linux.ibm.com>
  */
 
 #include <linux/kernel.h>
@@ -2285,10 +2285,10 @@  static void gmap_pmdp_xchg(struct gmap *gmap, pmd_t *pmdp, pmd_t new,
 	pmdp_notify_gmap(gmap, pmdp, gaddr);
 	pmd_val(new) &= ~_SEGMENT_ENTRY_GMAP_IN;
 	if (MACHINE_HAS_TLB_GUEST)
-		__pmdp_idte(gaddr, (pmd_t *)pmdp, IDTE_GUEST_ASCE, gmap->asce,
+		__pmdp_idte(gaddr, pmdp, IDTE_GUEST_ASCE, gmap->asce,
 			    IDTE_GLOBAL);
 	else if (MACHINE_HAS_IDTE)
-		__pmdp_idte(gaddr, (pmd_t *)pmdp, 0, 0, IDTE_GLOBAL);
+		__pmdp_idte(gaddr, pmdp, 0, 0, IDTE_GLOBAL);
 	else
 		__pmdp_csp(pmdp);
 	*pmdp = new;
@@ -2505,7 +2505,7 @@  static inline void thp_split_mm(struct mm_struct *mm)
  * - This must be called after THP was enabled
  */
 static int __zap_zero_pages(pmd_t *pmd, unsigned long start,
-			   unsigned long end, struct mm_walk *walk)
+			    unsigned long end, struct mm_walk *walk)
 {
 	unsigned long addr;
 
diff --git a/arch/s390/mm/pgtable.c b/arch/s390/mm/pgtable.c
index f2cc7da473e4..16d35b881a11 100644
--- a/arch/s390/mm/pgtable.c
+++ b/arch/s390/mm/pgtable.c
@@ -723,7 +723,7 @@  void ptep_zap_key(struct mm_struct *mm, unsigned long addr, pte_t *ptep)
  * Test and reset if a guest page is dirty
  */
 bool ptep_test_and_clear_uc(struct mm_struct *mm, unsigned long addr,
-		       pte_t *ptep)
+			    pte_t *ptep)
 {
 	pgste_t pgste;
 	pte_t pte;