Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4078486ybi; Mon, 3 Jun 2019 05:27:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdgNOYRg83cR41G4ixIFWitXly+eXmwBKmGtaZnykL1swkUJbKCBylCL9yqPQpr08w+aYR X-Received: by 2002:a17:902:7295:: with SMTP id d21mr17086450pll.299.1559564820843; Mon, 03 Jun 2019 05:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559564820; cv=none; d=google.com; s=arc-20160816; b=ohaNwqLES+yTs9HCtFBcqZTkrHcWUfzjLhHwZBNhR1+Ug4pZC6wcY+wDXfBgIJ4gyd YiF01W35uXFHugYrIyCQbJP/MAWdKXtVm6Xkdh94siQAHhBg0tTdn8dH/VEg0HMKhG5a mUt/SthG2EzxwsXVArLsI7zKbcsuns5WAvIAOD8xw4ktCkgD0Fb5nunwUbziqHkzgtgE wTd6TjAdAjiz8lP+HByN76V8cF4tE0XD2K357NBuqWMQoxhaX4RYlVRZoWyEBao8gypv ZxTHG912VZPYl2JRu/MwqQas+UlIOI5Wk/oBBnmquQKsKe7QLyfB5B4NR8KOV+k4dj5M 6mew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=D+0cAKjJ6/ch+UvilG2pf+F3WYrXbz2q5NqXNiMxGwE=; b=O2Xjm7I6+VRcHf9Dyh5ZVgENOsdgrJDRoCbIyAg3+QE8DhhQ6zj28JhXcCMsKjrRzF bMUlvYVyhJ1+tXyHblBngmd1w1IBk5Yqfj5UESmp96w6LkswnW0dHtRb7bh5X3ByLxIj 8MNXoVpLjs/3emE+KHVRFYivQhiB39UDD7kyTxK/lImhLiaedrwiPDRvkLJ8YMKcYw8Q uNWjqbPp65E84CXOUw6ARkTXQuOoI+RdOn+cYH8MGsGUXGKYcebH7DAfQTQhOv/HCvrH ki/TC/aEHDYS54IHM4FM2g24KbVuHirYhGJ7rIY5BDu8roo6SBm844aCWOOwZWb0RoQ1 h6qA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si17724305pju.78.2019.06.03.05.26.44; Mon, 03 Jun 2019 05:27:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727605AbfFCMOu (ORCPT + 99 others); Mon, 3 Jun 2019 08:14:50 -0400 Received: from lb3-smtp-cloud9.xs4all.net ([194.109.24.30]:56801 "EHLO lb3-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726873AbfFCMOu (ORCPT ); Mon, 3 Jun 2019 08:14:50 -0400 Received: from [192.168.2.10] ([46.9.252.75]) by smtp-cloud9.xs4all.net with ESMTPA id XlrOhLJi7sDWyXlrRhszmS; Mon, 03 Jun 2019 14:14:48 +0200 Subject: Re: [PATCH] media: cxusb-analog: Use ARRAY_SIZE for cxusub_medion_pin_config To: "Maciej S. Szmigiero" , Michael Krufky , Mauro Carvalho Chehab Cc: linux-kernel , linux-media@vger.kernel.org, kbuild test robot References: <20190531223756.1305617-1-mail@maciej.szmigiero.name> From: Hans Verkuil Message-ID: <8512e951-03fc-34d0-6dcf-fe9667eba022@xs4all.nl> Date: Mon, 3 Jun 2019 14:14:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190531223756.1305617-1-mail@maciej.szmigiero.name> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfGmmtXUUHWs4Wy+dOqpToMDsFs7CxmiRlydZe5t0GbMerN0581bsVAZyRW8PzdOffOAs7MRwnJbXTIOXwihj+s7sPIvmPvy33D9LA7srershSdsfMgZj lIO2U90mRo/aVMkcSY/Va4sRZJhUrmYtw/GhZYXItXv7+IgEyO7GbG0nkQL0voyUVF6TaJgUY4s5HjyuUkNariA1gK14HeE2olOJdS53Fe818DySC1DRi60i oH/VxHKJWkrWMBU35rz5KqIA5t/1XrmxbSQPA0FKBDMOIuuH0Uir3QaPWgWn9OwYOd/RmoffqQOEV59rgNqXfdS6+baGbBDgLTPrNeLUnI0= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maciej, Thank you for the patch, but I posted a fix for this earlier already: https://patchwork.linuxtv.org/patch/56441/ I'll drop this patch in favor of the one above. Apologies for not CC-ing you on my patch, I should have done that. Regards, Hans On 6/1/19 12:37 AM, Maciej S. Szmigiero wrote: > Use ARRAY_SIZE for computing element count of cxusub_medion_pin_config > array as suggested by the kbuild test robot. > > Reported-by: kbuild test robot > Signed-off-by: Maciej S. Szmigiero > --- > drivers/media/usb/dvb-usb/cxusb-analog.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/media/usb/dvb-usb/cxusb-analog.c b/drivers/media/usb/dvb-usb/cxusb-analog.c > index 9b42ca71c177..51d3cba32b60 100644 > --- a/drivers/media/usb/dvb-usb/cxusb-analog.c > +++ b/drivers/media/usb/dvb-usb/cxusb-analog.c > @@ -1622,8 +1622,7 @@ int cxusb_medion_analog_init(struct dvb_usb_device *dvbdev) > /* TODO: setup audio samples insertion */ > > ret = v4l2_subdev_call(cxdev->cx25840, core, s_io_pin_config, > - sizeof(cxusub_medion_pin_config) / > - sizeof(cxusub_medion_pin_config[0]), > + ARRAY_SIZE(cxusub_medion_pin_config), > cxusub_medion_pin_config); > if (ret != 0) > dev_warn(&dvbdev->udev->dev, >