Skip to content

Commit

Permalink
lib: crc64: include <linux/crc64.h> for 'crc64_be'
Browse files Browse the repository at this point in the history
The crc64_be() is declared in <linux/crc64.h> so include
this where the symbol is defined to avoid the following
warning:

lib/crc64.c:43:12: warning: symbol 'crc64_be' was not declared. Should it be static?

Signed-off-by: Ben Dooks (Codethink) <ben.dooks@codethink.co.uk>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Ben Dooks (Codethink) authored and Jens Axboe committed Jan 23, 2020
1 parent 6321bef commit 0e0c123
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/crc64.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include <linux/module.h>
#include <linux/types.h>
#include <linux/crc64.h>
#include "crc64table.h"

MODULE_DESCRIPTION("CRC64 calculations");
Expand Down

0 comments on commit 0e0c123

Please sign in to comment.