Skip to content

Commit 2d0004d

Browse files
keessuryasaimadhu
authored andcommitted
x86/mm: Remove redundant address-of operators on addresses
The &s on addresses are redundant. Remove them to match all the other similar functions. Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: Michael Ellerman <[email protected]> Cc: Michal Simek <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rick Edgecombe <[email protected]> Cc: Segher Boessenkool <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Will Deacon <[email protected]> Cc: x86-ml <[email protected]> Cc: Yoshinori Sato <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 94174c9 commit 2d0004d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/x86/mm/init_64.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,9 +1300,9 @@ void mark_rodata_ro(void)
13001300
{
13011301
unsigned long start = PFN_ALIGN(_text);
13021302
unsigned long rodata_start = PFN_ALIGN(__start_rodata);
1303-
unsigned long end = (unsigned long) &__end_rodata_hpage_align;
1304-
unsigned long text_end = PFN_ALIGN(&_etext);
1305-
unsigned long rodata_end = PFN_ALIGN(&__end_rodata);
1303+
unsigned long end = (unsigned long)__end_rodata_hpage_align;
1304+
unsigned long text_end = PFN_ALIGN(_etext);
1305+
unsigned long rodata_end = PFN_ALIGN(__end_rodata);
13061306
unsigned long all_end;
13071307

13081308
printk(KERN_INFO "Write protecting the kernel read-only data: %luk\n",

0 commit comments

Comments
 (0)