From patchwork Thu May 20 09:22:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 443227 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp2192720jac; Thu, 20 May 2021 04:19:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynfSQFbPIvXJH2WrkK4zRi5m7vzFVWEMVXcSWkvTwI/qxKjEGuraapayYXF+ZDdUMGcNCm X-Received: by 2002:a05:6e02:1046:: with SMTP id p6mr4677434ilj.86.1621509573655; Thu, 20 May 2021 04:19:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621509573; cv=none; d=google.com; s=arc-20160816; b=a8wThfYtbXNOJGW4BQkXwAnfCKmVLOk+daq+B3bq6PDwLdmZNDUA7FG/TmDQw5kPZ4 CsH6oRH0xWFJDaQcj1khoY0F54ADmF1XP9jsMhb9UPCaUNKdoh217Umfdl9CKTtQIGxq uIOqyRSdDxrZ+69563IGFXqJ4wPsY04dgVAvhIezD6MW0oeetKk2h7GhOqgovMYn6XS0 a2OI/dCxzpHfPfV4FBIwCfBHZ5k/0PDvKOFiYXsafX5oZ9AlpPxc8gCr6KPEeqihgJBp NpBAy7fFxR1GPmUe4GLrmHnclxzUWCp48gxyIYBh5RMV2Rt4VEjo4oDo05LEqKNUyu+k 10Aw== 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=AIwy2Wpin5Bnzc9INlF77LiJk/Cq9WMeu1VtZNt4BUs=; b=RYD27I0TEkSJ7Ie981nPehpPzvyjwGr3JX9qfwYt5VHIzGNOUAr5mgurfyk47X2xlg NA/D0pxte9xkDSZvdz6bPPR+HUEpNe76OkZ6kH1ku04Coez3Tvmpw3XpLg9PQ6qQvscT Iv3cn0H0aAQPomJva+4LKDzc5BgvsaokJI06KcDcHc0YPHYAYao/yz7ba8aG9f2rPUke 7vMf24Ot9C4Sl1OdtzTSiq4LHaosiGxDvnDRds9ypr291jY7Gj8maHW8cD8uAWT/ST6N Ln++KrMopBK3Nufu51WwdFtoyw6+TLDCNJi2oOhqEmPLf0L/Z7cRa5CNsB1ZlZo3GKCw QlDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Iuwb7ltb; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 d6si2816069ilv.73.2021.05.20.04.19.33; Thu, 20 May 2021 04:19:33 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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=Iuwb7ltb; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S239939AbhETLUq (ORCPT + 12 others); Thu, 20 May 2021 07:20:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:37920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240165AbhETLRG (ORCPT ); Thu, 20 May 2021 07:17:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0BDB161952; Thu, 20 May 2021 10:09:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621505375; bh=cOc6lcQ5YoBHcNEo7t7yxygIjdYW5ATkR8jzQrmKxU4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Iuwb7ltbI2GLMLJNsN+2PYX0sktrJPO01uvWfLeEJy87cHEjfW4upHzaTFS7dmuJh LXnulACjl0j+5FLqcaQJ1R6LVoLbwztdT2IAeksxXm2s1lJ8yVwbVfjmSFb+lXBkYN rMmaQZjK4jUuEZlpRehodJlP6Nec2g3ggrnE+ElY= 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.4 105/190] media: dvb-usb-remote: fix dvb_usb_nec_rc_key_to_event type mismatch Date: Thu, 20 May 2021 11:22:49 +0200 Message-Id: <20210520092105.665311713@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092102.149300807@linuxfoundation.org> References: <20210520092102.149300807@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@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(-) -- 2.30.2 diff --git a/drivers/media/usb/dvb-usb/dvb-usb.h b/drivers/media/usb/dvb-usb/dvb-usb.h index ce4c4e3b58bb..dd80b737d4da 100644 --- a/drivers/media/usb/dvb-usb/dvb-usb.h +++ b/drivers/media/usb/dvb-usb/dvb-usb.h @@ -466,7 +466,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 {