Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1485800 > unrolled thread

Re: [PATCH 3/5] u64_stats: Introduce IRQs disabled helpers

Started byFrederic Weisbecker <fweisbec@gmail.com>
First post2016-09-18 15:40 +0200
Last post2016-09-18 15:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 3/5] u64_stats: Introduce IRQs disabled helpers Frederic Weisbecker <fweisbec@gmail.com> - 2016-09-18 15:40 +0200

#1485800 — Re: [PATCH 3/5] u64_stats: Introduce IRQs disabled helpers

FromFrederic Weisbecker <fweisbec@gmail.com>
Date2016-09-18 15:40 +0200
SubjectRe: [PATCH 3/5] u64_stats: Introduce IRQs disabled helpers
Message-ID<siKu5-f7-17@gated-at.bofh.it>
On Fri, Sep 02, 2016 at 04:35:54PM +0200, Paolo Bonzini wrote:
> 
> 
> On 02/09/2016 16:03, Frederic Weisbecker wrote:
> >  static inline unsigned int u64_stats_fetch_begin(const struct u64_stats_sync *syncp)
> >  {
> > -#if BITS_PER_LONG==32 && defined(CONFIG_SMP)
> > -	return read_seqcount_begin(&syncp->seq);
> > -#else
> > -#if BITS_PER_LONG==32
> > +#if BITS_PER_LONG==32 && !defined(CONFIG_SMP)
> >  	preempt_disable();
> > +#else
> 
> This should be #endif, or this side ends without a "return" statement.

Good catch!

Thanks Paolo!

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web