Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2819816pxb; Fri, 5 Nov 2021 05:20:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZOmsQ/JeHfD9HOeyVb1GoaZEIYTgcLBzGxFskSJO7i/CeqaVCweeH8IXdgqAmS951ia1h X-Received: by 2002:a17:906:9b8d:: with SMTP id dd13mr60328687ejc.531.1636114852100; Fri, 05 Nov 2021 05:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636114852; cv=none; d=google.com; s=arc-20160816; b=Q+i8UvBqLclbXd1T07dPDMvojSg+y/8Wd9kYw3x3EtuilToWB9xBXDn7wOHxdYsrr4 TgEeLzGQd/cbvE13uRfmv0Xnub9A83Gzc5LWgZze9LER3s4mXCgAmZzitKR4AeR50bLS vWHchnHpNFhdPXEfVj4QIiX82xBbe/Aclmh3ZCjhuFQ3e6Mt4OYJ5juDO8uK1cdzHOCr 4pgJHNxwsWhGznRnJ7uZatNh2eAyaDQjeiOCJe0PusrKdLjw2y/OhkI2VvNTPShBIs/Z 72kLLOFFMYHI2yn9nXfepA4H+fYwdsGK/LkWkEsIgb+G2nd5w2/TKvb9dpDYYMURMb7c Aegg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=gfWtbQKAuNJrxcVbQqlAYg3CczTf6pLOT7NVTA0nKsY=; b=gjIhhXXSd/wbmCh5OvTdSVh1E50BTS0X/17Q0ujf+4eEZc4+1zVbPc84PUwWr/keC3 MWPWM4aMmpQlGxot7+TTFrKIPN6NErtNqbB4uy39u1Y+FwuPYR5VuRP98HxUXCJqGWaj qbO4W2982xgpNim8BHiN6DwXjiGGKUPcYIG6PsP6LiC/o8cHNt29au5LUz7wncMr+6mM Hjehppuxr5Hf3AsTJ0xevMR7+VmDKSWcEMkIVNwTeTYtmwF3XHmfDbbrT41OHbTZKo+l oUwLMl/ywL+SPC3AVabJg3vCf0g1xiHA4isMjm35jhdiAK3iKkc0cWyjUlSA4wl1bmx1 zybA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e7si15378145edk.440.2021.11.05.05.20.24; Fri, 05 Nov 2021 05:20:52 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232054AbhKELGd (ORCPT + 99 others); Fri, 5 Nov 2021 07:06:33 -0400 Received: from mga04.intel.com ([192.55.52.120]:41728 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232067AbhKELGb (ORCPT ); Fri, 5 Nov 2021 07:06:31 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10158"; a="230605216" X-IronPort-AV: E=Sophos;i="5.87,211,1631602800"; d="scan'208";a="230605216" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Nov 2021 04:03:49 -0700 X-IronPort-AV: E=Sophos;i="5.87,211,1631602800"; d="scan'208";a="501901059" Received: from jprisaca-mobl.ger.corp.intel.com (HELO localhost) ([10.251.214.70]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Nov 2021 04:03:46 -0700 From: Jani Nikula To: Stephen Rothwell , Dave Airlie Cc: Daniel Vetter , Intel Graphics , DRI , Linux Kernel Mailing List , Linux Next Mailing List , Thomas Zimmermann , Maarten Lankhorst , Maxime Ripard Subject: Re: linux-next: build failure after merge of the drm-misc tree In-Reply-To: <20211105171517.287de894@canb.auug.org.au> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20211015202648.258445ef@canb.auug.org.au> <20211101194223.749197c5@canb.auug.org.au> <20211105171517.287de894@canb.auug.org.au> Date: Fri, 05 Nov 2021 13:03:43 +0200 Message-ID: <874k8qampc.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 05 Nov 2021, Stephen Rothwell wrote: > Hi all, > > On Mon, 1 Nov 2021 19:42:23 +1100 Stephen Rothwell wrote: >> >> On Fri, 15 Oct 2021 20:26:48 +1100 Stephen Rothwell wrote: >> > >> > After merging the drm-misc tree, today's linux-next build (arm >> > multi_v7_defconfig) failed like this: >> > >> > drivers/gpu/drm/drm_modeset_lock.c:111:29: error: conflicting types for '__stack_depot_save' >> > 111 | static depot_stack_handle_t __stack_depot_save(void) >> > | ^~~~~~~~~~~~~~~~~~ >> > In file included from include/linux/page_ext.h:7, >> > from include/linux/mm.h:25, >> > from include/linux/kallsyms.h:13, >> > from include/linux/bpf.h:20, >> > from include/linux/bpf-cgroup.h:5, >> > from include/linux/cgroup-defs.h:22, >> > from include/linux/cgroup.h:28, >> > from include/linux/memcontrol.h:13, >> > from include/linux/swap.h:9, >> > from include/linux/suspend.h:5, >> > from include/linux/regulator/consumer.h:35, >> > from include/linux/i2c.h:18, >> > from include/drm/drm_crtc.h:28, >> > from include/drm/drm_atomic.h:31, >> > from drivers/gpu/drm/drm_modeset_lock.c:24: >> > include/linux/stackdepot.h:18:22: note: previous declaration of '__stack_depot_save' was here >> > 18 | depot_stack_handle_t __stack_depot_save(unsigned long *entries, >> > | ^~~~~~~~~~~~~~~~~~ >> > >> > Caused by commit >> > >> > cd06ab2fd48f ("drm/locking: add backtrace for locking contended locks without backoff") >> > >> > This may only have been revealed because of another fix I have had to >> > apply today. >> > >> > I have applied the following patch for today. >> > >> > From: Stephen Rothwell >> > Date: Fri, 15 Oct 2021 20:17:52 +1100 >> > Subject: [PATCH] drm/locking: fix for name conflict >> > >> > Fixes: cd06ab2fd48f ("drm/locking: add backtrace for locking contended locks without backoff") >> > Signed-off-by: Stephen Rothwell >> > --- >> > drivers/gpu/drm/drm_modeset_lock.c | 6 +++--- >> > 1 file changed, 3 insertions(+), 3 deletions(-) >> > >> > diff --git a/drivers/gpu/drm/drm_modeset_lock.c b/drivers/gpu/drm/drm_modeset_lock.c >> > index 4d32b61fa1fd..ee36dd20900d 100644 >> > --- a/drivers/gpu/drm/drm_modeset_lock.c >> > +++ b/drivers/gpu/drm/drm_modeset_lock.c >> > @@ -79,7 +79,7 @@ >> > static DEFINE_WW_CLASS(crtc_ww_class); >> > >> > #if IS_ENABLED(CONFIG_DRM_DEBUG_MODESET_LOCK) >> > -static noinline depot_stack_handle_t __stack_depot_save(void) >> > +static noinline depot_stack_handle_t __drm_stack_depot_save(void) >> > { >> > unsigned long entries[8]; >> > unsigned int n; >> > @@ -108,7 +108,7 @@ static void __stack_depot_print(depot_stack_handle_t stack_depot) >> > kfree(buf); >> > } >> > #else /* CONFIG_DRM_DEBUG_MODESET_LOCK */ >> > -static depot_stack_handle_t __stack_depot_save(void) >> > +static depot_stack_handle_t __drm_stack_depot_save(void) >> > { >> > return 0; >> > } >> > @@ -317,7 +317,7 @@ static inline int modeset_lock(struct drm_modeset_lock *lock, >> > ret = 0; >> > } else if (ret == -EDEADLK) { >> > ctx->contended = lock; >> > - ctx->stack_depot = __stack_depot_save(); >> > + ctx->stack_depot = __drm_stack_depot_save(); >> > } >> > >> > return ret; >> >> This has reappeared today. I don't know what happened to the drm-misc >> tree over the weeked :-( >> >> I have reapplied the above fix. > > So the above drm-misc commit is now in the drm tree, but its fix up > commit vanished from the drm-misc tree over the past weekend :-( Cc: drm-misc maintainers. We normally point drm-misc/for-linux-next at drm-misc-next, *except* to drm-misc-next-fixes during the merge window. This is because drm-misc-next already starts accumulating stuff that's headed to one release later, e.g. currently v5.17. I think that's part of the reason. I probably should have pushed c4f08d7246a5 ("drm/locking: fix __stack_depot_* name conflict") to drm-misc-next-fixes. There's still something funny going on, because the drm-misc-next pull request [1] isn't part of the drm pull request for v5.16 [2]. Is there going to be another drm pull? BR, Jani. [1] https://lore.kernel.org/r/20211014120452.2wicnt6hobu3kbwb@gilmour [2] https://lore.kernel.org/r/CAPM=9tyOyz4_-OdjDduFkponSXycO6maBDFsWGTLv+j=_Vp6ww@mail.gmail.com -- Jani Nikula, Intel Open Source Graphics Center