All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Akira Yokosawa <akiyks@gmail.com>
Cc: perfbook@vger.kernel.org
Subject: Re: [RFC PATCH 0/4] CodeSamples: Cleanups and fixes
Date: Mon, 29 May 2017 17:02:55 -0700	[thread overview]
Message-ID: <20170530000255.GQ3956@linux.vnet.ibm.com> (raw)
In-Reply-To: <f9df1cc9-32af-951c-1f89-b89331c9dce9@gmail.com>

On Tue, May 30, 2017 at 07:13:23AM +0900, Akira Yokosawa wrote:
> >From fd5fb9afb6b99b15370a9823b42fa2a92342b92a Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiyks@gmail.com>
> Date: Tue, 30 May 2017 06:52:40 +0900
> Subject: [RFC PATCH 0/4] CodeSamples: Cleanups and fixes
> 
> Hi Paul,
> 
> While I was looking around CodeSamples, I encountered several
> warnings in build and an infinite loop in one of sample codes.
> Also, I found that CodeSamples/api.h and CodeSamples/Makefile.arch
> can be removed from repository if their recipe are properly
> written in Makefiles.
> 
> Patch 1 adds rules to generate Makefile.arch and api.h that
> suit the architecture of you host. As I don't have ppc64 or
> arm host environment, I tested it only on x86_32 and x86_64.
> I'd like to know if it works on ppc64 and arm.
> 
> Patch 2 removes the redundant files.

I took the first two, and it is nice to just be able to type "make"
in the CodeSamples directory!  ;-)

> Patch 3 and 4 are fixes of warnings and infinite loops.

I have some concerns here, and will reply to the patches.

								Thanx, Paul

> Thoughts?
> 
>                  Thanks, Akira
> -- 
> Akira Yokosawa (4):
>   CodeSamples: Add rule to generate Makefile.arch and api.h
>   CodeSamples: Remove generated files from repository
>   CodeSamples: Use 'intptr_t' to be compatible with 'void *'
>   CodeSamples/defer: Add compiler barriers in gettimestampmp.c
> 
>  CodeSamples/.gitignore                         |   4 +-
>  CodeSamples/Makefile                           |  18 +
>  CodeSamples/Makefile.arch                      |   6 -
>  CodeSamples/SMPdesign/Makefile                 |   3 +
>  CodeSamples/SMPdesign/matmul.c                 |  13 +-
>  CodeSamples/SMPdesign/smpalloc.c               |  11 +-
>  CodeSamples/advsync/Makefile                   |   3 +
>  CodeSamples/api.h                              | 808 -------------------------
>  CodeSamples/count/Makefile                     |   3 +
>  CodeSamples/datastruct/Issaquah/Makefile       |   3 +
>  CodeSamples/datastruct/Issaquah/existence_test | Bin 26359 -> 0 bytes
>  CodeSamples/datastruct/hash/Makefile           |   3 +
>  CodeSamples/datastruct/log/Makefile            |   3 +
>  CodeSamples/datastruct/skiplist/Makefile       |   3 +
>  CodeSamples/defer/Makefile                     |   3 +
>  CodeSamples/defer/gettimestampmp.c             |   5 +-
>  CodeSamples/depends.mk                         |  43 ++
>  CodeSamples/intro/Makefile                     |   3 +
>  CodeSamples/intro/threadcreate.c               |   7 +-
>  CodeSamples/locking/Makefile                   |   3 +
>  CodeSamples/toolsoftrade/Makefile              |   3 +
>  21 files changed, 117 insertions(+), 831 deletions(-)
>  delete mode 100644 CodeSamples/Makefile.arch
>  delete mode 100644 CodeSamples/api.h
>  delete mode 100755 CodeSamples/datastruct/Issaquah/existence_test
>  create mode 100644 CodeSamples/depends.mk
> 
> -- 
> 2.7.4
> 


  parent reply	other threads:[~2017-05-30  0:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-29 22:13 [RFC PATCH 0/4] CodeSamples: Cleanups and fixes Akira Yokosawa
2017-05-29 22:14 ` [RFC PATCH 1/4] CodeSamples: Add rule to generate Makefile.arch and api.h Akira Yokosawa
2017-05-29 22:16 ` [RFC PATCH 2/4] CodeSamples: Remove generated files from repository Akira Yokosawa
2017-05-29 22:17 ` [RFC PATCH 3/4] CodeSamples: Use 'intptr_t' to be compatible with 'void *' Akira Yokosawa
2017-05-30  0:10   ` Paul E. McKenney
2017-05-29 22:18 ` [RFC PATCH 4/4] CodeSamples/defer: Add compiler barriers in gettimestampmp.c Akira Yokosawa
2017-05-30  0:12   ` Paul E. McKenney
2017-05-30  0:02 ` Paul E. McKenney [this message]
2017-05-30  1:44   ` [RFC PATCH 0/4] CodeSamples: Cleanups and fixes Akira Yokosawa
2017-05-30 12:05 ` [RFC PATCH v2 0/2] " Akira Yokosawa
2017-05-30 12:06   ` [RFC PATCH v2 1/2] CodeSamples: Use 'intptr_t' to be compatible with 'void *' Akira Yokosawa
2017-05-30 12:07   ` [RFC PATCH v2 2/2] CodeSamples/defer: Add compiler barriers in gettimestampmp.c Akira Yokosawa
2017-05-31 18:46   ` [RFC PATCH v2 0/2] CodeSamples: Cleanups and fixes Paul E. McKenney
2017-05-31 21:19     ` Akira Yokosawa
2017-06-01  0:05       ` Paul E. McKenney
2017-06-01  1:45     ` Junchang Wang
2017-06-01  4:19       ` Paul E. McKenney
2017-06-01  4:34         ` Junchang Wang

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=20170530000255.GQ3956@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=akiyks@gmail.com \
    --cc=perfbook@vger.kernel.org \
    /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.