[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMuHMdXM3f+P8ZyydxnO5z2g3F2n2c3KzfDFbC6jYgZJt+1ULw@mail.gmail.com>
Date: Mon, 15 May 2017 18:01:11 +0200
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Georgi Djakov <georgi.djakov@...aro.org>
Cc: Linux PM list <linux-pm@...r.kernel.org>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Rob Herring <robh+dt@...nel.org>,
Kevin Hilman <khilman@...libre.com>,
Michael Turquette <mturquette@...libre.com>,
Greg KH <gregkh@...uxfoundation.org>,
Vincent Guittot <vincent.guittot@...aro.org>,
skannan@...eaurora.org, Stephen Boyd <sboyd@...eaurora.org>,
Andy Gross <andy.gross@...aro.org>, seansw@....qualcomm.com,
davidai@...cinc.com,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-arm-msm@...r.kernel.org" <linux-arm-msm@...r.kernel.org>
Subject: Re: [RFC v1 2/3] interconnect: Add Qualcomm msm8916 interconnect
provider driver
Hi Georgi,
On Mon, May 15, 2017 at 5:35 PM, Georgi Djakov <georgi.djakov@...aro.org> wrote:
> --- /dev/null
> +++ b/drivers/interconnect/qcom/interconnect_msm8916.c
> +struct qcom_interconnect_node {
> + struct interconnect_node node;
> + unsigned int id;
4 byte gap due to alignment rules on 64-bit.
> + unsigned char *name;
> + struct interconnect_node *links[8];
> + int num_links;
> + int port;
> + int buswidth;
4 byte gap due to alignment rules.
> + u64 ib;
> + u64 ab;
> + u64 rate;
> +};
You can avoid the gaps by putting members of the same size and alignment
together.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Powered by blists - more mailing lists