From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752070AbeENTYp (ORCPT ); Mon, 14 May 2018 15:24:45 -0400 Received: from mx2.suse.de ([195.135.220.15]:53796 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750760AbeENTYo (ORCPT ); Mon, 14 May 2018 15:24:44 -0400 Date: Mon, 14 May 2018 21:24:40 +0200 Message-ID: From: Takashi Iwai To: kbuild test robot Cc: Connor McAdams , kbuild-all@01.org, alsa-devel@alsa-project.org, Takashi Sakamoto , Jaroslav Kysela , =?UTF-8?B?SsOpcsOpbXk=?= Lefaure , linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: hda/ca0132: fix array_size.cocci warnings In-Reply-To: <20180514190214.GA38036@athens> References: <201805150307.Eek1tvZf%fengguang.wu@intel.com> <20180514190214.GA38036@athens> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 14 May 2018 21:02:14 +0200, kbuild test robot wrote: > > From: Fengguang Wu > > sound/pci/hda/patch_ca0132.c:5062:50-51: WARNING: Use ARRAY_SIZE > sound/pci/hda/patch_ca0132.c:5092:50-51: WARNING: Use ARRAY_SIZE > > Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element > > Semantic patch information: > This makes an effort to find cases where ARRAY_SIZE can be used such as > where there is a division of sizeof the array by the sizeof its first > element or by any indexed element or the element type. It replaces the > division of the two sizeofs by ARRAY_SIZE. > > Generated by: scripts/coccinelle/misc/array_size.cocci > > Fixes: 47cdf76e44e8 ("ALSA: hda/ca0132: Add new control changes for SBZ + R3Di") > CC: Connor McAdams > Signed-off-by: Fengguang Wu Applied, thanks. Takashi