Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4202475pxf; Tue, 30 Mar 2021 01:42:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGoRDEuHxwl+BfBX/Gip+rPlDl9GiJoooXbeDvOWe7XM2ELJ0MUH5tquu/tVqQDC3xrXei X-Received: by 2002:a17:906:cb0a:: with SMTP id lk10mr31792576ejb.479.1617093767077; Tue, 30 Mar 2021 01:42:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617093767; cv=none; d=google.com; s=arc-20160816; b=V1/EYONulHEczS9zBllIPWI3xAXCgv3/BQdrxDsAukgS2+94wubuKIU97kXCAuCYTM hITF/qqtFM0EvgKAeGnZrXIvvoItVnZQvhygEXByI3xkbukw7AUgRPsDj3RcCAnCgkTq JI59TpVLwsOlEOtr62ZYimL1it30tIkCbwoY8aCma7+ju4FTiNFysPEA0FonfEBBWdvo SYN8vv6IC3292xgdP6HLQE1nIBz7ltBBQFqsbtfmdtJrxNkVT+vCWVFnemmKaIAmWySx Sp0Rd20nC7n5vWfcz/C+FfOGOb+26NkX/VPBNTIWy5Ho0AufZQcUMDIw2Ry+D2iQ44Cs 1Wgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jiLzz+FDg8IDgOr7Ru1IW7IRXYaqlH8yrJkDxBSOd+M=; b=i23fA24OBM5XyNNcpDzhRSCzvHe6ZepVPdUbKVwBnkBeNtkPN9Xl0WrGT69la2DzGY s15PeGNek6/DhKux4ngEoLVf86iAvOOfh/JyrqHGLBNp1npPZ+hiZle8IPki4Wxb+CTm Bkf0cj7lWx3Y+hz3sjKZ+25ZGt2XT5lunR64y+SqglQiZvm5p7jr0ndLeDMiO83xjoe2 0AyLg76nyj+HTHw357/ap5zl5JYYHtfx42fdDu3n96Znwe2QOYAke896r76xZW4p19mF CyO5AfEgGEFnEDJIphoaHlPVHzWdAc4uxCyIMEuxChACzSpX8fZWqjGtRkV8uC2W00Ru VDjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=SwyQOSqv; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si14704486ede.37.2021.03.30.01.42.21; Tue, 30 Mar 2021 01:42:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@suse.com header.s=susede1 header.b=SwyQOSqv; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231639AbhC3Ilt (ORCPT + 99 others); Tue, 30 Mar 2021 04:41:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:55554 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230224AbhC3Ilj (ORCPT ); Tue, 30 Mar 2021 04:41:39 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1617093697; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jiLzz+FDg8IDgOr7Ru1IW7IRXYaqlH8yrJkDxBSOd+M=; b=SwyQOSqvaO5avOz2XsxkAeyYpWcAxuEpeTup5y2W/3hjoJIa9VL+ySLWFEDXOGMXYYzaNj yfuPCkvCrHUDqDn4OiHjX+VW5qEwgFf/bjJtmVzQs0eem+tKxgSvbAVrRlz0EIt6ankmR8 9g4gU0a0vUOWreF+dSJDr1Ih1BW0A9I= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id F0DDEB1C1; Tue, 30 Mar 2021 08:41:36 +0000 (UTC) Date: Tue, 30 Mar 2021 10:41:34 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Arnd Bergmann Cc: linux-kernel@vger.kernel.org, Martin Sebor , Tejun Heo , Zefan Li , Johannes Weiner , Arnd Bergmann , x86@kernel.org, Ning Sun , Jani Nikula , Kalle Valo , Simon Kelley , James Smart , "James E.J. Bottomley" , Anders Larsen , Serge Hallyn , Imre Deak , linux-arm-kernel@lists.infradead.org, tboot-devel@lists.sourceforge.net, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-scsi@vger.kernel.org, cgroups@vger.kernel.org, linux-security-module@vger.kernel.org, Roman Gushchin , Christian Brauner , Alexei Starovoitov , Andrii Nakryiko , Odin Ugedal , Cong Wang , Bhaskar Chowdhury Subject: Re: [PATCH 06/11] cgroup: fix -Wzero-length-bounds warnings Message-ID: References: <20210322160253.4032422-1-arnd@kernel.org> <20210322160253.4032422-7-arnd@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Gbn4BprmVLVWv2rO" Content-Disposition: inline In-Reply-To: <20210322160253.4032422-7-arnd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --Gbn4BprmVLVWv2rO Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 22, 2021 at 05:02:44PM +0100, Arnd Bergmann w= rote: > I'm not sure what is expected to happen for such a configuration, > presumably these functions are never calls in that case. Yes, the functions you patched would only be called from subsystems or there should be no way to obtain a struct cgroup_subsys reference anyway (hence it's ok to always branch as if ss=3D=3DNULL). I'd prefer a variant that wouldn't compile the affected codepaths when there are no subsystems registered, however, I couldn't come up with a way how to do it without some preprocessor ugliness. Reviewed-by: Michal Koutn=FD --Gbn4BprmVLVWv2rO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAmBi5DcACgkQia1+riC5 qSjuqxAAkm/zoS+xvdcQUERzkcuVxIruGtTqOse/NCPQQR9aGuJl6iybyjQw7D+r 63+BYz7+BdP8zDg+NSTO354Yt0vsWFtCvuZBBabO91wCheLRPaZhHnGByJa0fXyM SKC2VSvFHKKiFuCG7mG7/WfDQxTGSaUL2jiFXlA5HAV5dKfkia/Jpuf+KtIy5nBR g8g4f44M2wW/TCoBzd5Elt5Cpx6fU2aKuJRCRCE04ts4CQy06/lLcc9H0N7bvgHj 0oxkHbAjXeEnylnni4pfpmJpInUT2kOZuCjSF/WPw2XeLs00AnBnNB3lDP9Pe2qo ippcDc3AFqYMqewKnnxDWoTI3lyMTm8r0yzrDdwpb9Zv28bOCAYiwyoIsFV7+kdN C7DnhiL6d+UgKIzCqRuTPXnluthvSmHGzeblqF1vOAaWOFif4CcRmUtsR7v3EyZN 5aiUTGqVtoKr/pcBNnRU1e2w7ulYpq5sbL/8f9HtnKsZ8MZlLdhdcDoSLjOkuohK OlQgS6p+2otxwk3xft0CdFPPHAFb5/WM6IyKdewFGuY0fohxczWJCRI92x94cfe9 p0JSNLl19JjdM8loYpmBRcmlkoBH+MtkdZiR68b5yX5wcXypubmZPZ9o8ZzQqx1j ZX1/nhuyDl6KHuGW7gJXx8FhCLd6nPyKYVu4wbay23oLzdL/1sk= =nVTO -----END PGP SIGNATURE----- --Gbn4BprmVLVWv2rO--