Received: by 2002:a19:6911:0:0:0:0:0 with SMTP id e17csp2817337lfc; Wed, 20 Nov 2019 17:40:47 -0800 (PST) X-Google-Smtp-Source: APXvYqy2/opiCWjV6EBhizn4iooaLwmLOckHY2luWSTm2Y7UgwODcrRDquI48DcDoHeCr7swD+dU X-Received: by 2002:a0c:95a1:: with SMTP id s30mr5853904qvs.110.1574300447385; Wed, 20 Nov 2019 17:40:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574300447; cv=none; d=google.com; s=arc-20160816; b=ugZTo2WNjxc+S/OCpB+OR2CqIa0+L+2O+ImImcxdeTNPPhsC4TxF25LhJ8PqD0RXis uVnjWt9DVT7IUunRSyyQDTkQgpyFjH8GXYKyXb3yx6idmo3DXKvVR2rXdJyva27rrfan YmAsfeUojnIt2BaBL2flCE0v5cepQuQO9n+IdeEFoBd8d8vJzVdt1EvDPv29fk0l8VZY 46i+8c4lKCG986rY47R7ZE/WgZ+9ybSLQyZ+S0RcNzie1muF9cU54Mc6p4t5HqZ5ttbz 2Au90da7xUa0ZwW037Rikg4sKMUHECcfsrNnTRdNQWdfLfBlZAx+pk8tBs+MI5zM0+Ba DbTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date:dkim-signature; bh=d9HEX78Gf3QwDUBBn63XFDwb0BC8v043FR9pxW9emjQ=; b=e1Jl/U958ekF/OTZxqTZKREgriW502ZVl2BMjPYRWSrGpgua0wsXTOsXlgup5PlzVS 0Ez3eMAbezCrCS07rqM4t4ckaPS5CFkjzuwgm+Oseh8+ryoUcfgjVx/+Km7y8oB9opQ3 a4iU741YvY4wrY5u8sMoZI5+7lpkt4dCvATRBBcA5T40Y6MVETcR4JNr4sOCNy7sa2Mw YtQ72aJ1boYASBFs6GRBIE/L5OovoMh7lyEFEOL3pT6K/Mh6JltSifcE34eRBeXrCMPB LBJEQRy+U6yOZLkIqWPESp5EpU2RdNLsnINILXQoepKyvRQ+ocPARXgrLxbirHAEJQHd TEEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gibson.dropbear.id.au header.s=201602 header.b=YuK7cFJi; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b55si784180qvh.103.2019.11.20.17.40.47 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Nov 2019 17:40:47 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@gibson.dropbear.id.au header.s=201602 header.b=YuK7cFJi; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:35660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXbSg-0001tw-Ql for alex.bennee@linaro.org; Wed, 20 Nov 2019 20:40:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38344) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXbRP-00009v-4B for qemu-arm@nongnu.org; Wed, 20 Nov 2019 20:39:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXbRO-0006cl-1Q for qemu-arm@nongnu.org; Wed, 20 Nov 2019 20:39:27 -0500 Received: from ozlabs.org ([203.11.71.1]:55943) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iXbRN-0006WB-Lg; Wed, 20 Nov 2019 20:39:25 -0500 Received: by ozlabs.org (Postfix, from userid 1007) id 47JMfz2Tpvz9sPV; Thu, 21 Nov 2019 12:39:23 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1574300363; bh=iiwaM5TR9jwQXbu5E2BRk8RbhYJ57IKYhIJxcQL/1Y8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YuK7cFJiUrR6/AandKCZIjPwbF6jY/ktUgFICN8mDWVs5HGo4dgzb8Ens/DfzmLLH Nb5FfER0CXkjttdueveBHdRJcZTlEU2RUGUAQn2o4k/a9kl2Ed5TIX7S7Wt+Km5cFj lygiceo6z8S5/9OerS4rr5Z2qvicUw+gZauv31o4= Date: Thu, 21 Nov 2019 12:39:11 +1100 From: David Gibson To: Peter Maydell Subject: Re: [PATCH] exynos4210_gic: Suppress gcc9 format-truncation warnings Message-ID: <20191121013911.GR5582@umbus.fritz.box> References: <20191004025509.3012-1-david@gibson.dropbear.id.au> <20191120052701.GJ5582@umbus.fritz.box> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="n7Lj0ukKFj+YqP4g" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 203.11.71.1 X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Igor Mitsyanko , qemu-arm , QEMU Developers Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: fGdZpKYJdJrt --n7Lj0ukKFj+YqP4g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 20, 2019 at 10:31:48AM +0000, Peter Maydell wrote: > On Wed, 20 Nov 2019 at 05:27, David Gibson = wrote: > > > > On Mon, Oct 14, 2019 at 01:51:39PM +0100, Peter Maydell wrote: > > > If we assert() that num_cpu is always <=3D EXYNOS4210_NCPUS > > > is that sufficient to clue gcc in that the buffer can't overflow? > > > > Interestingly, assert(s->num_cpu <=3D EXYNOS$210_NCPUS) is *not* > > sufficient, but assert(i <=3D EXYNOS4210_NCPUS) within the loop *is* > > enough. I've updated my patch accordingly. > > > > This isn't 4.2 material, obviously. Should I just sit on it until 5.0 > > opens, or does one of you have someplace to stage the patch in the > > meanwhile? >=20 > Easy fixes for compiler warnings aren't inherently out of scope > for 4.2. I'm also collecting stuff for 5.0 anyway so I suggest you > just send the patch. Ok, done. --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --n7Lj0ukKFj+YqP4g Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAl3V6r8ACgkQbDjKyiDZ s5I11BAAmIJ3dhSzNf68hiO0dXYXzKUT/1gU5kf7dqZOhdQmNhad0T+iG0WRvXcb 6DIu2ffox80F0l42ogC5JAzcw1O3NQ4GoKe29BPQ5TlqFwoR7GOeAW2D3g4DQPWw PSmJqtEHynIdiVaoEKq2MUxA0pONpf8Qtnri7BhRUA55GqRxIFqvdcJxPIgB7gTV fJMdHReNU0AdKGQFKJUIsUPTCkiIHMZvZnx05hDaZTQ/W1/BxBTk934dDo9+6OEe oFxkYkGFSOBtWMzh5RqmYowcUvJVtcJTMz6EMkRLdD+JolAxwsxIaivD69Fm+YZw vgK2iWKublMFNTcs/HFOdEabRq5qF/4r9dvtP0twnk/pgFO/nYyQdAq73cdc5L/W tV5b+Y529ZrwjFTo2yaahoGPr5jb6eSaQdXwOU710RI+t9pErj1y10X9WD/W8OBQ kCVVGrI4r9QUcCCcmsZN/dmn9FgcayZEAEV4tlwvOj87ZSm40vcPgwglSDEVrUuj XO9luGLznmW674delKoEhp0S5nolPAV0BJ66eOww9BXHE7Ck2Tqtiembd+AfzP/h dnGUm6cpS4Z9XTUqsYGlqF/5HuIWk2Yp8oNW+Ubb3gdz+nL1QsexGNMOv5AXbT2c qbbJb5BBHp49t2xnmfG5gVdm83/YVs4sOckgH6UCkKiFb53hlwc= =mGi0 -----END PGP SIGNATURE----- --n7Lj0ukKFj+YqP4g--