Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4244551rwb; Sun, 13 Nov 2022 01:54:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf7oQuQA6fWXrI4aiVzXRApRz/guy21lLZYig+Od+C0/Ro9WKNSQ1yZbvZzfJFozUYXfWGSx X-Received: by 2002:a05:6402:1c85:b0:458:c339:4229 with SMTP id cy5-20020a0564021c8500b00458c3394229mr7578593edb.393.1668333274707; Sun, 13 Nov 2022 01:54:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668333274; cv=none; d=google.com; s=arc-20160816; b=kAd5XB117RSsvl3xyLak/zcKWJnP5Zhf0HF8lOHLvB6mKz5FbXnT8SoKdaB6F02Ioq d7O0pbTr+jYbELQ7yJUj/lH7d5ZIPHh2Av4RAxH6jES02rNzlboncD1WBoemn4SEsrDy 4dqxOSprQk/PaaBkElkMZCDMb4n76unjT65WNpscg6/5vhcaMzwHH3Fa20zYboABNF1d LX1J2v4T4cUbDNs6NOKgDyn13nOo9EkiyemlozgpYpiibg7K6ft0jbp01dY6WAnIfard h/8iup8zxMprMZnsZl/Oc2F7e6ZnoO1GL56obRfVxRRPJxd0ocjztC8ytponek9i67xB v4FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date; bh=QpMyYy2ErlLMS3ojP4dUH1mPItohlt0elOLI0IWqaSg=; b=tkVrDzQlGQn/uyeZf2rBXHKz/ggynqTvQSSsEG0VlC6GQnZEb0Ymr1xyf9355L+EXC nrNzHpswvM2DBREG1Ytga/2G0SdrK5uqR34lb2NjfGJhqtd5JyHsg/g4bggBXG7e0fY4 1YaX6t1eo9aXyGvGXmh8JLKYgFrmH+6PK1Y8jWS3glMf84Esk3HOW501FwPy3cI4yaGK hl/dFEiBeK+4nJ5J83fNo5yJfgP6FMrnb8CTR79DE/4TJDHpQ+chdKc/K47vFSz2MBpu XnFwSfBLM9UgOxIKNy5yZU3y5gFqsWR8EVs7lT2RrwKtk319VnLAWASK2SE9feIpkRkP 5XIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jz3-20020a170906bb0300b00783df65ae5esi5512770ejb.683.2022.11.13.01.54.12; Sun, 13 Nov 2022 01:54:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235151AbiKMJSs (ORCPT + 90 others); Sun, 13 Nov 2022 04:18:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233543AbiKMJSr (ORCPT ); Sun, 13 Nov 2022 04:18:47 -0500 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4E7D312A8B for ; Sun, 13 Nov 2022 01:18:37 -0800 (PST) Received: by ajax-webmail-localhost.localdomain (Coremail) ; Sun, 13 Nov 2022 17:13:04 +0800 (GMT+08:00) X-Originating-IP: [182.148.14.167] Date: Sun, 13 Nov 2022 17:13:04 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: wangkailong@jari.cn To: mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, Julia.Lawall@inria.fr, joel@jms.id.au Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc/xmon: Fix array_size.cocci warning X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT6.0.1 build 20210329(c53f3fee) Copyright (c) 2002-2022 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <6432107b.12b.1847043884e.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwCXq+EhtXBjzBkDAA--.79W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAEB2FEYx0DfwALsu X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00,RCVD_IN_PBL,RDNS_NONE, T_SPF_HELO_PERMERROR,T_SPF_PERMERROR,XPRIO autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rml4IHRoZSBmb2xsb3dpbmcgY29jY2ljaGVjayB3YXJuaW5nOgoKYXJjaC9wb3dlcnBjL3htb24v cHBjLW9wYy5jOjk1Nzo2Ny02ODogV0FSTklORzogVXNlIEFSUkFZX1NJWkUKYXJjaC9wb3dlcnBj L3htb24vcHBjLW9wYy5jOjcyODA6MjQtMjU6IFdBUk5JTkc6IFVzZSBBUlJBWV9TSVpFCmFyY2gv cG93ZXJwYy94bW9uL3BwYy1vcGMuYzo2OTcyOjI1LTI2OiBXQVJOSU5HOiBVc2UgQVJSQVlfU0la RQphcmNoL3Bvd2VycGMveG1vbi9wcGMtb3BjLmM6NzIx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