From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 838D4C433B4 for ; Wed, 28 Apr 2021 07:27:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 31EE3613D8 for ; Wed, 28 Apr 2021 07:27:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236460AbhD1H2C convert rfc822-to-8bit (ORCPT ); Wed, 28 Apr 2021 03:28:02 -0400 Received: from mga06.intel.com ([134.134.136.31]:3835 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbhD1H2B (ORCPT ); Wed, 28 Apr 2021 03:28:01 -0400 IronPort-SDR: 3HMg0k9GQAN+STnxMLFwgeLQ0muRnJ0qhHZaZArrfp1E3la9EC88NI0sKcNeEbvVp+hyz2uknn 6Al2B9g7cLxQ== X-IronPort-AV: E=McAfee;i="6200,9189,9967"; a="257981049" X-IronPort-AV: E=Sophos;i="5.82,257,1613462400"; d="scan'208";a="257981049" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2021 00:27:14 -0700 IronPort-SDR: tR9xIFfrlHKMLSXo4QTPjbAn1aIp7Ors5wVZq1YqZAbml0aQMrY2sHxI/fXWWVPGNsgzaFCTCS mocmMIogr7Kw== X-IronPort-AV: E=Sophos;i="5.82,257,1613462400"; d="scan'208";a="430170642" Received: from ajalsove-mobl2.ger.corp.intel.com (HELO localhost) ([10.252.39.247]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2021 00:27:10 -0700 From: Jani Nikula To: Linus Torvalds , Dave Airlie , Joonas Lahtinen , Ville =?utf-8?B?U3lyasOkbMOk?= , Rodrigo Vivi Cc: Daniel Vetter , LKML , dri-devel Subject: Re: New warnings with gcc-11 In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: Date: Wed, 28 Apr 2021 10:27:07 +0300 Message-ID: <87bl9y50ok.fsf@intel.com> 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 On Tue, 27 Apr 2021, Linus Torvalds wrote: > I've updated to Fedora 34 on one of my machines, and it causes a lot > of i915 warnings like > > drivers/gpu/drm/i915/intel_pm.c: In function ‘ilk_setup_wm_latency’: > drivers/gpu/drm/i915/intel_pm.c:3059:9: note: referencing argument 3 > of type ‘const u16 *’ {aka ‘const short unsigned int *’} > drivers/gpu/drm/i915/intel_pm.c:2994:13: note: in a call to function > ‘intel_print_wm_latency’ > > and the reason is that gcc now seems to look at the argument array > size more, and notices that Arnd Bergmann reported some of these a while back. I think we have some of them fixed in our -next already, but not all. Thanks for the reminder. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center