Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp2108742lkv; Thu, 20 May 2021 03:36:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxj+8mOjfV9b35Ak3vgfl9tVQXMLd5d5RtHbg2BVdYBoRbnDjoC9d/+GasV9cumzB1AV5tZ X-Received: by 2002:a05:6638:2507:: with SMTP id v7mr3627877jat.96.1621507018349; Thu, 20 May 2021 03:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621507018; cv=none; d=google.com; s=arc-20160816; b=D0rnnm2I5Oomh/BGhPoOGVRXcFdFBfmgvC+5/qGh/paesTSTTcWkIv+5J4xMM1b5Gs cI3oeA+rnzUhW+7xOUXW4QFYOj4G8XnHnIv2iaXxXzU7T1TBBly/jgl/A/7dj9n/H6IV m+6wBLf6mKynyB2ApZ5Y9gkJ5Et+GuAw1ved+MxfviK4C2UrWzX+5T+JZnLviIUCvQwb gwFQHQtsE6eRqDn7yDmSmpxC2IwzTu+y9YzRehW1EJIbhuiUg1bVP6idGSpsl3Q665cZ NNQfXLORSHL9d9sCU515OVUCk6ULG5N9RW14AG0rXPJWoRslpK+HrWsbZ8xqio30Ej8j u63w== 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=aidEGBJjHu54I/VPjw2wfI2NxbitIuO2IgQ3B9PMvlo=; b=gaiBKCwBOSx6pOE9XpdXDNTAKr0BAiXkr9cIqpJQQf65sEISferQRZ2MgXsurwM/dx 2FxSyFLkUbwRS689NplxxC1eOniMW/0fAqnG57Ozb9A2sX0zwUmRUClWr+aEGlok5gH2 I08eyHmzMgtzA1dzysdDehR111w4gFJ1a8VpdCqnH35veCGQBU/08PUoRlcO5Vk0tcZk hRA6/w7ZnfYTLU/3VtAdVwuWJB26GmnBV4Mt7kbkzfZwipR+Mdx4Ztk2R1t/zZY7MU/j mRxSjKCm3RAQNMQU9y7ESKdUc7daBUxy3z7x87RKpr2W433ARabldhfCPeeBY1GkaadX pElA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=184KIqnJ; 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 k6si2089902ilo.39.2021.05.20.03.36.44; Thu, 20 May 2021 03:36:58 -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=184KIqnJ; 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 S237661AbhETKfQ (ORCPT + 99 others); Thu, 20 May 2021 06:35:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:52050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236048AbhETKVp (ORCPT ); Thu, 20 May 2021 06:21:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6FE0B619D0; Thu, 20 May 2021 09:48:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504091; bh=D+Ugb9/Jn9dyAwbc9zsFfDQM8ES5Gat1naaUOfUegYY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=184KIqnJy7NFnuMOhDes5T007Twx0c1wxwTyOW+Ws7B0x56ucVYsFi5PuVS77z53I AeSIgjl4GXZh44KMlfntgx04piamUyxXQfux7VtZfCxFXzlWhpkyx056M42H6V6Bxr XoBJWjoFsPGkCGT97Vqh8zdd0a2GpN0lQc3G7oC8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Torvalds , Andrey Zhizhikin Subject: [PATCH 4.14 087/323] Fix misc new gcc warnings Date: Thu, 20 May 2021 11:19:39 +0200 Message-Id: <20210520092123.070522551@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@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: Linus Torvalds commit e7c6e405e171fb33990a12ecfd14e6500d9e5cf2 upstream. It seems like Fedora 34 ends up enabling a few new gcc warnings, notably "-Wstringop-overread" and "-Warray-parameter". Both of them cause what seem to be valid warnings in the kernel, where we have array size mismatches in function arguments (that are no longer just silently converted to a pointer to element, but actually checked). This fixes most of the trivial ones, by making the function declaration match the function definition, and in the case of intel_pm.c, removing the over-specified array size from the argument declaration. At least one 'stringop-overread' warning remains in the i915 driver, but that one doesn't have the same obvious trivial fix, and may or may not actually be indicative of a bug. [ It was a mistake to upgrade one of my machines to Fedora 34 while being busy with the merge window, but if this is the extent of the compiler upgrade problems, things are better than usual - Linus ] Signed-off-by: Linus Torvalds Cc: Andrey Zhizhikin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/intel_pm.c | 2 +- drivers/media/usb/dvb-usb/dvb-usb.h | 2 +- include/scsi/libfcoe.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -2934,7 +2934,7 @@ int ilk_wm_max_level(const struct drm_i9 static void intel_print_wm_latency(struct drm_i915_private *dev_priv, const char *name, - const uint16_t wm[8]) + const uint16_t wm[]) { int level, max_level = ilk_wm_max_level(dev_priv); --- a/drivers/media/usb/dvb-usb/dvb-usb.h +++ b/drivers/media/usb/dvb-usb/dvb-usb.h @@ -474,7 +474,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 { --- a/include/scsi/libfcoe.h +++ b/include/scsi/libfcoe.h @@ -261,7 +261,7 @@ int fcoe_ctlr_recv_flogi(struct fcoe_ctl struct fc_frame *); /* libfcoe funcs */ -u64 fcoe_wwn_from_mac(unsigned char mac[], unsigned int, unsigned int); +u64 fcoe_wwn_from_mac(unsigned char mac[MAX_ADDR_LEN], unsigned int, unsigned int); int fcoe_libfc_config(struct fc_lport *, struct fcoe_ctlr *, const struct libfc_function_template *, int init_fcp); u32 fcoe_fc_crc(struct fc_frame *fp);