Re: Typo in include/linux/mmzone.h



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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [PATCH] prom_find_machine_type typo breaks pSeries lpar boot
    ... result code handling in prom_init" prevents pSeries LPAR systems from ... Same typo has creped in again from 2.6.17 kernel onwards and causing open firmware exception in pSeries systems. ... The patch that is provided solves the problem. ...
    (Linux-Kernel)
  • Re: Security patches and -p#
    ... and it may just be a typo. ... > I recently updated a bunch of servers to patch the arp problem recently ... generally have solved the security holes addressed by the advisories ... That's basically because the patch files supplied with security ...
    (freebsd-questions)
  • Re: [PATCH] rio: typo in bitwise AND expression.
    ... Subject: [PATCH] rio: typo in bitwise AND expression. ... Obvious fix is to change! ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: [PATCH] prom_find_machine_type typo breaks pSeries lpar boot
    ... result code handling in prom_init" prevents pSeries LPAR systems from ... Same typo has creped in again from 2.6.17 kernel onwards and causing ... Can you forward the patch? ...
    (Linux-Kernel)
  • Re: [PATCH] rio: typo in bitwise AND expression.
    ... Subject: [PATCH] rio: typo in bitwise AND expression. ... Obvious fix is to change! ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)