Received: by 10.213.65.68 with SMTP id h4csp1743175imn; Sun, 1 Apr 2018 13:47:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx48lNtnTcFv0Jd8mrZA2mSxC3egIRV/IK09IcEkLdZFuJ+xzkDVND0uWbLyBMNzN75dwjvKb X-Received: by 10.99.1.133 with SMTP id 127mr4727305pgb.24.1522615625122; Sun, 01 Apr 2018 13:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522615625; cv=none; d=google.com; s=arc-20160816; b=LO2djWV7XGC4VEVt38mo258lc0HfwDz1OIyvsMRjJRLDgHG8GFY/2hEIckJApvseyX 3qp1zRRo3DLuSUo+k+eRW/3iJ7v6QNeMvDkJNWuI21SGy3fQ6mJntMIJyEDDlVVOa5tx RN64RxeC315hIUANzE1zT8n4IZXhP4ab4Xsi1w+edUpy2sUNrgsUxMwMmdfYDrlVEhOZ 4shbxVBZYkq6pspHfh00x4+DtYnFT6ky/iakZbHEARg6zjK/VpB5Xv8zssQhpw/Rx2o/ x+HR2Y21IkXUtOOe+y9uNt5trL/WcGvoWHrnVdWj14g5yCv4PLEBS+l1cFsp6gwyQLrD ubog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:to:from:subject :organization:arc-authentication-results; bh=NtNwyu2U+8S+idTzWFB8/TWZNTF6eVcbPs3ho5D3lwc=; b=TSlUHHiaMV1O9Mljl/LSZsvUkBnkQgFsAiCvS27r38Z/2HGM5AqoPHlUWVsP8sES7b vueP3Qwk3bmk0Fq2zzxaZu8RTnw8A/Q5TfoUWHOsWE0u2dPZ4fMv3Dv2+ytfWEzWnLPe CIuBviKKNWwm0mpwZneboaaRa42ySrRx3V2Oez0t7a2Nu/z52a9BbmZCD0z022X1NFPr KPyVO7EoZI46dTxpWYuF1j9CvdvPr51T0Qwe0/f3D+RokR1BhMqTHVHJu9K55g5/G4xL XvtNz0JMPehqmhUc5yVuSxGmvruR6cuX3OHNSnEdCZsXtJ1fVc/M/FISGLQ8XgxgPmFO KGng== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1si8917710pgp.542.2018.04.01.13.46.51; Sun, 01 Apr 2018 13:47:05 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754695AbeDAUon (ORCPT + 99 others); Sun, 1 Apr 2018 16:44:43 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43206 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754489AbeDAUok (ORCPT ); Sun, 1 Apr 2018 16:44:40 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5C91A4270949 for ; Sun, 1 Apr 2018 20:44:40 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-59.rdu2.redhat.com [10.10.120.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 09FC1D7DF5; Sun, 1 Apr 2018 20:44:39 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 44/45] C++: Can't declare unsized-array in struct cgroup From: David Howells To: linux-kernel@vger.kernel.org Date: Sun, 01 Apr 2018 21:44:39 +0100 Message-ID: <152261547956.30503.7547243896586878189.stgit@warthog.procyon.org.uk> In-Reply-To: <152261521484.30503.16131389653845029164.stgit@warthog.procyon.org.uk> References: <152261521484.30503.16131389653845029164.stgit@warthog.procyon.org.uk> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Sun, 01 Apr 2018 20:44:40 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Sun, 01 Apr 2018 20:44:40 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct cgroup can't be defined with an unsized array in it (ancestors_ids) as the struct is embedded in another struct. Fix it to have a 0 in there. Signed-off-by: David Howells --- include/linux/cgroup-defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h index 9f242b876fde..86fe9c6c6466 100644 --- a/include/linux/cgroup-defs.h +++ b/include/linux/cgroup-defs.h @@ -428,7 +428,7 @@ struct cgroup { struct cgroup_bpf bpf; /* ids of the ancestors at each level including self */ - int ancestor_ids[]; + int ancestor_ids[0]; }; /*