diff for duplicates of <5B72AEDB.70505@huawei.com> diff --git a/a/1.txt b/N1/1.txt index 635873c..47f1f31 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -35,7 +35,8 @@ zhong jiang >> {"fcfidu.", XRC(63,974,1), XRA_MASK, POWER7|PPCA2, PPCVLE, {FRT, FRB}}, >> }; >> ->> -const int powerpc_num_opcodes >> - sizeof (powerpc_opcodes) / sizeof (powerpc_opcodes[0]); +>> -const int powerpc_num_opcodes = +>> - sizeof (powerpc_opcodes) / sizeof (powerpc_opcodes[0]); >> +const int powerpc_num_opcodes = ARRAY_SIZE(powerpc_opcodes); >> \f >> /* The VLE opcode table. @@ -44,7 +45,8 @@ zhong jiang >> {"se_bl", BD8(58,0,1), BD8_MASK, PPCVLE, 0, {B8}}, >> }; >> ->> -const int vle_num_opcodes >> - sizeof (vle_opcodes) / sizeof (vle_opcodes[0]); +>> -const int vle_num_opcodes = +>> - sizeof (vle_opcodes) / sizeof (vle_opcodes[0]); >> +const int vle_num_opcodes = ARRAY_SIZE(vle_opcodes); >> \f >> /* The macro table. This is only used by the assembler. */ @@ -53,7 +55,8 @@ zhong jiang >> {"e_clrlslwi",4, PPCVLE, "e_rlwinm %0,%1,%3,(%2)-(%3),31-(%3)"}, >> }; >> ->> -const int powerpc_num_macros >> - sizeof (powerpc_macros) / sizeof (powerpc_macros[0]); +>> -const int powerpc_num_macros = +>> - sizeof (powerpc_macros) / sizeof (powerpc_macros[0]); >> +const int powerpc_num_macros = ARRAY_SIZE(powerpc_macros); >> -- >> 1.7.12.4 diff --git a/a/content_digest b/N1/content_digest index d3ff4ff..e29e47f 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -3,20 +3,20 @@ "ref\0874lfxjnzl.fsf@concordia.ellerman.id.au\0" "From\0zhong jiang <zhongjiang@huawei.com>\0" "Subject\0Re: [PATCH 2/2] powerpc: Use ARRAY_SIZE to replace its implementation\0" - "Date\0Tue, 14 Aug 2018 10:28:43 +0000\0" + "Date\0Tue, 14 Aug 2018 18:28:43 +0800\0" "To\0Michael Ellerman <mpe@ellerman.id.au>\0" - "Cc\0tony.luck@intel.com" - fenghua.yu@intel.com - benh@kernel.crashing.org - paulus@samba.org - oleg@redhat.com - rppt@linux.vnet.ibm.com - dhowells@redhat.com - akpm@linux-foundation.org - viro@zeniv.linux.org.uk - linux-ia64@vger.kernel.org - linux-kernel@vger.kernel.org - " linuxppc-dev@lists.ozlabs.org\0" + "Cc\0<tony.luck@intel.com>" + <fenghua.yu@intel.com> + <benh@kernel.crashing.org> + <paulus@samba.org> + <oleg@redhat.com> + <rppt@linux.vnet.ibm.com> + <dhowells@redhat.com> + <akpm@linux-foundation.org> + <viro@zeniv.linux.org.uk> + <linux-ia64@vger.kernel.org> + <linux-kernel@vger.kernel.org> + " <linuxppc-dev@lists.ozlabs.org>\0" "\00:1\0" "b\0" "On 2018/8/14 17:28, Michael Ellerman wrote:\n" @@ -56,7 +56,8 @@ ">> {\"fcfidu.\",\tXRC(63,974,1),\tXRA_MASK, POWER7|PPCA2,\tPPCVLE,\t\t{FRT, FRB}},\n" ">> };\n" ">> \n" - ">> -const int powerpc_num_opcodes >> - sizeof (powerpc_opcodes) / sizeof (powerpc_opcodes[0]);\n" + ">> -const int powerpc_num_opcodes =\n" + ">> - sizeof (powerpc_opcodes) / sizeof (powerpc_opcodes[0]);\n" ">> +const int powerpc_num_opcodes = ARRAY_SIZE(powerpc_opcodes);\n" ">> \f\n" ">> /* The VLE opcode table.\n" @@ -65,7 +66,8 @@ ">> {\"se_bl\",\tBD8(58,0,1),\tBD8_MASK,\tPPCVLE,\t0,\t\t{B8}},\n" ">> };\n" ">> \n" - ">> -const int vle_num_opcodes >> - sizeof (vle_opcodes) / sizeof (vle_opcodes[0]);\n" + ">> -const int vle_num_opcodes =\n" + ">> - sizeof (vle_opcodes) / sizeof (vle_opcodes[0]);\n" ">> +const int vle_num_opcodes = ARRAY_SIZE(vle_opcodes);\n" ">> \f\n" ">> /* The macro table. This is only used by the assembler. */\n" @@ -74,11 +76,12 @@ ">> {\"e_clrlslwi\",4, PPCVLE, \"e_rlwinm %0,%1,%3,(%2)-(%3),31-(%3)\"},\n" ">> };\n" ">> \n" - ">> -const int powerpc_num_macros >> - sizeof (powerpc_macros) / sizeof (powerpc_macros[0]);\n" + ">> -const int powerpc_num_macros =\n" + ">> - sizeof (powerpc_macros) / sizeof (powerpc_macros[0]);\n" ">> +const int powerpc_num_macros = ARRAY_SIZE(powerpc_macros);\n" ">> -- \n" ">> 1.7.12.4\n" "> .\n" > -f53665664a525e40988ae61c4b9ca910db54113389e09a7ce9e39f75b7485b84 +afa3d4196326f7544e4ef916fd9a8e03935404119b47f7e509bbd8a2bd6111a2
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.