From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751232AbdAYCa1 (ORCPT ); Tue, 24 Jan 2017 21:30:27 -0500 Received: from mga03.intel.com ([134.134.136.65]:55555 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751154AbdAYCa0 (ORCPT ); Tue, 24 Jan 2017 21:30:26 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,281,1477983600"; d="asc'?scan'208";a="926311989" Date: Wed, 25 Jan 2017 10:25:19 +0800 From: Zhenyu Wang To: Alex Williamson Cc: zhi.a.wang@intel.com, zhenyuw@linux.intel.com, airlied@linux.ie, intel-gfx@lists.freedesktop.org, igvt-g-dev@ml01.01.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, jani.nikula@linux.intel.com, daniel.vetter@intel.com Subject: Re: [igvt-g-dev] [PATCH] drm/i915/gvt: Fix kmem_cache_create() name Message-ID: <20170125022519.3q3nomcc2v33jj2y@zhen-hp.sh.intel.com> Reply-To: Zhenyu Wang References: <20170124201524.10895.88940.stgit@gimli.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ysmljypylyuwcqi5" Content-Disposition: inline In-Reply-To: <20170124201524.10895.88940.stgit@gimli.home> User-Agent: NeoMutt/20161126 (1.7.1) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ysmljypylyuwcqi5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2017.01.24 13:15:43 -0700, Alex Williamson wrote: > According to kmem_cache_sanity_check(), spaces are not allowed in the > name of a cache and results in a kernel oops with CONFIG_DEBUG_VM. > Convert to underscores. >=20 > Signed-off-by: Alex Williamson > --- Will send to 4.10 fixes. Thanks! > drivers/gpu/drm/i915/gvt/execlist.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/gpu/drm/i915/gvt/execlist.c b/drivers/gpu/drm/i915/g= vt/execlist.c > index f32bb6f..d03b229 100644 > --- a/drivers/gpu/drm/i915/gvt/execlist.c > +++ b/drivers/gpu/drm/i915/gvt/execlist.c > @@ -826,7 +826,7 @@ int intel_vgpu_init_execlist(struct intel_vgpu *vgpu) > INIT_LIST_HEAD(&vgpu->workload_q_head[i]); > } > =20 > - vgpu->workloads =3D kmem_cache_create("gvt-g vgpu workload", > + vgpu->workloads =3D kmem_cache_create("gvt-g_vgpu_workload", > sizeof(struct intel_vgpu_workload), 0, > SLAB_HWCACHE_ALIGN, > NULL); >=20 > _______________________________________________ > igvt-g-dev mailing list > igvt-g-dev@lists.01.org > https://lists.01.org/mailman/listinfo/igvt-g-dev --=20 Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827 --ysmljypylyuwcqi5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAliIDI8ACgkQsQQaM014GCdS+QCeM1Z6VbSEc7vzLsl+2eIB4Fyb BOYAoJWrwFvnkI1VwCtnYc+I/f8pg9Bo =7uMn -----END PGP SIGNATURE----- --ysmljypylyuwcqi5--