From: Greg KH <gregkh@linuxfoundation.org>
To: Shraddha Barke <shraddha.6596@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH] Staging: android: Remove unneeded definition in header file
Date: Thu, 1 Oct 2015 07:56:24 +0200 [thread overview]
Message-ID: <20151001055624.GA25101@kroah.com> (raw)
In-Reply-To: <1443673166-12653-1-git-send-email-shraddha.6596@gmail.com>
On Thu, Oct 01, 2015 at 09:49:26AM +0530, Shraddha Barke wrote:
> 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 */
You just broke the build for systems that don't define CONFIG_SW_SYNC
yet still call these functions :(
Yes, it's tricky as there are no in-kernel users of these functions,
that's the joy of the android code, external, out-of-tree code depends
on the in-kernel code right now due to not everything being merged yet.
So, sorry, I can't take this patch.
greg k-h
next prev parent reply other threads:[~2015-10-01 5:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-01 4:19 [PATCH] Staging: android: Remove unneeded definition in header file Shraddha Barke
2015-10-01 5:56 ` Greg KH [this message]
2015-10-01 6:14 ` [Outreachy kernel] " 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151001055624.GA25101@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=outreachy-kernel@googlegroups.com \
--cc=shraddha.6596@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.