lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <566D3507.9050204@emindsoft.com.cn>
Date:	Sun, 13 Dec 2015 17:06:15 +0800
From:	Chen Gang <chengang@...ndsoft.com.cn>
To:	arnd@...db.de, trivial@...nel.org
CC:	linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org,
	Chen Gang <gang.chen.5i5j@...il.com>, chenwei@...ndsoft.com.cn
Subject: [PATCH trivial] include/asm-generic/tlb.h: Notice about the coding
 style


Notice about 80 columns.

Notice about function parameter alignment.

Append 'UL' to hard code numbers which are related with the unsigned
long variables.

Signed-off-by: Chen Gang <gang.chen.5i5j@...il.com>
---
 include/asm-generic/tlb.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h
index 9dbb739..3fc72bd 100644
--- a/include/asm-generic/tlb.h
+++ b/include/asm-generic/tlb.h
@@ -111,10 +111,11 @@ struct mmu_gather {
 
 #define HAVE_GENERIC_MMU_GATHER
 
-void tlb_gather_mmu(struct mmu_gather *tlb, struct mm_struct *mm, unsigned long start, unsigned long end);
+void tlb_gather_mmu(struct mmu_gather *tlb, struct mm_struct *mm,
+		    unsigned long start, unsigned long end);
 void tlb_flush_mmu(struct mmu_gather *tlb);
 void tlb_finish_mmu(struct mmu_gather *tlb, unsigned long start,
-							unsigned long end);
+		    unsigned long end);
 int __tlb_remove_page(struct mmu_gather *tlb, struct page *page);
 
 /* tlb_remove_page
@@ -137,10 +138,10 @@ static inline void __tlb_adjust_range(struct mmu_gather *tlb,
 static inline void __tlb_reset_range(struct mmu_gather *tlb)
 {
 	if (tlb->fullmm) {
-		tlb->start = tlb->end = ~0;
+		tlb->start = tlb->end = ~0UL;
 	} else {
 		tlb->start = TASK_SIZE;
-		tlb->end = 0;
+		tlb->end = 0UL;
 	}
 }
 
-- 
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ