mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09: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: 0f73cdae39be ("ANDROID: add ion_stat tracepoint to common kernel")
Change-Id: I2eee59d137bb47b40c538f6e2abc60d9f08ca6cd
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
(cherry picked from commit b29688f758be15a96e568d92cd2106a5a474c13f)
This commit is contained in:
committed by
Todd Kjos
parent
f39f1b550a
commit
9e6551efaa
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user