Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1524773
| From | James Simmons <jsimmons@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 18/19] staging: lustre: lnet: use BIT macro in LNet selftest |
| Date | 2016-11-17 20:50 +0100 |
| Message-ID | <sEAR4-4ZO-9@gated-at.bofh.it> (permalink) |
| References | <sEAHn-4VW-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Some of the defines for lnet selftest can use the BIT macros. Signed-off-by: James Simmons <jsimmons@infradead.org> --- drivers/staging/lustre/lnet/selftest/timer.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lnet/selftest/timer.c b/drivers/staging/lustre/lnet/selftest/timer.c index a4b723b..2fe692d 100644 --- a/drivers/staging/lustre/lnet/selftest/timer.c +++ b/drivers/staging/lustre/lnet/selftest/timer.c @@ -46,9 +46,9 @@ * to cover a time period of 1024 seconds into the future before wrapping. */ #define STTIMER_MINPOLL 3 /* log2 min poll interval (8 s) */ -#define STTIMER_SLOTTIME (1 << STTIMER_MINPOLL) +#define STTIMER_SLOTTIME BIT(STTIMER_MINPOLL) #define STTIMER_SLOTTIMEMASK (~(STTIMER_SLOTTIME - 1)) -#define STTIMER_NSLOTS (1 << 7) +#define STTIMER_NSLOTS BIT(7) #define STTIMER_SLOT(t) (&stt_data.stt_hash[(((t) >> STTIMER_MINPOLL) & \ (STTIMER_NSLOTS - 1))]) -- 1.7.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/19] LNet/libcfs checkpatch and style cleanups James Simmons <jsimmons@infradead.org> - 2016-11-17 20:40 +0100
[PATCH 10/19] staging: lustre: lnet: replace uninitialized_var James Simmons <jsimmons@infradead.org> - 2016-11-17 20:40 +0100
[PATCH 01/19] staging: lustre: lnet: don't use bare unsigned James Simmons <jsimmons@infradead.org> - 2016-11-17 20:40 +0100
[PATCH 06/19] staging: lustre: lnet: fix misspelled word destroy James Simmons <jsimmons@infradead.org> - 2016-11-17 20:40 +0100
[PATCH 14/19] staging: lustre: libcfs: fix misspelling of descriptor James Simmons <jsimmons@infradead.org> - 2016-11-17 20:40 +0100
[PATCH 09/19] staging: lustre: lnet: fill in real lnet_md_t James Simmons <jsimmons@infradead.org> - 2016-11-17 20:40 +0100
[PATCH 13/19] staging: lustre: libcfs: white space cleanup James Simmons <jsimmons@infradead.org> - 2016-11-17 20:40 +0100
[PATCH 18/19] staging: lustre: lnet: use BIT macro in LNet selftest James Simmons <jsimmons@infradead.org> - 2016-11-17 20:50 +0100
[PATCH 12/19] staging: lustre: libcfs: remove == 0 testing James Simmons <jsimmons@infradead.org> - 2016-11-17 20:50 +0100
Re: [PATCH 12/19] staging: lustre: libcfs: remove == 0 testing Dan Carpenter <dan.carpenter@oracle.com> - 2016-11-18 12:20 +0100
Re: [PATCH 12/19] staging: lustre: libcfs: remove == 0 testing James Simmons <jsimmons@infradead.org> - 2016-11-18 17:50 +0100
[PATCH 17/19] staging: lustre: libcfs: remove use of __u* types James Simmons <jsimmons@infradead.org> - 2016-11-17 20:50 +0100
[PATCH 04/19] staging: lustre: libcfs: remove explicit test of NULL variable James Simmons <jsimmons@infradead.org> - 2016-11-17 20:50 +0100
[PATCH 19/19] staging: lustre: lnet: cleanup some of the > 80 line issues James Simmons <jsimmons@infradead.org> - 2016-11-17 20:50 +0100
[PATCH 02/19] staging: lustre: lnet: resolve trailing */ errors James Simmons <jsimmons@infradead.org> - 2016-11-17 20:50 +0100
csiph-web