Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3007819pxj; Mon, 31 May 2021 17:35:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXLLtCGeD02Mz8GiRXT5VELrTuEG1uj6ZrCxFqXbWcqblJ2vCPAW+YFZE7UbPzNDCmjbAs X-Received: by 2002:a05:6e02:5c7:: with SMTP id l7mr2520230ils.283.1622507703698; Mon, 31 May 2021 17:35:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622507703; cv=none; d=google.com; s=arc-20160816; b=ZkJI/LQJwgKWX/ys/Scg0wQsrvWgwwWRMTY4POF+IPLea0v7dUe2x8bKZxT3mqJMAA HU+PeA9RayJ1w16abyg1+A16lBp4zBm5pqU/9ImcmLVxQw0SXj4sWoiGp0qkXXjiMXWP Ysk6WiYYOyH3Q+qUqZeY5zFRzSE1/PZGkUhbKDWt/4QRZxK8MqLWvYeD8gyaxSktsEJY ZGdesUXuhipBruI2lQXIem4jrXvr/OR0GjYc1U7KAwr1XcFbyhIlk5Sj8qZ+gFsicTs7 OXSNNiVwx5ZdLBi8ThNpHaqPHwoNGKqwmcEzUX9QYgcHKMYAXhNuJp4gLxQ0lV96PZMr PPBQ== 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:subject:cc:to:from:date :dkim-signature; bh=qrnYIDpNy/+SmH/pIR7g9+pYC28D2qByTXWfnytH4cE=; b=iB9AfNa787fa1DwdB30iRM+wHa7DyJbBCQoonyDz6qv+NytDY5+Vt8kmE3k4qQ4paI ffJYKkm9pFOSLUXnRjYYXi5082rZcryPgcqlMb1nTFzRXoNOkLi5tXcp83ilXgMYAq3n ei6dkKcYV0ThEULABjuYS6spV/r9dOv6Rc5qTuhmpa/ldMEI0vBVeWxxeRNFjykP6UdD 7u9FuvH+ErbvgEAhHrDG0orqjLi+g6wDTRM09m0jwgbNbFjpAM3kVcpNWmjF8Mcyzas4 OFPZeqEraUaks8vzJwWM8P10fzWHMBKwuSL2CE7PQzsfb0qvN3lfSRquCGO7jdxBh18p FSWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=APtKHPvB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si16725235jan.118.2021.05.31.17.34.36; Mon, 31 May 2021 17:35:03 -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=@canb.auug.org.au header.s=201702 header.b=APtKHPvB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232412AbhFAAeo (ORCPT + 99 others); Mon, 31 May 2021 20:34:44 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:45487 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232081AbhFAAeo (ORCPT ); Mon, 31 May 2021 20:34:44 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4FvCmk0ctBz9sSs; Tue, 1 Jun 2021 10:32:52 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1622507582; bh=uT+f9seNtqv+rBUDfpbtocFbnuU+Usvrb1hEKeN4IkE=; h=Date:From:To:Cc:Subject:From; b=APtKHPvBdzmra7MUh9f3i1vY8HvFOYLLqJ4+cbRTt0sCMOJnV/MWp8bHi/hDFjNmH CDDpr7mIuHJOK5N+3fdY9Ffi7cR2Hn769ml8/+chmVrJAYh7nJ5g+NwYRo7lUPAsjV ErzLil1IhleL/WrAYX1S38IAo/fvlSoLfsuqRtptVF6vaSqgIcaNV7CJaUEBKwcoRw LZri6y94vxq/rvDOgteQHoh4Pn2rrqQtbKM5M9K/AjDtvQEV7p4JS+cc3BTOOCvF/d p8LrXfBXSDGkDaxGkdoOMh4QT/0xilyEeMuuQzSi9jqxYlzvT9ly//ADEu6zB2O9lD /FdDIL1bPQ0Fw== Date: Tue, 1 Jun 2021 10:32:50 +1000 From: Stephen Rothwell To: Wolfram Sang , Chris Wilson Cc: Bibby Hsieh , Hsin-Yi Wang , Marek Szyprowski , Linux Kernel Mailing List , Linux Next Mailing List , Daniel Vetter , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Intel Graphics , DRI , Dave Airlie Subject: linux-next: build failure after merge of the i2c tree Message-ID: <20210601103250.07301254@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Ou=NQ8ZD7IfuNCXYZAlReGG"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/Ou=NQ8ZD7IfuNCXYZAlReGG Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, After merging the i2c tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from drivers/gpu/drm/i915/i915_gem.c:1250: drivers/gpu/drm/i915/selftests/i915_gem.c:97:13: error: conflicting types f= or 'pm_suspend' 97 | static void pm_suspend(struct drm_i915_private *i915) | ^~~~~~~~~~ In file included from include/linux/regulator/consumer.h:35, from include/linux/i2c.h:18, from drivers/gpu/drm/i915/i915_drv.h:39, from drivers/gpu/drm/i915/gt/intel_context.h:14, from drivers/gpu/drm/i915/gem/i915_gem_context.h:12, from drivers/gpu/drm/i915/i915_gem.c:44: include/linux/suspend.h:331:12: note: previous declaration of 'pm_suspend' = was here 331 | extern int pm_suspend(suspend_state_t state); | ^~~~~~~~~~ Caused by commit 5a7b95fb993e ("i2c: core: support bus regulator controlling in adapter") interacting with commit 3f51b7e1f36a ("drm/i915/selftests: Add a simple exerciser for suspend/hib= ernate") from Linus' tree (v4.20-rc1) I have added the following merge fix patch: From: Stephen Rothwell Date: Tue, 1 Jun 2021 10:25:49 +1000 Subject: [PATCH] drm/i915/selftests: Avoid name clash with pm_ global funct= ions Signed-off-by: Stephen Rothwell --- drivers/gpu/drm/i915/selftests/i915_gem.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i915/selftests/i915_gem.c b/drivers/gpu/drm/i9= 15/selftests/i915_gem.c index dc394fb7ccfa..5d674708b047 100644 --- a/drivers/gpu/drm/i915/selftests/i915_gem.c +++ b/drivers/gpu/drm/i915/selftests/i915_gem.c @@ -87,14 +87,14 @@ static void simulate_hibernate(struct drm_i915_private = *i915) intel_runtime_pm_put(&i915->runtime_pm, wakeref); } =20 -static int pm_prepare(struct drm_i915_private *i915) +static int test_pm_prepare(struct drm_i915_private *i915) { i915_gem_suspend(i915); =20 return 0; } =20 -static void pm_suspend(struct drm_i915_private *i915) +static void test_pm_suspend(struct drm_i915_private *i915) { intel_wakeref_t wakeref; =20 @@ -104,7 +104,7 @@ static void pm_suspend(struct drm_i915_private *i915) } } =20 -static void pm_hibernate(struct drm_i915_private *i915) +static void test_pm_hibernate(struct drm_i915_private *i915) { intel_wakeref_t wakeref; =20 @@ -116,7 +116,7 @@ static void pm_hibernate(struct drm_i915_private *i915) } } =20 -static void pm_resume(struct drm_i915_private *i915) +static void test_pm_resume(struct drm_i915_private *i915) { intel_wakeref_t wakeref; =20 @@ -148,16 +148,16 @@ static int igt_gem_suspend(void *arg) if (err) goto out; =20 - err =3D pm_prepare(i915); + err =3D test_pm_prepare(i915); if (err) goto out; =20 - pm_suspend(i915); + test_pm_suspend(i915); =20 /* Here be dragons! Note that with S3RST any S3 may become S4! */ simulate_hibernate(i915); =20 - pm_resume(i915); + test_pm_resume(i915); =20 err =3D switch_to_context(ctx); out: @@ -183,16 +183,16 @@ static int igt_gem_hibernate(void *arg) if (err) goto out; =20 - err =3D pm_prepare(i915); + err =3D test_pm_prepare(i915); if (err) goto out; =20 - pm_hibernate(i915); + test_pm_hibernate(i915); =20 /* Here be dragons! */ simulate_hibernate(i915); =20 - pm_resume(i915); + test_pm_resume(i915); =20 err =3D switch_to_context(ctx); out: --=20 2.30.2 --=20 Cheers, Stephen Rothwell --Sig_/Ou=NQ8ZD7IfuNCXYZAlReGG Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmC1gDIACgkQAVBC80lX 0GzH1gf/UGyYLcozbfcYhQ3Pz+8dBAL61LG9IcPII5mD27h4tAzXw0clnFYW/Esi jqnG7bkrEyyyhWA/mr/4ESE5qVL9JTaNLjgdRMqsxDaOA6R9Mfqi4grbilKJseWb q+b4CReChUYCm1JOAw2zwDhX+EV3X4UVSmua4yW1UCDm3UU6pDzJYyx7n1ZoiNRn q4h2r6+B3zFHsFqnZMMjm+/Vrr3VobcpeeWDqc4S6CN5sPkWuYkvdCFQOJWRzD5x ThivC1Sse6TDbUgFwQtWLg+NNV0LutWHnatyVcC1k6BCY03tChioJ3phFNMgl2ZB 1+iwOB13j9UmES0ArupFAYpPY3fkjQ== =+chF -----END PGP SIGNATURE----- --Sig_/Ou=NQ8ZD7IfuNCXYZAlReGG--