From patchwork Mon Mar 22 16:46:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12155595 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 868C1C433C1 for ; Mon, 22 Mar 2021 16:47:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5DD6F6199E for ; Mon, 22 Mar 2021 16:47:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230270AbhCVQqb (ORCPT ); Mon, 22 Mar 2021 12:46:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:35974 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230403AbhCVQqM (ORCPT ); Mon, 22 Mar 2021 12:46:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0D3626198E; Mon, 22 Mar 2021 16:46:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616431571; bh=Qyt24ho4lnH+0THV75bpg4f9WQqs21XxQUpWuZA4LmY=; h=From:To:Cc:Subject:Date:From; b=vNhan/75GMHamKHS0e07D2Y5jF8Q3Y0HWfN5yDL81bJEgH5Nj49QNo0m+ZJJAFxzk 7srFyAoQ1ff9Kr9ucp7owknik8/WAAC+P/TuWvSIhsIcJx8ziz7G8GLLAWqHg6GxfG yLkx1tAMYKOKCfMdE9E3dr90IRooAm1cFDbrK3jsvRcKstJZEBi8TKuQSSsPZvlq3F aWAigTmniaXPFrOzgotb8oyMxiOhsgK//cwcp0uv2LmwUhVB8+CmGcjTYnkK/31zHY QnjILAoFlnv7JFaIy7KWEzyeex8NYD1TFG0lmVBoxJF1kqqIqRxxbBlzPoPl1CwKhp I2oU4hJU9L4YQ== From: Arnd Bergmann To: Mauro Carvalho Chehab , Randy Dunlap , Patrick Boettcher , Johannes Stezenbach , Andrew Morton Cc: Arnd Bergmann , Sean Young , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: dvb-usb-remote: fix dvb_usb_nec_rc_key_to_event type mismatch Date: Mon, 22 Mar 2021 17:46:00 +0100 Message-Id: <20210322164607.925572-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Arnd Bergmann 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 --- drivers/media/usb/dvb-usb/dvb-usb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/dvb-usb/dvb-usb.h b/drivers/media/usb/dvb-usb/dvb-usb.h index 52407fc28c03..42f4d2fece8b 100644 --- a/drivers/media/usb/dvb-usb/dvb-usb.h +++ b/drivers/media/usb/dvb-usb/dvb-usb.h @@ -487,7 +487,7 @@ extern int __must_check 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 *); +extern int dvb_usb_nec_rc_key_to_event(struct dvb_usb_device *, u8[5], u32 *, int *); /* commonly used firmware download types and function */ struct hexline {