Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1678534ybc; Wed, 13 Nov 2019 02:38:36 -0800 (PST) X-Google-Smtp-Source: APXvYqyW1UUZMt9PrcXcTWLp6w6/i4eIsSKWNgmgAoY3VfhZvUIKj4xSHPQXvEj6AzOoL6BzQUrx X-Received: by 2002:a17:906:e88:: with SMTP id p8mr1968813ejf.15.1573641516288; Wed, 13 Nov 2019 02:38:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573641516; cv=none; d=google.com; s=arc-20160816; b=v0pQ1ftgBea7m0K8Oe6GC90IOwx5jBknO2TQ6kRQK0rxQ7LPiFS3SPPr0FD5ZOISAL WQOFcEt7S7cMCBvDqu37O+U3kZaVxZ42BC2G5sX6ITosHkzLx8sS4JmOQtXX6IqC8Wae CTDpDJKW0tZBD8UUG7rX/IW8b5dxThHhB7F5jVMTxhG/6WdT9QJV3/IEuD/oAqfOpzFB SIRnqdA2d9Z8znIjlYYpjR/rK70PmSK/iF6p9vt/81iZpqKkdP1CN+szA37ftTl7fd19 trATF+v+XHyVsW2C2KcQzXtVYr1q+6XPnX2UsjX3Ckb0GXSbRy+n5lGIKVmGgwGpueEl 6exw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TVr4Zus60KaCbkcvhucYDeoACRth+K9Ta7oHMfuB33I=; b=SAjfYS0YTyptlQ9PcEjTnXNKEl3pxk8nq3YYWceI4aR0tBlQtNVqSlDvshYN6a4OMH zzZniY7oO0YlcIpReyu4WtTpNLwMqIvCet5qelsKxPhKHN9AIQ7B0WeNM8bKgFgKy+Ob xIrugRf+MupJQbC67td6Fmj6/1hHm6c6yY/G7F/EtXyLYVwudM12j+pvXkrIzH0vSm/q i/1SyjsiInR8M4My39VIcHfFQ/FU3BPfc4l+gYwgNesUfPm9P8RiToljQKKVeypyTWAC RaFtSmi3474ak7fckLAW1gsHQicjTQWyw7PZGqFGhppqdyGEUUWvPv50JtOWa2p5h4Es iq1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15si868254eju.310.2019.11.13.02.38.11; Wed, 13 Nov 2019 02:38:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727593AbfKMKfe (ORCPT + 99 others); Wed, 13 Nov 2019 05:35:34 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:48400 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726107AbfKMKfe (ORCPT ); Wed, 13 Nov 2019 05:35:34 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 960281C122C; Wed, 13 Nov 2019 11:35:32 +0100 (CET) Date: Wed, 13 Nov 2019 11:35:31 +0100 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Kan Liang , "Peter Zijlstra (Intel)" , Alexander Shishkin , Arnaldo Carvalho de Melo , Jiri Olsa , Linus Torvalds , Mark Rutland , Namhyung Kim , Stephane Eranian , Thomas Gleixner , Vince Weaver , linux-drivers-review@eclists.intel.com, linux-perf@eclists.intel.com, Ingo Molnar , Sasha Levin Subject: Re: [PATCH 4.19 097/125] perf/x86/uncore: Fix event group support Message-ID: <20191113103531.GB32553@amd> References: <20191111181438.945353076@linuxfoundation.org> <20191111181452.768177907@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E39vaYmALEf/7YXx" Content-Disposition: inline In-Reply-To: <20191111181452.768177907@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --E39vaYmALEf/7YXx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > return ret; > } > =20 > +static void uncore_pmu_enable(struct pmu *pmu) > +{ > + struct intel_uncore_pmu *uncore_pmu; > + struct intel_uncore_box *box; > + > + uncore_pmu =3D container_of(pmu, struct intel_uncore_pmu, pmu); > + if (!uncore_pmu) > + return; AFAICT this test can never trigger. > +static void uncore_pmu_disable(struct pmu *pmu) > +{ > + struct intel_uncore_pmu *uncore_pmu; > + struct intel_uncore_box *box; > + > + uncore_pmu =3D container_of(pmu, struct intel_uncore_pmu, pmu); > + if (!uncore_pmu) > + return; And neither can this one. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --E39vaYmALEf/7YXx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl3L3HMACgkQMOfwapXb+vKJOQCgkm41YCUpNuyFUIS1TlRBAuN1 OSwAoJ+mR7PwHs7iO2U9UhToNz4WjdWr =ZP7K -----END PGP SIGNATURE----- --E39vaYmALEf/7YXx--