Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp632892pxj; Thu, 20 May 2021 18:29:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzc7L3iGFKs8cWenqgeyZtq+14aMbIbb2jcJVNUg+XKnEKf92zIFzHwAwepFc5SlFPXJdk X-Received: by 2002:a05:6638:13c4:: with SMTP id i4mr513882jaj.37.1621560578089; Thu, 20 May 2021 18:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621560578; cv=none; d=google.com; s=arc-20160816; b=0xjo2aFxEUczcOly2XIQPJ7heFny6m62hNGSQVYufTBHSDSpUXMTwOpYxSYax/JuKI rcEwXY2w+Ql0xAa+0Vt6arAq5Rk3BvqWT8RqnbdFQfZFKFSiqzBHcz3hs6InCVe9j0AG NXvuhrtQ9/ObBnlNJD/lMGNjctyPOevyexH+1s9mihlGYNvBzhEnHpUZioHT2zpEbcq8 0vuWVxuVL6P3IukDCuvwE9s7DvXOUBAkH8jlKpF8tvpkuoQkXnjBeIVsCJF4hSW7+ZI9 k3Wz3CrTEnuLT3yTTJab7EjcPsWGuEy4e+KkFUEPoC3V0XLRTc/RAL1qh9EwCM4GOMK8 uZ3g== 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=l0wQr3bMU7U+iL3Yz3frd/mYq5B8ussGGlJ7x0vphn0ZD3VhN7E4gLQ9BFMFbqzr/X JCZl9HFfKC5NsjVg7tHi/6UremcFv9YNq7s9aVabYfc3r99gfCAfOj/nMfUGDxV/4Nyb JGMcA3+HrPDT7xqsjM2oTAn+ZH+NlVwTtigDgEzIyawOjHY+JLYpwCn16++7+LhKpyRe akylmu5dFhAEu+lEhHgH4h8l1RWF7bRvIh7pvKGw7W0xt2WJXAbhAhbjyXLERcWQGMO/ q9KycBM2lmH4t0fTDyJM9/EeKr5r5HLo0qgJHQc4gokwWFG1wmY1W1KrIVyhRBNEBzLA h2Lw== 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 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 d70si4497947iog.4.2021.05.20.18.29.24; Thu, 20 May 2021 18:29:38 -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=Iuwb7ltb; 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 S242432AbhETLjk (ORCPT + 99 others); Thu, 20 May 2021 07:39:40 -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 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 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 { -- 2.30.2