* Re: Typo in include/linux/mmzone.h [not found] <e5bfff550601071354k2c86afcs62d1526a3a1487cd@mail.gmail.com> @ 2006-01-08 3:03 ` kernel 2006-01-08 12:00 ` Jan Engelhardt 0 siblings, 1 reply; 2+ messages in thread From: kernel @ 2006-01-08 3:03 UTC (permalink / raw) To: Marco Costalba; +Cc: linux-kernel On Sunday 08 January 2006 08:54, Marco Costalba wrote: > Hi, > > probably there is a typo in your last patch: > [PATCH] mm: add populated_zone() helper > > In > > +++ b/include/linux/mmzone.h > @@ -388,6 +388,11 @@ static inline struct zone *next_zone(str > #define for_each_zone(zone) \ > for (zone = pgdat_list->node_zones; zone; zone = next_zone(zone)) > > +static inline int populated_zone(struct zone *zone) > +{ > + return (!!zone->present_pages); > +} > + No typo there at all. !! guarantees return of 1. Cheers, Con ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Typo in include/linux/mmzone.h 2006-01-08 3:03 ` Typo in include/linux/mmzone.h kernel @ 2006-01-08 12:00 ` Jan Engelhardt 0 siblings, 0 replies; 2+ messages in thread From: Jan Engelhardt @ 2006-01-08 12:00 UTC (permalink / raw) To: kernel; +Cc: Marco Costalba, linux-kernel >> >> +static inline int populated_zone(struct zone *zone) >> +{ >> + return (!!zone->present_pages); >> +} >> + > >No typo there at all. !! guarantees return of 1. > But we do not need the parentheses around it. Jan Engelhardt -- | Alphagate Systems, http://alphagate.hopto.org/ | jengelh's site, http://jengelh.hopto.org/ ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-08 12:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <e5bfff550601071354k2c86afcs62d1526a3a1487cd@mail.gmail.com>
2006-01-08 3:03 ` Typo in include/linux/mmzone.h kernel
2006-01-08 12:00 ` Jan Engelhardt
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox