Re: [PATCH] lib: crc8: Pointer to data block should be const

From: Randy Dunlap
Date: Fri Jan 29 2021 - 17:45:41 EST


On 1/29/21 8:41 AM, Richard Fitzgerald wrote:
> crc8() does not change the data passed to it, so the pointer argument
> should be declared const. This avoids callers that receive const data
> having to cast it to a non-const pointer to call crc8().
>
> Signed-off-by: Richard Fitzgerald <rf@xxxxxxxxxxxxxxxxxxxxx>
> ---
> include/linux/crc8.h | 2 +-
> lib/crc8.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)

Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> # build-tested

You need to Cc: someone to merge it, like Andrew Morton
or whoever scripts/get_maintainer.pl tells you.

Thanks.
--
~Randy