Date: Sat, 11 Jun 2011 09:40:13 -0700 From: Garrett Cooper <yanegomi@gmail.com> To: sam@FreeBSD.org Cc: freebsd-hackers@freebsd.org Subject: [PATCH] do bswap32 properly with safe(4) Message-ID: <BANLkTi=n0kZPBZWmtDfLOmaAzqPbwmB7Dg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--20cf307ca26428ef7504a5725723 Content-Type: text/plain; charset=ISO-8859-1 Hi Sam! For some odd reason every time I compile GENERIC (i.e. don't try to compile safe(4) as a standalone module, and I don't compile it with my standard test kernel) I run into an error where the compiler complains about the result from bswap32 in safe(4) being unused. This patch fixes that warning so the module compiles properly and more importantly does the network to host conversions which may be required for the driver under some architectures. Thanks! -Garrett --20cf307ca26428ef7504a5725723 Content-Type: text/x-patch; charset=US-ASCII; name="sys-safe-do-bswap32.patch" Content-Disposition: attachment; filename="sys-safe-do-bswap32.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gossid5q0 SW5kZXg6IHN5cy9kZXYvc2FmZS9zYWZlLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL2Rldi9zYWZlL3Nh ZmUuYwkocmV2aXNpb24gMjIyOTgwKQorKysgc3lzL2Rldi9zYWZlL3NhZmUuYwkod29ya2luZyBj b3B5KQpAQCAtMTU4MCw5ICsxNTgwLDEyIEBACiAJCQkJICogU0hBLTEgSUNWJ3MgYXJlIGJ5dGUt c3dhcHBlZDsgZml4ICdlbSB1cAogCQkJCSAqIGJlZm9yZSBjb3B5IHRoZW0gdG8gdGhlaXIgZGVz dGluYXRpb24uCiAJCQkJICovCi0JCQkJYnN3YXAzMihyZS0+cmVfc2FzdGF0ZS5zYV9zYXZlZF9p bmRpZ2VzdFswXSk7Ci0JCQkJYnN3YXAzMihyZS0+cmVfc2FzdGF0ZS5zYV9zYXZlZF9pbmRpZ2Vz dFsxXSk7Ci0JCQkJYnN3YXAzMihyZS0+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