Robert P. J. Day wrote: > or you could take advantage of the macros in kernel.h and write that > as: > > +#define DMA_BIT_MASK(n) (((n) == 64) ? ULLONG_MAX : ((1ULL<<(n))-1)) > But that's a more indirect way of expressing "I want all 1's". J - 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/
- Follow-Ups:
- Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1
- From: Borislav Petkov <[email protected]>
- Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1
- References:
- Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1
- From: Andrew Morton <[email protected]>
- Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1
- From: Jeremy Fitzhardinge <[email protected]>
- Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1
- From: Andrew Morton <[email protected]>
- Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1
- From: "Robert P. J. Day" <[email protected]>
- Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1
- Prev by Date: Re: e1000e oops, sysfs related?
- Next by Date: Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1
- Previous by thread: Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1
- Next by thread: Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1
- Index(es):