All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: android: Remove unneeded definition in header file
@ 2015-10-01  4:19 Shraddha Barke
  2015-10-01  5:56 ` [Outreachy kernel] " Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Shraddha Barke @ 2015-10-01  4:19 UTC (permalink / raw)
  To: outreachy-kernel

These struct are globally defined in source file but they have been
defined as static in .h file. Remove definition in header file as
it is not needed. Also fix the compiler warning.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
---
 drivers/staging/android/sw_sync.h | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/drivers/staging/android/sw_sync.h b/drivers/staging/android/sw_sync.h
index c87ae9e..a671595 100644
--- a/drivers/staging/android/sw_sync.h
+++ b/drivers/staging/android/sw_sync.h
@@ -39,21 +39,6 @@ struct sw_sync_timeline *sw_sync_timeline_create(const char *name);
 void sw_sync_timeline_inc(struct sw_sync_timeline *obj, u32 inc);
 
 struct sync_pt *sw_sync_pt_create(struct sw_sync_timeline *obj, u32 value);
-#else
-static inline struct sw_sync_timeline *sw_sync_timeline_create(const char *name)
-{
-	return NULL;
-}
-
-static inline void sw_sync_timeline_inc(struct sw_sync_timeline *obj, u32 inc)
-{
-}
-
-static inline struct sync_pt *sw_sync_pt_create(struct sw_sync_timeline *obj,
-						u32 value)
-{
-	return NULL;
-}
 #endif /* IS_ENABLED(CONFIG_SW_SYNC) */
 
 #endif /* _LINUX_SW_SYNC_H */
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-10-01  8:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-01  4:19 [PATCH] Staging: android: Remove unneeded definition in header file Shraddha Barke
2015-10-01  5:56 ` [Outreachy kernel] " Greg KH
2015-10-01  6:14   ` Sudip Mukherjee
2015-10-01  8:00     ` Greg KH
2015-10-01  8:04       ` Julia Lawall
2015-10-01  8:18         ` Greg KH
2015-10-01  8:11   ` Shraddha Barke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.