From: Todd Vierling Date: Wed, 21 Feb 2018 15:55:39 +0000 (-0500) Subject: trace: declare blk_add_trace_rq non-static on OL6 X-Git-Tag: v4.1.12-124.31.3~1121 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9953861f1708f203ea057a382212a3310b4e5a45;p=users%2Fjedix%2Flinux-maple.git trace: declare blk_add_trace_rq non-static on OL6 In an external module, there is a reference to this function done via explicit symbol lookup. The newer compiler used for retpoline support on OL6 changes the symbol's asm name, which causes this lookup to fail. While it doesn't guarantee kABI compatibility, remove the "static" qualifier for this function, on OL6 only, to allow continuing usage of this code in the short term. Orabug: 27578618 Signed-off-by: Todd Vierling Reviewed-by: Jack Vogel --- diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c index 483cecfa5c17..cb5e8c16ba01 100644 --- a/kernel/trace/blktrace.c +++ b/kernel/trace/blktrace.c @@ -709,7 +709,11 @@ void blk_trace_shutdown(struct request_queue *q) * Records an action against a request. Will log the bio offset + size. * **/ -static void blk_add_trace_rq(struct request_queue *q, struct request *rq, +/* UEK4 OL6: non-static for compatibility with some external modules */ +#ifndef CONFIG_SIMULATE_GCC44_KABI +static +#endif +void blk_add_trace_rq(struct request_queue *q, struct request *rq, unsigned int nr_bytes, u32 what) { struct blk_trace *bt = q->blk_trace;