Re: [PATCH 5/4] x86: fix up asm-x86/pgtable*.h formatting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 10, 2007 at 12:55:33PM -0800, Jeremy Fitzhardinge wrote:
> +#define set_pte_atomic(pteptr, pteval)		set_pte(pteptr,pteval)
> +#define set_pte_present(mm,addr,ptep,pteval)	set_pte_at(mm,addr,ptep,pteval)
>  
> +#define pte_clear(mm,addr,xp)				\
> +	do {						\
> +		set_pte_at(mm, addr, xp, __pte(0));	\
> +	} while (0)
> +
>  #undef pmd_clear
> +#define pmd_clear(xp)				\
> +	do {					\
> +		set_pmd(xp, __pmd(0));		\
> +	} while (0)

What about turning these into inline functions to get better type
checking?

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux