mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
ANDROID: staging: android: ion: Fix compilation error for ion_trace.h
Mark __ion_ptr_to_hash as __maybe_unused to fix compilation errors
in environments where the -Wunused-function compilation flag is
used, and tracepoints are not enabled.
Bug: 162007514
Fixes: 0f73cdae39 ("ANDROID: add ion_stat tracepoint to common kernel")
Change-Id: I2eee59d137bb47b40c538f6e2abc60d9f08ca6cd
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
parent
241e487620
commit
b29688f758
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@
|
|||
#include <linux/tracepoint.h>
|
||||
|
||||
#ifndef __ION_PTR_TO_HASHVAL
|
||||
static unsigned int __ion_ptr_to_hash(const void *ptr)
|
||||
static unsigned int __maybe_unused __ion_ptr_to_hash(const void *ptr)
|
||||
{
|
||||
unsigned long hashval;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue