[PATCH] [x86_64] Add missing () around arguments of pte_index macro

From: Kirill Korotaev (dev_at_sw.ru)
Date: 09/30/05

  • Next message: Ravikiran G Thirumalai: "Re: 2.6.14-rc1-git-now still dying in mm/slab - this time line 1849"
    Date:	Fri, 30 Sep 2005 10:32:19 +0400
    To: Linus Torvalds <torvalds@osdl.org>, linux-kernel@vger.kernel.org
    
    
    

    x86-64: Add missing () around arguments of pte_index macro

    Signed-Off-By: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
    Signed-Off-By: Kirill Korotaev <dev@sw.ru>

    Kirill

    
    

    c45adb520392fc82ffd647c8c9ba57bbf89c7ca2
    diff --git a/include/asm-x86_64/pgtable.h b/include/asm-x86_64/pgtable.h
    --- a/include/asm-x86_64/pgtable.h
    +++ b/include/asm-x86_64/pgtable.h
    @@ -384,7 +384,7 @@ extern inline pte_t pte_modify(pte_t pte
     }
     
     #define pte_index(address) \
    - ((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
    + (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
     #define pte_offset_kernel(dir, address) ((pte_t *) pmd_page_kernel(*(dir)) + \
                             pte_index(address))
     

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Ravikiran G Thirumalai: "Re: 2.6.14-rc1-git-now still dying in mm/slab - this time line 1849"

    Relevant Pages

    • [UHCI] weird macro in "uhci_hub_control"
      ... I'm surely missing obvious thing but I can't get an answer. ... This macro set up "len" local, ... Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: oops when copying from IDE CD
      ... | I haven't got any experience in reporting kernel panics, ... It's missing a good bit ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • libata and RAID
      ... SCSI device sda: 156301488 512-byte hdwr sectors ... Missing /sys/block/md0 means no /dev/md0 will get created. ... Do you Yahoo!? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC] add kobject to struct module
      ... > - Are we opening the floodgates for another round of races and driver ... If you set the "perm" portion of the module_parammacro to 0, ... perm sets the visibility in driverfs: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.10-rc2-mm3, reiser4 and subversion
      ... > second time, the system totaly freezes and i am unable to anything, only ... # This is a BitKeeper generated diff -Nru style patch. ... missing calls to txn_restartare added ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)