Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2490300pxj; Mon, 10 May 2021 04:21:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzL3h7Nk66VwCtBdL/SGoWkwtTRUp+8MmtaGMRFaJ/u8i+ud+V2Q7TNmovsPOSBP6Sf9Pts X-Received: by 2002:a17:906:58d1:: with SMTP id e17mr25758027ejs.179.1620645708271; Mon, 10 May 2021 04:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620645708; cv=none; d=google.com; s=arc-20160816; b=DqDdezdUGxEaKHEnGZ0Ig+5GpG46W5s7UCdMYDbwx8UboONLzosxbeRZIkzGMBIgoR ObXa2Eh9hp5Rh3cizYAy5N55T9GYmANQJ0FJft6bJ0SJTiYSwx0+dodrVuHPcVTQiOTA EzLK3/weM+87DxV2E2qbJcSgyeIg9a+rGctRtU1tX+OgoJ/e3tGMuUUZadGOgIZ0svq9 El/TL+k349z8sjmn5XAaAWb6LsNp6n8Yj2P5vjnmkXuC6AgGjmbjCY8tnSMlXmdp8poT CZnKh7exrB/p7LbbQrV+0Utntzt+zoBn9mBlmXbdX7m2I2b3kXJt8l7Jr0rmWGCee8rz ZgQA== 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=aJJdNemPdRTyR/MWrwPtzjCxr2xOYmuVlmIbwXnCzEA=; b=pK+YjUxcV8VpNnPzcWJndywH8im8PCKj6HQu4mMM3+nyjC8dKLm9/jgXBn1SJn5Kqp SR80vKxQa75pmqWPVXQizIaXB3fxTrE/yd+gasfMfXrYY9i6inI4X6CMbIAFOj/MslwD liEkfstfbeDkNgFACH/oFmjH/QZ8z9ntPLFmT8nytF95rpMxREFAP8q4hvuIh46eFlrt ALLQuh4KN1/PSVZ/QR3n8NNP9EHNoVF4NeK1/rj8lzee8W55CLtEJyW/GJv2osI6xpg+ JpZAYsPYVrYO/ImCwjftIRCsgrSwcwuupG0GE9Af3YToEcZBtjtowSl3kHFgrRhByVPa ac3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x5ERXJl8; 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 q16si13447554edd.547.2021.05.10.04.21.24; Mon, 10 May 2021 04:21:48 -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=x5ERXJl8; 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 S238365AbhEJLRd (ORCPT + 99 others); Mon, 10 May 2021 07:17:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:41710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231774AbhEJKxt (ORCPT ); Mon, 10 May 2021 06:53:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2452761924; Mon, 10 May 2021 10:41:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643292; bh=16o5mwawdxf4Ny7fQtU3+asqhsuzzApK0LeRnYTi4e4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x5ERXJl8RJYJ7ZD7OzulsZYU8kgRw3XJoX4I1u+McOgCN2Lyl/ynSqhFIbGEEAOJe /ZqSy0cMBdpJsbFR5Qcy3EBz0tTROt0Voxqnd3O63NF1CMMdy3+uL7nICbxftpVvca XTt0FzGdYBbL/xidhGvG/TRNMdT1hkQDxjgOsntk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Torvalds , Andrey Zhizhikin Subject: [PATCH 5.10 256/299] Fix misc new gcc warnings Date: Mon, 10 May 2021 12:20:53 +0200 Message-Id: <20210510102013.401310567@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@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 +- net/bluetooth/ecdh_helper.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -2992,7 +2992,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 u16 wm[8]) + const u16 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 @@ -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 { --- a/include/scsi/libfcoe.h +++ b/include/scsi/libfcoe.h @@ -249,7 +249,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); --- a/net/bluetooth/ecdh_helper.h +++ b/net/bluetooth/ecdh_helper.h @@ -25,6 +25,6 @@ int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 pair_public_key[64], u8 secret[32]); -int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 *private_key); +int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32]); int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]); int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64]);