Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp886416rdd; Wed, 10 Jan 2024 02:30:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlUXRgYWFf/n9u3L4bIJIQaTJA5ZCaV2HrBu3DeF9R+VBD/Suhw0UW5b4od2doSIXchahN X-Received: by 2002:ac8:7f41:0:b0:429:bc12:3929 with SMTP id g1-20020ac87f41000000b00429bc123929mr38771qtk.17.1704882618742; Wed, 10 Jan 2024 02:30:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704882618; cv=none; d=google.com; s=arc-20160816; b=jJXVUHZ89x8viKx9UHG46mw+eYpt0HnLnRElfrmEuWYfwGPD0AVk17WehDawRC+Bqn Qb2hei9bvzj/kZWlOzjQg4RBvHkw3E8zSW7S6VcnlwWXi5eBcv4BynHMjlSogwK+cVz5 8cHw5zmi1RKdLCewRKpIaMkTB4BvJhwRaU4CqZ1mz1M1mGNpAfqisPfbAJLZmvVMoGFA 2cI/wIxoboHocdg7AYadqV8NO8J4m/C+3ded2ya0YFbDG53z9XTJSGrfMGhgLZGB4LLI tfeHwSTdWdV2YuIXXz1d7d3aIfxhDFqlPQoA4nJwxJHY44wR66WUwu6qjny2lfIHB+Ee 1Srw== 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=PZ1VH3/k7hT/XguqdwF68HdFUwkr8c3Yppy6EPgG6xE=; fh=r5UW+4ouoTtl1Z2LDXrlLOUuhsbWuoVax1RP0RWh1Hw=; b=PElWtvpjjPPDg/e7j6kwDbETdywxumlFkP1DauehtdQv7mZibWVWj4DAGOLkWtnizc W/WhAnIjzok3u5otpTqlPrdDvbtfrUdLpyoxtycNLVs+zsk/kXp3Qx34g3OXc/IPjkyN 9Yr/K1C+DxSvI8qzWCRgvdQBwwPb1S9/LcZnkzkN2tlmn2MzMz92zgIVHYloQqh7n//b GzgAHv/HFAyXRtElFix5IUtns1Uy070j9DFrjioSjbIFsXYjDHUr2005oOBzGdhcD4ne nJZqsh//rrCdWsiaBy5thLZ4w3CxWT/8ce4ZvNR9GHCxvPUuybqOkDZ1OeIRkDrfMhML oUnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b="EMM4k/SM"; spf=pass (google.com: domain of linux-kernel+bounces-21995-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21995-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g9-20020ac87f49000000b00429b2754668si1144068qtk.718.2024.01.10.02.30.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 02:30:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21995-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b="EMM4k/SM"; spf=pass (google.com: domain of linux-kernel+bounces-21995-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21995-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E98841C20F9E for ; Wed, 10 Jan 2024 10:30:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BA6F47F68; Wed, 10 Jan 2024 10:26:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EMM4k/SM" 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 4D1C946BA6 for ; Wed, 10 Jan 2024 10:26:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADA0BC433C7; Wed, 10 Jan 2024 10:26:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704882414; bh=u0i2FaVQlYbTLnWyHEIAv2lNsR9XhIwGw/u5AT2iYxI=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=EMM4k/SMS/MJdNAJ/5RgLZiJOmTiYQxja4QuNj2EQ/gmtXKJyX+iDkJLek81nZURv LqRL8dmmie0ZSNDOAaqlhlyBzqXEpoETaUFlUpMIk0tM6z5HF4kJ0qOqobNh3HIGPP iB+wJ1hiyufll73xHdcLdCAMFjt2sFFED5Ch5YTsBuMdSWbjes3xC+ySZMQ1HUWDPc XGGeirJBMv/FCNHQfk5Otp+IKsy91rYUN6yq4VfqXqo3E9mdvilyYvxPKmTkpXX0ve nmviqBfe9YOxv+QhRqoJGcqqYaY4pqfaIjp/zFd5MjUD5UCu3Mm9wF+7PazAlF3nV6 oI5jhaAnHPk1Q== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 52479CE0AB0; Wed, 10 Jan 2024 02:26:54 -0800 (PST) Date: Wed, 10 Jan 2024 02:26:54 -0800 From: "Paul E. McKenney" To: Stephen Rothwell Cc: Lucas De Marchi , linux-kernel@vger.kernel.org, intel-xe@lists.freedesktop.org Subject: Re: [BUG] allmodconfig build error in next-20240108 Message-ID: <3a10ef2b-acbe-4d80-805a-e947e15e5db3@paulmck-laptop> Reply-To: paulmck@kernel.org References: <45ad1d0f-a10f-483e-848a-76a30252edbe@paulmck-laptop> <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> 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: <20240110160335.2bad7d54@oak> 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 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)),)