Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp947140rwl; Thu, 10 Aug 2023 04:20:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4WCOsCzVP3NJCRCX0wJcbOCdIQjpSUkH/DLbKbf1toH8DiSDUun4jtyiUzgQt1E154PSS X-Received: by 2002:a17:90a:a793:b0:268:b64b:f684 with SMTP id f19-20020a17090aa79300b00268b64bf684mr1863608pjq.33.1691666411300; Thu, 10 Aug 2023 04:20:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691666411; cv=none; d=google.com; s=arc-20160816; b=gB2nSp16Gq4B0RWtqpuiG4H/0CXgIkJEiGgRWf7cx9oQMvKO9rgG0yoCg90QsasHGV GgUBHNW+/+Uhd8kuVZuG9uxMs3W5WW9grsXWpX3b8afeeiUWNVZWdEOKgTXBZ99Lakcv jqO+FLdMQduy1BCFv84X5dJePE8J73+FKEPcAJHnAUX8upII9j3n7FnW8AikC8CrQa/I X9g4v0B2nWA83uDA5vF80n5bIMojCDYM4PNoJed0LU1IXUseFz/Yp2EbS/7KuiifsObI L0MjeyHizd8cfIcwECm4fZOzu8ksHQ3AujKSAj5r8nlFWZD1W9U/AaD1C296W/cAQ5Gu kUhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=s08cxhY4o0sFxBf1wApMpSdM13IK7EgbJLSajHZa8sU=; fh=nCGcgiVIx5ymNCRXryiWS0yd4AnK48PR3co9BG1Ngb8=; b=u0wPqK0AKZumIQlwwuOYFJcxX+ZOhDXyLjJI0AUV+S+fIl+MaxJpOFWvWgX7bl8JbI kXLlZS2zddVu+N/GL8lYHWo9Rj+M2e54rTEvljS4X5My7k+JI31JBcZdYgeA/8bwEy1g 2n9aOf0eWvaavfN5V0IV+Z6UHniZnwoGQoCa2n7d75TXv2Drgh4vHSqbUxV5XsyOOJZV bRQ4hWkDgfNPTQFRVNRFojPOL0hrPH+/LtYvYGee3AE10LXTNcmSmPtYMi1ZkOepcCjU hdO+SSiT5KiXzXQjt/Q/OnG59W73hF6y/sneprRqqxxVw3o7ejxsYrR8AdWhj6E6Igpd AmbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=pMxkK5Lh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q24-20020a17090aa01800b00268030516b6si911353pjp.101.2023.08.10.04.19.59; Thu, 10 Aug 2023 04:20:11 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=pMxkK5Lh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234851AbjHJJyq (ORCPT + 99 others); Thu, 10 Aug 2023 05:54:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230304AbjHJJyo (ORCPT ); Thu, 10 Aug 2023 05:54:44 -0400 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 911FAE7F; Thu, 10 Aug 2023 02:54:43 -0700 (PDT) Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6bc886d1504so717833a34.0; Thu, 10 Aug 2023 02:54:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691661283; x=1692266083; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=s08cxhY4o0sFxBf1wApMpSdM13IK7EgbJLSajHZa8sU=; b=pMxkK5LhQ+eDirbFO29SE5NE8y6Ih5PfEZQac3XOWvGgguRy84cXDgW69Tq4hN8Wkr qH8ZW0c8Rha0l3fZ326HVZNOfLngbhbHEysMk7RRDJhhnitHb1G23h1+wKaQrLazVBLa J7Z4KXq8CP18S/5+XS2syMdTaYpcb5JOldI/jJVyJC9xSJJKRc973s6oxes1E8YkR3Mj M7LP6QkWPD8KGUoS30IsdkHL7f9luPL3kTeAulczfWVkcQZYJrYwRsqmMCVqPVW/HVw0 9ukVxxGepAGA23opUWMUi1/gGT7eObUvDkh7kNF7oYu30mNiQrwhNl3OfOcpG2WkW8K0 AayQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691661283; x=1692266083; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=s08cxhY4o0sFxBf1wApMpSdM13IK7EgbJLSajHZa8sU=; b=IoUUNxyQFjE7WGoTp3ZHZLU9LlzYuBZXQ7H5xFzdXt9VmbJq3OQdVUZge4ffRZIfoi MNPeRNeC0M0W6ECYCn7FCp1MSTWnPKmjsnD9JsjzjhbSkIKRA6gytJO5MiLCtr1vKVBD kjhyCrknu/ko/lhCg0iRKbon3TxEiKFL7c7WcktYqDXHqhGMWsSvQbZGWkE/i/X276zU Q48MuIBq3lfxfbH69uHJDt2IpcJr33gl9kyW/Dolg8wgmVBu1fDlJAdmWPEpNJSfncTt QL6E5VU89mEqUMsYjtR8kAWKhC/JXflirIV4Xxv8FK/0GmSyT5dyAJ2V4RycJmKyCuRP WbXQ== X-Gm-Message-State: AOJu0YxnX+tgaEK+tlHutDNjJFVxRJB+niGWh/rkDJ07q3Zxk00YG7Tb ed1kWzWqxTwFVb0EQSiYG9GJZsumyXzGEreAD8dzkPQC8Mo= X-Received: by 2002:a05:6870:524c:b0:1a6:cba1:7cce with SMTP id o12-20020a056870524c00b001a6cba17ccemr2749488oai.32.1691661282828; Thu, 10 Aug 2023 02:54:42 -0700 (PDT) MIME-Version: 1.0 References: <20230809171245.92081-1-coolrrsh@gmail.com> In-Reply-To: <20230809171245.92081-1-coolrrsh@gmail.com> From: Andy Shevchenko Date: Thu, 10 Aug 2023 12:54:06 +0300 Message-ID: Subject: Re: [PATCH] gpio: gpio-imx-scu: Use ARRAY_SIZE for array length To: coolrrsh@gmail.com Cc: linus.walleij@linaro.org, brgl@bgdev.pl, andy@kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 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 On Wed, Aug 9, 2023 at 8:12=E2=80=AFPM wrote: > > From: Rajeshwar R Shinde > > Use of macro ARRAY_SIZE to calculate array size minimizes > the redundant code and improves code reusability. > This fixes warnings reported by Coccinelle: > drivers/gpio/gpio-imx-scu.c:106:32-33: WARNING: Use ARRAY_SIZE Can you test your changes, please? We don't want just mechanical (scripted) conversion with obviously wrong results. NAK. --=20 With Best Regards, Andy Shevchenko