From: NeilBrown <neil@brown.name>
To: Andrew Morton <akpm@linux-foundation.org>, Coly Li <colyli@suse.de>
Cc: linux-kernel@vger.kernel.org, linux-bcache@vger.kernel.org,
linux-block@vger.kernel.org,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Michael Lyle <mlyle@lyle.org>,
Kent Overstreet <kent.overstreet@gmail.com>,
Linus Torvalds <torvalds@linux-foundation.org>,
Thomas Gleixner <tglx@linutronix.de>,
Kate Stewart <kstewart@linuxfoundation.org>,
Eric Biggers <ebiggers3@gmail.com>,
Randy Dunlap <rdunlap@infradead.org>
Subject: Re: [PATCH v5 1/2] lib: add crc64 calculation routines
Date: Sat, 29 Dec 2018 13:58:09 +1100 [thread overview]
Message-ID: <87y3899gzi.fsf@notabene.neil.brown.name> (raw)
In-Reply-To: <20180726130210.97450a74c164a02d7cfd79c1@linux-foundation.org>
[-- Attachment #1: Type: text/plain, Size: 1656 bytes --]
On Thu, Jul 26 2018, Andrew Morton wrote:
> On Thu, 26 Jul 2018 13:33:51 +0800 Coly Li <colyli@suse.de> wrote:
>
>> This patch adds the re-write crc64 calculation routines for Linux kernel.
>> The CRC64 polynomial arithmetic follows ECMA-182 specification, inspired
>> by CRC paper of Dr. Ross N. Williams
>> (see http://www.ross.net/crc/download/crc_v3.txt) and other public domain
>> implementations.
Hi Coly and Andrew,
This patch breaks compilation if linux headers files are not installed
(reported at https://github.com/gnubee-git/GnuBee_Docs/issues/75).
Following fixes it.
Thanks,
NeilBrown
From: NeilBrown <neil@brown.name>
Subject: [PATCH] lib: don't depend on linux headers being installed.
gen_crc64table requires linux include files to be installed
in /usr/include/linux. This is a new requrement so hosts that
could previously build the kernel, now cannot.
gen_crc64table makes this requirement by including <linux/swab.h>,
but nothing from that header is actaully used.
So remove the #include, so that the linux headers no longer
need to be installed.
Fixes: feba04fd2cf8 ("lib: add crc64 calculation routines")
Signed-off-by: NeilBrown <neil@brown.name>
---
lib/gen_crc64table.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/gen_crc64table.c b/lib/gen_crc64table.c
index 9011926e4162..094b43aef8db 100644
--- a/lib/gen_crc64table.c
+++ b/lib/gen_crc64table.c
@@ -16,8 +16,6 @@
#include <inttypes.h>
#include <stdio.h>
-#include <linux/swab.h>
-
#define CRC64_ECMA182_POLY 0x42F0E1EBA9EA3693ULL
static uint64_t crc64_table[256] = {0};
--
2.14.0.rc0.dirty
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2018-12-29 2:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-26 5:33 [PATCH v5 0/2] add crc64 calculation as kernel library Coly Li
2018-07-26 5:33 ` [PATCH v5 1/2] lib: add crc64 calculation routines Coly Li
2018-07-26 20:02 ` Andrew Morton
2018-12-29 2:58 ` NeilBrown [this message]
2018-12-29 3:57 ` Coly Li
2018-07-26 5:33 ` [PATCH v5 2/2] bcache: use routines from lib/crc64.c for CRC64 calculation Coly Li
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=87y3899gzi.fsf@notabene.neil.brown.name \
--to=neil@brown.name \
--cc=akpm@linux-foundation.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=colyli@suse.de \
--cc=ebiggers3@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=kent.overstreet@gmail.com \
--cc=kstewart@linuxfoundation.org \
--cc=linux-bcache@vger.kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mlyle@lyle.org \
--cc=rdunlap@infradead.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.