From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ionut Nicu Subject: Re: [PATCH v3 3/3] DT: proc: Add runtime overlay interface in /proc Date: Mon, 11 Nov 2013 11:22:07 +0100 Message-ID: <5280AFCF.8050208@nsn.com> References: <1383923170-24914-1-git-send-email-panto@antoniou-consulting.com> <1383923170-24914-4-git-send-email-panto@antoniou-consulting.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1383923170-24914-4-git-send-email-panto-wVdstyuyKrO8r51toPun2/C9HSW9iNxf@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: ext Pantelis Antoniou , Grant Likely Cc: Rob Herring , Stephen Warren , Matt Porter , Koen Kooi , Alison Chaiken , Dinh Nguyen , Jan Lubbe , Alexander Sverdlin , Michael Stickel , Guenter Roeck , Dirk Behme , Alan Tull , Sascha Hauer , Michael Bohan , Michal Simek , Matt Ranostay , Joel Becker , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org Hi, On 08.11.2013 16:06, ext Pantelis Antoniou wrote: > Add a runtime interface to /proc to enable generic device tree overlay > usage. > > + > + /* start at 256K at first */ > + if (od->alloc == 0) > + od->alloc = SZ_256K / 2; > + Same problem as Guenter reported. I have to include or otherwise the code will not build. > + rcu_read_lock(); > + idr_for_each_entry(&overlay_idr, od, id) { > + seq_printf(m, "%d: %d bytes", id, od->size); For od->size we should use "%zu", otherwise there will be a compilation warning. At least I get one on mips64... Otherwise, I've tested this and it works fine for me also. Thanks, Ionut -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html