Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp546331pxj; Thu, 20 May 2021 15:53:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxr56xeeGvl42i+BWSTRcjLyh2oJduCbMsBpYYq7tf0celvlDVprZI0ybFV+KXjM1/zuuXv X-Received: by 2002:a17:906:eb10:: with SMTP id mb16mr7075018ejb.209.1621551219053; Thu, 20 May 2021 15:53:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621551219; cv=none; d=google.com; s=arc-20160816; b=jf7/HTIIPQJttmls5XQ4CB7s5HVm49eaVbU8fbcJBoRsCTmTbUcIOnApcEmBVwOcgH uUx3qS5dPo13V0qGbwdF15nVfOhLoCfIjKAxQTrNlqpO2/TliMa0Rp+6mKM+kSLA84KX e/YoO41VuyuR4Q3tZNyvA1pZXLQm5pwX9TJlk4irp0NcL9NtC+lhFHubD27x/zSAb/5n i4Pv5vpyaUzXeOe0PxtSU2Eo0ruUCbc84TYJt0sM12xFd+csPHit2zAlqSZAUn7h9ewQ OVUysJBrcVEzVamWwStg5jwGqyEyXGBxXBBsMUu4bmMCfX8ReBcwr7SrUj0SqR1A3UT3 wTpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6rg2qm4l/lCpLQKXAR5YfsV6C4G6g6Pfu5nHIbVADc8=; b=Q7p87vjJBQ+d8Zon3o1EprRMsl9aRKLT7w68ITBgkUmuPklmwe0/WsW1E4eLp224ak DnCvEY+6QhKYeZSyemiaCKam+Zt6c9MPoRX2hBE5Y1E1Dpcohgqm+SybedJ88h+Vp9EZ +EHhw2U0pre4rg/i0DtvvqWGS1iHieS6VLpNIIMHJOYtorGIt0BboTkwMlakAvntRaNJ 3E0LWQyg4+VeUZayzgajM4vllxVgEidJd5UOE7FHyl6+PhtmuQ5VltptchvhgrG3/Zk5 8QE9+dWUBrN8OxRh24fulPV0SL9fXFGSlD3S3DzthrDBa6uizbr/NRwS4Nh+MBZXBJEU 9oPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wArtXUvf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id va16si3814471ejb.325.2021.05.20.15.53.15; Thu, 20 May 2021 15:53:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wArtXUvf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240450AbhETLQV (ORCPT + 99 others); Thu, 20 May 2021 07:16:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:52442 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238718AbhETK4K (ORCPT ); Thu, 20 May 2021 06:56:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E506961CE7; Thu, 20 May 2021 10:01:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504897; bh=APEL3NPHVZ70NZi9W8u6aNCiB6M4fnP/x0E/P/hQ7mI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wArtXUvfQ+MD0bZ09/LrcT68RpsoTAsbjnNGVhfe/WTklWVDaGnZ5N0Y7mw2WpXmf Jm1ayyIC+fuOkD7TTvAeXM9rpI7kRPDQJFQ/Mqwr4WP1lpDv1DLbkNi8Iu74Zve1Gg ommOddR4CiyVkpS03CZEmhQviSUJvYdGrUz0YcW4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Sean Young , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.9 130/240] media: dvb-usb-remote: fix dvb_usb_nec_rc_key_to_event type mismatch Date: Thu, 20 May 2021 11:22:02 +0200 Message-Id: <20210520092113.032479662@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092108.587553970@linuxfoundation.org> References: <20210520092108.587553970@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 0fa430e96d3c3561a78701f51fd8593da68b8474 ] gcc-11 warns about the prototype not exactly matching the function definition: drivers/media/usb/dvb-usb/dvb-usb-remote.c:363:20: error: argument 2 of type ‘u8[5]’ {aka ‘unsigned char[5]’} with mismatched bound [-Werror=array-parameter=] 363 | u8 keybuf[5], u32 *event, int *state) | ~~~^~~~~~~~~ In file included from drivers/media/usb/dvb-usb/dvb-usb-common.h:13, from drivers/media/usb/dvb-usb/dvb-usb-remote.c:9: drivers/media/usb/dvb-usb/dvb-usb.h:490:65: note: previously declared as ‘u8[]’ {aka ‘unsigned char[]’} 490 | extern int dvb_usb_nec_rc_key_to_event(struct dvb_usb_device *, u8[], u32 *, int *); | ^~~~ Fixes: 776338e121b9 ("[PATCH] dvb: Add generalized dvb-usb driver") Signed-off-by: Arnd Bergmann Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/usb/dvb-usb/dvb-usb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/usb/dvb-usb/dvb-usb.h b/drivers/media/usb/dvb-usb/dvb-usb.h index 107255b08b2b..704d57e3ea1c 100644 --- a/drivers/media/usb/dvb-usb/dvb-usb.h +++ b/drivers/media/usb/dvb-usb/dvb-usb.h @@ -471,7 +471,8 @@ extern int dvb_usb_generic_rw(struct dvb_usb_device *, u8 *, u16, u8 *, u16,int) extern int dvb_usb_generic_write(struct dvb_usb_device *, u8 *, u16); /* commonly used remote control parsing */ -extern int dvb_usb_nec_rc_key_to_event(struct dvb_usb_device *, u8[], u32 *, int *); +int dvb_usb_nec_rc_key_to_event(struct dvb_usb_device *d, u8 keybuf[5], + u32 *event, int *state); /* commonly used firmware download types and function */ struct hexline { -- 2.30.2