linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: Jason Wang <wangborong@cdjrlc.com>
Cc: paulus@samba.org, linuxppc-dev@lists.ozlabs.org,
	Jason Wang <wangborong@cdjrlc.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] powerpc/xmon: use ARRAY_SIZE
Date: Wed, 28 Jul 2021 13:01:44 +1000	[thread overview]
Message-ID: <87bl6n16qv.fsf@mpe.ellerman.id.au> (raw)
In-Reply-To: <20210725150107.27865-1-wangborong@cdjrlc.com>

Jason Wang <wangborong@cdjrlc.com> writes:
> The ARRAY_SIZE is the macro definition of sizeof(a)/sizeof(a[0]) and
> it is more compact and formal to get a array size.
>
> Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
> ---
>  arch/powerpc/xmon/ppc-opc.c | 12 ++++--------
>  1 file changed, 4 insertions(+), 8 deletions(-)

This code is copied from binutils, please don't change it unnecessarily.

cheers

  reply	other threads:[~2021-07-28  3:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-25 15:01 [PATCH] powerpc/xmon: use ARRAY_SIZE Jason Wang
2021-07-28  3:01 ` Michael Ellerman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-07-01 12:24 [PATCH] powerpc/xmon: Use ARRAY_SIZE Jason 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=87bl6n16qv.fsf@mpe.ellerman.id.au \
    --to=mpe@ellerman.id.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=paulus@samba.org \
    --cc=wangborong@cdjrlc.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).