From: Greg KH <gregkh@linuxfoundation.org>
To: Frederic Jacob <frederic.jacob.78@gmail.com>
Cc: thomas.petazzoni@free-electrons.com, noralf@tronnes.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Staging: fbtft: Fix Sparse warnings
Date: Sat, 7 Feb 2015 17:12:07 +0800 [thread overview]
Message-ID: <20150207091207.GB907@kroah.com> (raw)
In-Reply-To: <1422501746-9242-1-git-send-email-frederic.jacob.78@gmail.com>
On Wed, Jan 28, 2015 at 10:22:26PM -0500, Frederic Jacob wrote:
> Fix Sparse warnings for undeclared symbols
Huh?
>
> Signed-off-by: Frederic Jacob <frederic.jacob.78@gmail.com>
> ---
> drivers/staging/fbtft/fb_hx8340bn.c | 2 +-
> drivers/staging/fbtft/fbtft_device.c | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/fbtft/fb_hx8340bn.c b/drivers/staging/fbtft/fb_hx8340bn.c
> index 3939502..26a987a 100644
> --- a/drivers/staging/fbtft/fb_hx8340bn.c
> +++ b/drivers/staging/fbtft/fb_hx8340bn.c
> @@ -108,7 +108,7 @@ static int init_display(struct fbtft_par *par)
> return 0;
> }
>
> -void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
> +static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
> {
> fbtft_par_dbg(DEBUG_SET_ADDR_WIN, par,
> "%s(xs=%d, ys=%d, xe=%d, ye=%d)\n", __func__, xs, ys, xe, ye);
> diff --git a/drivers/staging/fbtft/fbtft_device.c b/drivers/staging/fbtft/fbtft_device.c
> index b9f4c30..157f79c 100644
> --- a/drivers/staging/fbtft/fbtft_device.c
> +++ b/drivers/staging/fbtft/fbtft_device.c
> @@ -29,8 +29,8 @@
>
> #define MAX_GPIOS 32
>
> -struct spi_device *spi_device;
> -struct platform_device *p_device;
> +static struct spi_device *spi_device;
> +static struct platform_device *p_device;
These changes are making things static, not undeclared. Can you fix up
your changelog entry to show the exact error you are fixing?
thanks,
greg k-h
next prev parent reply other threads:[~2015-02-07 17:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-29 3:22 Frederic Jacob
2015-02-07 9:12 ` Greg KH [this message]
2015-02-08 2:15 ` [PATCH v2] " Frederic Jacob
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=20150207091207.GB907@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=frederic.jacob.78@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=noralf@tronnes.org \
--cc=thomas.petazzoni@free-electrons.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome