From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: barebox@lists.infradead.org
Cc: "Uwe Kleine-König" <uwe@kleine-koenig.org>
Subject: Re: [PATCH 6/9] net: new function net_read_uint64
Date: Fri, 7 Feb 2014 09:17:39 +0100 [thread overview]
Message-ID: <20140207081739.GB17045@pengutronix.de> (raw)
In-Reply-To: <1391704854-3141-7-git-send-email-u.kleine-koenig@pengutronix.de>
On Thu, Feb 06, 2014 at 05:40:51PM +0100, Uwe Kleine-König wrote:
> From: Uwe Kleine-König <uwe@kleine-koenig.org>
This was added by mistake. Sascha, can you please drop it and use my
pengutronix.de address instead. Ditto for the S-o-b line and patch 7 in
this series.
Thanks
Uwe
> This is needed for nfs3 support as some types became bigger compared to
> nfs2.
>
> Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
> ---
> include/net.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/include/net.h b/include/net.h
> index 8388e2f12ebe..6c86947d9ca3 100644
> --- a/include/net.h
> +++ b/include/net.h
> @@ -276,6 +276,13 @@ static inline uint32_t net_read_uint32(void *from)
> return tmp;
> }
>
> +static inline uint64_t net_read_uint64(void *from)
> +{
> + uint64_t tmp;
> + memcpy(&tmp, from, sizeof(tmp));
> + return tmp;
> +}
> +
> /* write IP *in network byteorder* */
> static inline void net_write_ip(void *to, IPaddr_t ip)
> {
> --
> 1.8.5.2
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2014-02-07 8:18 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-06 16:40 [PATCH 0/9] nfs3 support Uwe Kleine-König
2014-02-06 16:40 ` [PATCH 1/9] net: net_read_uint32: assert that only 32 bit are read Uwe Kleine-König
2014-02-06 16:40 ` [PATCH 2/9] nfs: skip over stale rpc packets Uwe Kleine-König
2014-02-07 8:20 ` Uwe Kleine-König
2014-02-06 16:40 ` [PATCH 3/9] nfs: shorten and simplify rpc_add_credentials a bit Uwe Kleine-König
2014-02-06 16:40 ` [PATCH 4/9] nfs: simplify rpc_lookup_req Uwe Kleine-König
2014-02-06 16:40 ` [PATCH 5/9] nfs: drop an unneeded variable from nfs_do_open() Uwe Kleine-König
2014-02-06 16:40 ` [PATCH 6/9] net: new function net_read_uint64 Uwe Kleine-König
2014-02-07 8:17 ` Uwe Kleine-König [this message]
2014-02-06 16:40 ` [PATCH 7/9] mount: support filesystem options passed via -o Uwe Kleine-König
2014-02-06 16:40 ` [PATCH 8/9] nfs: switch to nfs3 Uwe Kleine-König
2014-02-07 6:48 ` Jean-Christophe PLAGNIOL-VILLARD
2014-02-07 8:52 ` Uwe Kleine-König
2014-02-07 9:50 ` Jean-Christophe PLAGNIOL-VILLARD
2014-02-07 10:23 ` Uwe Kleine-König
2014-02-06 16:40 ` [PATCH 9/9] nfs: parse nfsport and mount port from file system options Uwe Kleine-König
2014-02-07 6:50 ` Jean-Christophe PLAGNIOL-VILLARD
2014-02-07 8:22 ` Uwe Kleine-König
2014-02-07 8:45 ` Jean-Christophe PLAGNIOL-VILLARD
2014-02-07 10:06 ` Uwe Kleine-König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140207081739.GB17045@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=uwe@kleine-koenig.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox