Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8832986imu; Sat, 29 Dec 2018 04:51:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN7v148c/2cn6KlalsTa2v1PLFTs4dfykoeoYsSpQg6HeLypnY1QBxavU99e7DAgVnM0EAPj X-Received: by 2002:a65:63d3:: with SMTP id n19mr1554906pgv.179.1546087859963; Sat, 29 Dec 2018 04:50:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546087859; cv=none; d=google.com; s=arc-20160816; b=kcb5j+3h5lQmOytZbJnknqqDdpA8ur862eXvQqusMY1/Vbo2N1dFa678vsKbRpAbpn h8sM5sFnMRzyvIe4KNPgq7kENzXeuYZqZrUuYctomlYNpYTVgEWxGYH/b2HJZZmP0sBa OOgayewtvalVfMQCnegxzU3+LaOt/WxdLyv3KKkM5UcRdY6MHrhYbWZmtQoHUsyoNrPx 43k99Wlsr/CAP+UKByZHN7KVFVAEfprGA/DK96z+Fr7UIX0uiM85HnODYj4lwvd937+5 9DsUe07CT5TCLA8u7dptNIxU6XaUfC0J8IakszPAYHugJzwewkwAvtus58++qbWxbte2 mVLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from; bh=Mh5Ub1OGizKLxNI+icVkw/VrvRNpclopdklEI0wD+Hg=; b=SY2wDh67632E/IgfzwROwH3EjOsIk17Th7SK9JA+Mq9KN5Wv7XalmCvq4LcrT4gEBy M5gxU3tZQEwCLZtBBqBHXpkuUHaIEx/oFZmAOX8rDD/N+VbLNJuU7vMbVJ7LEfXKlpqu Q1GLt/rIwC/xDxga6KO4t1mSno0RzqHmUi5RmnDiXrr5KEdwc4kWxmmz3csYsnCwXpHS 5iRxDV2AzriaagtJ740m5NAcMwfnjL3kJFa5PUwiguGy+jg3/XuD5CbliLHIwSwab4fo nlko2cSxp7uR3nN0eLSbbQrqkOabZLvT1Tbz2dlGhQt8tXBTLqo8f5U+SjLQ7zwkSocs EJLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f11si38469273plo.254.2018.12.29.04.50.44; Sat, 29 Dec 2018 04:50:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730051AbeL2C6W (ORCPT + 99 others); Fri, 28 Dec 2018 21:58:22 -0500 Received: from mx2.suse.de ([195.135.220.15]:45716 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727931AbeL2C6W (ORCPT ); Fri, 28 Dec 2018 21:58:22 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id CC09DAC9F; Sat, 29 Dec 2018 02:58:19 +0000 (UTC) From: NeilBrown To: Andrew Morton , Coly Li Date: Sat, 29 Dec 2018 13:58:09 +1100 Cc: linux-kernel@vger.kernel.org, linux-bcache@vger.kernel.org, linux-block@vger.kernel.org, Andy Shevchenko , Greg Kroah-Hartman , Michael Lyle , Kent Overstreet , Linus Torvalds , Thomas Gleixner , Kate Stewart , Eric Biggers , Randy Dunlap Subject: Re: [PATCH v5 1/2] lib: add crc64 calculation routines In-Reply-To: <20180726130210.97450a74c164a02d7cfd79c1@linux-foundation.org> References: <20180726053352.2781-1-colyli@suse.de> <20180726053352.2781-2-colyli@suse.de> <20180726130210.97450a74c164a02d7cfd79c1@linux-foundation.org> Message-ID: <87y3899gzi.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, Jul 26 2018, Andrew Morton wrote: > On Thu, 26 Jul 2018 13:33:51 +0800 Coly Li 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 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 , 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 =2D-- 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 =2D-- a/lib/gen_crc64table.c +++ b/lib/gen_crc64table.c @@ -16,8 +16,6 @@ #include #include =20 =2D#include =2D #define CRC64_ECMA182_POLY 0x42F0E1EBA9EA3693ULL =20 static uint64_t crc64_table[256] =3D {0}; =2D-=20 2.14.0.rc0.dirty --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAlwm4sEACgkQOeye3VZi gbnPcw/+Ju6khZuWMFREuKIm4iD3s/TJI70OINya8wbY0Q+CnwZTUf1nzHrPwb7u jRchv0puHVPLHtUmiJR/9h/eO+fRaMNTPPUiTMS8FHV+uIYXrhRwGiNdJZE9bVN7 WUkz5qlvUxb++qc115gRAO2LwglkOis8BUyG7oM4kLXH/XdNMQJiX5wub6swLRGz QzmEIiZaL39393+/arYz7AhY6IZ8VCX7jl8QMqWsDy3xFAFFDI+jj7h0qnmJ+QBp dwwEzfO7aSnoRodzo58Z869NKhT9TG4xYwzf8++GvPVcExtlWl0X0o54hxP691eD Ee7MjsPT5hYrNIr8GZJ6sexg8WR+73/CHNgy3jZL+64O031qq+y5XwXUhLSPgwNa NrlSNlUU/FvzKbtXxDcgcBAVhV/EWuduLRbXTAc8g3c5uXeVUqC2+i/JGyEuQiWD lredVpk5c06mbjwfUMhO8YV68RdGcuXXUSEm0zCwv+Y8EmBOllhOEiTIH5xoyFtP DqzRRSKIUJtMgrw0E6cRw12IW/ziOXW/6crZ4I7GovZUzEw3hA67Ol/Sm885pdqa u4XTL1z212qom5fBsDkRfLbVMtiSQIqmrVQ1Cy5hKNrq/jp9Zgx5QhGK5bpyjmEM Iz8BzfU5tph28tzu8MrW81kKszOVZLPxXxaQRkcs/lE1qjvYVHo= =IWQn -----END PGP SIGNATURE----- --=-=-=--