From patchwork Thu May 20 09:22:02 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: 443219 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp2174616jac; Thu, 20 May 2021 03:57:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUeelk4a6DaN0J410PO9mbsUxB8urKxhjIycCHCPpSLclSATGi0SOX5O+NxaBBDriZl0Yq X-Received: by 2002:a92:3f08:: with SMTP id m8mr4520700ila.154.1621508229948; Thu, 20 May 2021 03:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621508229; cv=none; d=google.com; s=arc-20160816; b=hZdhLvxZmgSjD7tzY3jO2dV5htsr17OsSk1U867O5iufixpKz98mcED3tfbcR6xIPu KGwbJXe5yCojTkQLoAoPwQKQLa7GhUvk81mH7sP1v9+kAijABkV9cD6Q8yjLSImCnzOn WrWMCSSbdgPwhl5WnMjPz7GuhkgfHYNewpf8HX0HLPRq2226+golzeZzZCXl2z8ju2iE 32Q7ftkX1aFb848wt44Y35L7M5nSzwY+BKSinqIYBoljyFSjTXXb69Y14q9dPgPb6hte g2Hroc/bvS6QQfRgryjKGgL49vWWdr960s4jjfV2wjSlufXgVSXK9DC6i9GE7RM24tvY VwmQ== 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=u3NYyEpZA9B2xvipMmoTkPg3enOtJT0/cjg2afzkn884joto81oJXNziGLr0/YW8Ss ldSSgD0XXEpT2XZo8Pdkrtkl8grWKM6RLI64G7qYLyokpnu9EJO5LhQcItOUH8QR6ieY vXga8UE3zdn1/tE1+EM6X+fS/GRs9xeqdfv/aS44t3NvBCzBfy+ltXKBmBy1pqq8Rr4f 0SDoi9+ioQ6dOT3eMWsbVHTyezet9vQWeFqoBW72G7usJN8t8XHJCLGZvpZwpXoDvz6x U7QRD8fCU83KqYfSt/BWHsiRNftIP7Jlro4TbY9UapW8Bqrt6mkSaPzyRDJtfDOPfPNj Wr8g== 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 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 z1si2103897ilp.57.2021.05.20.03.57.09; Thu, 20 May 2021 03:57:09 -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=wArtXUvf; 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 S238794AbhETK6Z (ORCPT + 12 others); Thu, 20 May 2021 06:58:25 -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 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 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 {