ANDROID: GKI: Fix block/genhd.c exports from having their CRC changed

Commit aa07e56c6a ("block: fix blktrace debugfs entries leakage")
added a new #include line, which ends up dragging in more structures
which changes the CRC abi for all functions exported in bloc/genhd.c

Fix this up by only including that file if the CRC checker is not being
run at the moment, preserving the CRC properly

Bug: 161946584
Fixes: aa07e56c6a ("block: fix blktrace debugfs entries leakage")
Change-Id: I46aa843c28f36c9ac1d83fc28e80b25ba757ff4c
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman 2023-09-05 15:15:44 +00:00
parent c0e5631df8
commit bd041b5977

View file

@ -25,7 +25,9 @@
#include <linux/pm_runtime.h>
#include <linux/badblocks.h>
#include <linux/part_stat.h>
#ifndef __GENKSYMS__
#include <linux/blktrace_api.h>
#endif
#include "blk-throttle.h"
#include "blk.h"