From: Michael Hennerich <michael.hennerich@analog.com>
To: Rashika Kheria <rashika.kheria@gmail.com>,
<linux-kernel@vger.kernel.org>
Cc: <josh@joshtriplett.org>, Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
<device-drivers-devel@blackfin.uclinux.org>
Subject: Re: [PATCH 4/5] drivers: misc: Mark functions as static in ad525x_dpot.c
Date: Fri, 13 Dec 2013 09:19:51 +0100 [thread overview]
Message-ID: <52AAC327.6060806@analog.com> (raw)
In-Reply-To: <e96ca2e8c4c331f556363a7dc2046a07da230e3c.1386915618.git.rashika.kheria@gmail.com>
On 12/13/2013 07:57 AM, Rashika Kheria wrote:
> This patch marks the function ad_dpot_add_files() and
> ad_dpot_remove_files() as static in ad525x_dpot.c because they are not
> used outside this file.
>
> Thus, it also eliminates the following warnings in ad525x_dpot.c:
> drivers/misc/ad525x_dpot.c:644:5: warning: no previous prototype for ‘ad_dpot_add_files’ [-Wmissing-prototypes]
> drivers/misc/ad525x_dpot.c:669:13: warning: no previous prototype for ‘ad_dpot_remove_files’ [-Wmissing-prototypes]
>
> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
> ---
> drivers/misc/ad525x_dpot.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/misc/ad525x_dpot.c b/drivers/misc/ad525x_dpot.c
> index 0daadcf..d3eee11 100644
> --- a/drivers/misc/ad525x_dpot.c
> +++ b/drivers/misc/ad525x_dpot.c
> @@ -641,7 +641,7 @@ static const struct attribute_group ad525x_group_commands = {
> .attrs = ad525x_attributes_commands,
> };
>
> -int ad_dpot_add_files(struct device *dev,
> +static int ad_dpot_add_files(struct device *dev,
> unsigned features, unsigned rdac)
> {
> int err = sysfs_create_file(&dev->kobj,
> @@ -666,7 +666,7 @@ int ad_dpot_add_files(struct device *dev,
> return err;
> }
>
> -inline void ad_dpot_remove_files(struct device *dev,
> +static inline void ad_dpot_remove_files(struct device *dev,
> unsigned features, unsigned rdac)
> {
> sysfs_remove_file(&dev->kobj,
--
Greetings,
Michael
--
Analog Devices GmbH Wilhelm-Wagenfeld-Str. 6 80807 Muenchen
Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen HRB 40368;
Geschaeftsfuehrer:Dr.Carsten Suckrow, Thomas Wessel, William A. Martin,
Margaret Seif
next prev parent reply other threads:[~2013-12-13 8:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-13 6:42 [PATCH 1/5] drivers: misc: Mark functions as static in grukservices.c Rashika Kheria
2013-12-13 6:51 ` [PATCH 2/5] drivers: misc: Mark functions as static in xp_main.c Rashika Kheria
2013-12-13 8:56 ` Josh Triplett
2013-12-13 17:14 ` Robin Holt
2013-12-13 6:54 ` [PATCH 3/5] drivers: misc: Mark functions as static in xpc_main.c Rashika Kheria
2013-12-13 8:57 ` Josh Triplett
2013-12-13 17:14 ` Robin Holt
2013-12-13 6:57 ` [PATCH 4/5] drivers: misc: Mark functions as static in ad525x_dpot.c Rashika Kheria
2013-12-13 8:19 ` Michael Hennerich [this message]
2013-12-13 8:57 ` Josh Triplett
2013-12-13 6:59 ` [PATCH 5/5] drivers: misc: Mark function jp_generic_ide_ioctl() as static in lkdtm.c Rashika Kheria
2013-12-13 8:58 ` Josh Triplett
2013-12-13 8:56 ` [PATCH 1/5] drivers: misc: Mark functions as static in grukservices.c Josh Triplett
2013-12-13 14:44 ` Dimitri Sivanich
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=52AAC327.6060806@analog.com \
--to=michael.hennerich@analog.com \
--cc=arnd@arndb.de \
--cc=device-drivers-devel@blackfin.uclinux.org \
--cc=gregkh@linuxfoundation.org \
--cc=josh@joshtriplett.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rashika.kheria@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox