From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752413AbeAJVvq (ORCPT + 1 other); Wed, 10 Jan 2018 16:51:46 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:60130 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751975AbeAJVvo (ORCPT ); Wed, 10 Jan 2018 16:51:44 -0500 To: Colin King Cc: Anil Gurumurthy , Sudarsana Kalluru , "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: bfa: use ARRAY_SIZE for array sizing calculation on array __pciids From: "Martin K. Petersen" Organization: Oracle Corporation References: <20180107231510.7755-1-colin.king@canonical.com> Date: Wed, 10 Jan 2018 16:51:33 -0500 In-Reply-To: <20180107231510.7755-1-colin.king@canonical.com> (Colin King's message of "Sun, 7 Jan 2018 23:15:10 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8770 signatures=668652 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=708 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1801100298 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Colin, > Use the ARRAY_SIZE macro on array __pciids to determine size of the array. > Improvement suggested by coccinelle. Applied to 4.16/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering