oz_events_clear() is referenced only when CONFIG_DEBUG_FS is defined.
Move the definition too under this flag.
Signed-off-by: Sachin Kamat <[email protected]>
Acked-by: Rupesh Gujare <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
/*------------------------------------------------------------------------------
* Context: process
*/
+#ifdef CONFIG_DEBUG_FS
static void oz_events_clear(struct oz_evtdev *dev)
{
unsigned long irqstate;
dev->missed_events = 0;
spin_unlock_irqrestore(&dev->lock, irqstate);
}
-#ifdef CONFIG_DEBUG_FS
/*------------------------------------------------------------------------------
* Context: process
*/