All of lore.kernel.org
 help / color / mirror / Atom feed
From: Caspar Zhang <caspar@casparzhang.com>
To: Zhouping Liu <zliu@redhat.com>
Cc: LTP list <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] [PATCH] numa/numa_node_size: removed HAS_NUMA_H macro
Date: Mon, 05 Mar 2012 16:01:27 +0800	[thread overview]
Message-ID: <4F5472D7.20109@casparzhang.com> (raw)
In-Reply-To: <76754072b02d384e53bff8c46b248377fb38c71c.1330687921.git.zliu@redhat.com>

On 03/02/2012 07:32 PM, Zhouping Liu wrote:
> HAS_NUMA_H should be HAVE_NUMA_H, and HAVE_NUMA_H is defined
> in config.h, so added the header file.
> 
> Signed-off-by: Zhouping Liu <zliu@redhat.com>
> ---
>  testcases/kernel/numa/numa_node_size.c |   11 +++++++----
>  1 files changed, 7 insertions(+), 4 deletions(-)
> 
> diff --git a/testcases/kernel/numa/numa_node_size.c b/testcases/kernel/numa/numa_node_size.c
> index 3d71ff2..5992f56 100644
> --- a/testcases/kernel/numa/numa_node_size.c
> +++ b/testcases/kernel/numa/numa_node_size.c
> @@ -31,9 +31,12 @@
>  /*                                                                            */
>  /******************************************************************************/
>  
> +#include "config.h"
> +

no need to put a new line here ...

>  #include <stdio.h>
>  #include <stdlib.h>
> -#if HAS_NUMA_H
> +

here as well.

Anyway, I committed this patch with removing the 2 blank lines.

Thanks,
Caspar

> +#if HAVE_NUMA_H
>  #include <numa.h>
>  #endif
>  
> @@ -48,7 +51,7 @@ char *fmt_mem(unsigned long long mem, char *buf)
>  }
>  void hardware(void)
>  {
> -#if HAS_NUMA_H
> +#if HAVE_NUMA_H
>          int i;
>          int maxnode = numa_max_node();
>          printf("available: %d nodes (0-%d)\n", 1+maxnode, maxnode);
> @@ -64,7 +67,7 @@ void hardware(void)
>  }
>  int main()
>  {
> -#if HAS_NUMA_H
> +#if HAVE_NUMA_H
>          nodemask_t nodemask;
>          void hardware();
>          if (numa_available() < 0)
> @@ -83,4 +86,4 @@ int main()
>          printf("NUMA is not available\n");
>          return 1;
>  #endif
> -}
> \ No newline at end of file
> +}


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

           reply	other threads:[~2012-03-05  8:02 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <76754072b02d384e53bff8c46b248377fb38c71c.1330687921.git.zliu@redhat.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F5472D7.20109@casparzhang.com \
    --to=caspar@casparzhang.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=zliu@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.