Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1076102rdd; Wed, 10 Jan 2024 08:01:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMv4JGUtG/aVOhu/zB2UaXaIXQzAwCP8neO3Qr+ixFB4clG4w/jjdGI36HtNllzthlmEm9 X-Received: by 2002:a05:6870:51c9:b0:205:da63:267a with SMTP id b9-20020a05687051c900b00205da63267amr739385oaj.47.1704902471047; Wed, 10 Jan 2024 08:01:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704902471; cv=none; d=google.com; s=arc-20160816; b=k8bdn1eXRh/DIR5sLvJkyPHrtti3AK6bSIuYag8TtVzOHwymtVlo3KBcfqE5uX/L3D BG9sLe1QWDVNOajHyn1iufHYooEm0EWqy/zMSOuxOXVQ5NtoJs3Im8pQI2QpZOms45Jw kiT/a/0J1P/9+IFbiDxpGWYgVkIQjL6lxbwfuVvyaTIL/huw59hhDc1MelitZv4MvfB/ /fPurlI9TIogkt7hiPD/MDT2mU83c6qef8EOlovPq5yebqs1yCXUYTdIaPTr9WjS/lql KM5c454KxXouXfBJWDg5LlO5HpX7lZsxBF7NHjX1g4FbB0kXFMrHJg4tN3oLilzXfvry 1MLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=b3YlKCwIWfeZgaVyYxrthmgwJcKv4WF28rRp91ocNQg=; fh=uWzdod8DfUzbjVRczVtrrN5PqMf6K2aicFxN7C5WmGQ=; b=KTSfdPteszyFOMWH2IHkbJmWEFvPEDBI9dZcOEbRpZR5ucYgA83Ola03ps3yzWNAE2 rEyOQeyzYuZ6YbDUiKkcf3wu5raNRSOwBjSMy0aeahzobB313lTkj0/TXGMueN9M+6Y2 kierSVbXCIWkInUUkTvOtBuAF1cMr/YX76frsA+ba7bBGdgFJX8ZyYKj1R5g+JXde5fz xtwHwWmLOSG3/w1My6WFl3qPYUg5Vm3mGZ9e68HYUpEZLFl1ZKLl+47G5ZHas6EUYDln dcWFs47pTlSgTc1bkdwoee6Syp8XIjOSntL4xXROoYJLTA8kp2fBqEa/vM6Js3aapyHX oYsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VaUc4q9K; spf=pass (google.com: domain of linux-kernel+bounces-22468-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22468-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id vs23-20020a056871a11700b00203fd540f0asi1620550oab.319.2024.01.10.08.01.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 08:01:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22468-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VaUc4q9K; spf=pass (google.com: domain of linux-kernel+bounces-22468-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22468-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 751062862BD for ; Wed, 10 Jan 2024 16:00:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 642284C61B; Wed, 10 Jan 2024 16:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VaUc4q9K" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99CB44C3BD for ; Wed, 10 Jan 2024 16:00:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20E83C433C7; Wed, 10 Jan 2024 16:00:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704902423; bh=G4+lE+BH/CV70HZvdV/l6Cjg+ti6z2Et7y6eWdc6Sp4=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=VaUc4q9KmQ4Fj16puvilnJ6EZau5dVe0KkxQkM7aFvVgZCewCYYdtOiNk5fQQTDVh 4GkuxuLnOFxINDIinAVwzaKxQJEctI7R3B6R4+D8nnv+fU8/jvNfpcf0KiHYlZlghn e3aE7FP/X6BWvXK98UUp6E9nwMj5k+4u47zYwxXk3ReNrxumd4i/byGXcSR5CDR8FQ xOK2nvee1b0PWCpeJEQCNN5RM2TINk1RaRk/kTlakny8GsH05JIgh0lQCvMBJca576 5cPqHruiw8aixCv62BBsVYalrTWUBOI/xhhZ3pFAYXS2SLzAd7AncbppUhjLzLHMBK U+tpDerlVpfDg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id A443CCE19C3; Wed, 10 Jan 2024 08:00:22 -0800 (PST) Date: Wed, 10 Jan 2024 08:00:22 -0800 From: "Paul E. McKenney" To: Lucas De Marchi Cc: Stephen Rothwell , linux-kernel@vger.kernel.org, intel-xe@lists.freedesktop.org, Jani Nikula Subject: Re: [BUG] allmodconfig build error in next-20240108 Message-ID: Reply-To: paulmck@kernel.org References: <20240109095757.1313b2d9@canb.auug.org.au> <341a4955-0cdd-48d0-bfbd-cc6f6f09df37@paulmck-laptop> <20240110081155.48bb0cbd@oak> <20240110095822.3ba3d979@canb.auug.org.au> <3d14049c-d44c-4b33-9933-0f96055b8a70@paulmck-laptop> <20240110160335.2bad7d54@oak> <3a10ef2b-acbe-4d80-805a-e947e15e5db3@paulmck-laptop> <6r2zjqbs2g3hkt3uhnglwpboalwck5ye34b6gxzmhe4gae77g7@3bzqt4s7i2qb> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6r2zjqbs2g3hkt3uhnglwpboalwck5ye34b6gxzmhe4gae77g7@3bzqt4s7i2qb> On Wed, Jan 10, 2024 at 09:00:06AM -0600, Lucas De Marchi wrote: > On Wed, Jan 10, 2024 at 02:26:54AM -0800, Paul E. McKenney wrote: > > On Wed, Jan 10, 2024 at 04:03:51PM +1100, Stephen Rothwell wrote: > > > Hi Paul, > > > > > > On Tue, 9 Jan 2024 19:46:27 -0800 "Paul E. McKenney" wrote: > > > > > > > > On Wed, Jan 10, 2024 at 09:58:22AM +1100, Stephen Rothwell wrote: > > > > > > > > > > Maybe that line "subdir-ccflags-y += $(call cc-option, -Wstringop-overflow)" > > > > > should just be removed as the setting of that option has been moved to the > > > > > normal C flags in the top level Makefile (out of Makefile.extrawarn). > > > > > > > > If you meant like this, no joy. :-( > > > > > > Actually I meant the one in drivers/gpu/drm/xe/Makefile > > > > Like this? That does work as shown below, thank you! > > > > Thanx, Paul > > > > ------------------------------------------------------------------------ > > > > drm/xe: Fix build bug for GCC 11 > > > > Building drivers/gpu/drm/xe/xe_gt_pagefault.c with GCC 11 results > > in the following build errors: > > > > ./include/linux/fortify-string.h:57:33: error: writing 16 bytes into a region of size 0 [-Werror=stringop-overflow=] > > 57 | #define __underlying_memcpy __builtin_memcpy > > | ^ > > ./include/linux/fortify-string.h:644:9: note: in expansion of macro ‘__underlying_memcpy’ > > 644 | __underlying_##op(p, q, __fortify_size); \ > > | ^~~~~~~~~~~~~ > > ./include/linux/fortify-string.h:689:26: note: in expansion of macro ‘__fortify_memcpy_chk’ > > 689 | #define memcpy(p, q, s) __fortify_memcpy_chk(p, q, s, \ > > | ^~~~~~~~~~~~~~~~~~~~ > > drivers/gpu/drm/xe/xe_gt_pagefault.c:340:17: note: in expansion of macro ‘memcpy’ > > 340 | memcpy(pf_queue->data + pf_queue->tail, msg, len * sizeof(u32)); > > | ^~~~~~ > > In file included from drivers/gpu/drm/xe/xe_device_types.h:17, > > from drivers/gpu/drm/xe/xe_vm_types.h:16, > > from drivers/gpu/drm/xe/xe_bo.h:13, > > from drivers/gpu/drm/xe/xe_gt_pagefault.c:16: > > drivers/gpu/drm/xe/xe_gt_types.h:102:25: note: at offset [1144, 265324] into destination object ‘tile’ of size 8 > > 102 | struct xe_tile *tile; > > | ^~~~ > > > > Fix these by removing -Wstringop-overflow from drm/xe builds. > > > > Suggested-by: Stephen Rothwell > > Signed-off-by: Paul E. McKenney > > [ This particular warning is broken on GCC11. In future changes it will > be moved to the normal C flags in the top level Makefile (out of > Makefile.extrawarn), but accounting for the compiler support. Just > remove it out of xe's forced extra warnings for now ] > Signed-off-by: Lucas De Marchi > > would you mind if I extend it to drivers/gpu/drm/i915/Makefile > in the same commit or would you prefer a separate one? Whatever works best for you works for me! Thanx, Paul > Lucas De Marchi > > > > > diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile > > index 53bd2a8ba1ae..efcf0ab7a1a6 100644 > > --- a/drivers/gpu/drm/xe/Makefile > > +++ b/drivers/gpu/drm/xe/Makefile > > @@ -17,7 +17,6 @@ subdir-ccflags-y += $(call cc-option, -Wunused-const-variable) > > subdir-ccflags-y += $(call cc-option, -Wpacked-not-aligned) > > subdir-ccflags-y += $(call cc-option, -Wformat-overflow) > > subdir-ccflags-y += $(call cc-option, -Wformat-truncation) > > -subdir-ccflags-y += $(call cc-option, -Wstringop-overflow) > > subdir-ccflags-y += $(call cc-option, -Wstringop-truncation) > > # The following turn off the warnings enabled by -Wextra > > ifeq ($(findstring 2, $(KBUILD_EXTRA_WARN)),)