public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging/ccree: Declare compiled out fuctions static inline
@ 2017-07-31  9:17 RishabhHardas
  2017-08-01 12:35 ` Gilad Ben-Yossef
  2017-08-16 22:09 ` Greg KH
  0 siblings, 2 replies; 7+ messages in thread
From: RishabhHardas @ 2017-07-31  9:17 UTC (permalink / raw)
  To: gilad
  Cc: gregkh, linux-crypto, driverdev-devel, devel, linux-kernel,
	RishabhHardas

From: RishabhHardas <rishabhhardas@gmail.com>

Sparse was giving out a warning for symbols 'cc_set_ree_fips_status' and 'fips_handler'
that they were not declared and need to be made static. This patch makes both the symbols
static inline, to remove the warnings.

Signed-off-by: RishabhHardas <rishabhhardas@gmail.com>
---
 drivers/staging/ccree/ssi_fips.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/ccree/ssi_fips.h b/drivers/staging/ccree/ssi_fips.h
index 369ddf9..63bcca7 100644
--- a/drivers/staging/ccree/ssi_fips.h
+++ b/drivers/staging/ccree/ssi_fips.h
@@ -40,1 +40,1 @@ static inline int ssi_fips_init(struct ssi_drvdata *p_drvdata)
 }

 static inline void ssi_fips_fini(struct ssi_drvdata *drvdata) {}
-void cc_set_ree_fips_status(struct ssi_drvdata *drvdata, bool ok) {}
-void fips_handler(struct ssi_drvdata *drvdata) {}
+static inline void cc_set_ree_fips_status(struct ssi_drvdata *drvdata, bool ok) {}
+static inline void fips_handler(struct ssi_drvdata *drvdata) {}

 #endif /* CONFIG_CRYPTO_FIPS */

--
1.9.1

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

* Re: [PATCH] staging/ccree: Declare compiled out fuctions static inline
  2017-07-31  9:17 [PATCH] staging/ccree: Declare compiled out fuctions static inline RishabhHardas
@ 2017-08-01 12:35 ` Gilad Ben-Yossef
  2017-08-16 22:09 ` Greg KH
  1 sibling, 0 replies; 7+ messages in thread
From: Gilad Ben-Yossef @ 2017-08-01 12:35 UTC (permalink / raw)
  To: RishabhHardas
  Cc: Greg Kroah-Hartman, linux-crypto, driverdev-devel, devel,
	Linux kernel mailing list, RishabhHardas

On Mon, Jul 31, 2017 at 12:17 PM, RishabhHardas
<rishabheudyptula@gmail.com> wrote:
> From: RishabhHardas <rishabhhardas@gmail.com>
>
> Sparse was giving out a warning for symbols 'cc_set_ree_fips_status' and 'fips_handler'
> that they were not declared and need to be made static. This patch makes both the symbols
> static inline, to remove the warnings.
>
> Signed-off-by: RishabhHardas <rishabhhardas@gmail.com>

Acked-by: Gilad Ben-Yossef <gilad@benyossef.com>

Thanks,
Gilad



-- 
Gilad Ben-Yossef
Chief Coffee Drinker

"If you take a class in large-scale robotics, can you end up in a
situation where the homework eats your dog?"
 -- Jean-Baptiste Queru

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

* Re: [PATCH] staging/ccree: Declare compiled out fuctions static inline
  2017-07-31  9:17 [PATCH] staging/ccree: Declare compiled out fuctions static inline RishabhHardas
  2017-08-01 12:35 ` Gilad Ben-Yossef
@ 2017-08-16 22:09 ` Greg KH
  2017-08-22 11:21   ` Rishabh Hardas
  2017-08-22 13:39   ` Rishabh Hardas
  1 sibling, 2 replies; 7+ messages in thread
From: Greg KH @ 2017-08-16 22:09 UTC (permalink / raw)
  To: RishabhHardas
  Cc: gilad, linux-crypto, driverdev-devel, devel, linux-kernel,
	RishabhHardas

On Mon, Jul 31, 2017 at 02:47:23PM +0530, RishabhHardas wrote:
> From: RishabhHardas <rishabhhardas@gmail.com>
> 
> Sparse was giving out a warning for symbols 'cc_set_ree_fips_status' and 'fips_handler'
> that they were not declared and need to be made static. This patch makes both the symbols
> static inline, to remove the warnings.
> 
> Signed-off-by: RishabhHardas <rishabhhardas@gmail.com>

I doubt you sign your name on legal documents without a ' ' somewhere in
it :(

Please fix up and resend.

thanks,

greg k-h

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

* Re: [PATCH] staging/ccree: Declare compiled out fuctions static inline
  2017-08-16 22:09 ` Greg KH
@ 2017-08-22 11:21   ` Rishabh Hardas
  2017-08-22 11:52     ` Dan Carpenter
  2017-08-22 13:39   ` Rishabh Hardas
  1 sibling, 1 reply; 7+ messages in thread
From: Rishabh Hardas @ 2017-08-22 11:21 UTC (permalink / raw)
  To: Greg KH; +Cc: gilad, linux-crypto, driverdev-devel, devel, linux-kernel

On Wed, Aug 16, 2017 at 03:09:09PM -0700, Greg KH wrote:
> On Mon, Jul 31, 2017 at 02:47:23PM +0530, RishabhHardas wrote:
> > From: RishabhHardas <rishabhhardas@gmail.com>
> > 
> > Sparse was giving out a warning for symbols 'cc_set_ree_fips_status' and 'fips_handler'
> > that they were not declared and need to be made static. This patch makes both the symbols
> > static inline, to remove the warnings.
> > 
> > Signed-off-by: RishabhHardas <rishabhhardas@gmail.com>
> 
> I doubt you sign your name on legal documents without a ' ' somewhere in
> it :(
> 
> Please fix up and resend.
> 
> thanks,
> 
> greg k-h
From: Rishabh Hardas <rishabhhardas@gmail.com>

Sparse was giving out a warning for symbols 'cc_set_ree_fips_status' and 'fips_handler'
that they were not declared and need to be made static. This patch makes both the symbols
static inline, to remove the warnings.

Signed-off-by: Rishabh Hardas <rishabhhardas@gmail.com>
---
 drivers/staging/ccree/ssi_fips.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/ccree/ssi_fips.h b/drivers/staging/ccree/ssi_fips.h
index 369ddf9..63bcca7 100644
--- a/drivers/staging/ccree/ssi_fips.h
+++ b/drivers/staging/ccree/ssi_fips.h
@@ -40,1 +40,1 @@ static inline int ssi_fips_init(struct ssi_drvdata *p_drvdata)
 }

 static inline void ssi_fips_fini(struct ssi_drvdata *drvdata) {}
-void cc_set_ree_fips_status(struct ssi_drvdata *drvdata, bool ok) {}
-void fips_handler(struct ssi_drvdata *drvdata) {}
+static inline void cc_set_ree_fips_status(struct ssi_drvdata *drvdata, bool ok) {}
+static inline void fips_handler(struct ssi_drvdata *drvdata) {}

 #endif /* CONFIG_CRYPTO_FIPS */

--
1.9.1

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

* Re: [PATCH] staging/ccree: Declare compiled out fuctions static inline
  2017-08-22 11:21   ` Rishabh Hardas
@ 2017-08-22 11:52     ` Dan Carpenter
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Carpenter @ 2017-08-22 11:52 UTC (permalink / raw)
  To: Rishabh Hardas
  Cc: Greg KH, devel, driverdev-devel, linux-crypto, linux-kernel

Google for how to send a v2 patch.

https://www.google.com/search?q=how+to+send+a+v2+patch

https://kernelnewbies.org/FirstKernelPatch

regards,
dan carpenter

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

* Re: [PATCH] staging/ccree: Declare compiled out fuctions static inline
  2017-08-16 22:09 ` Greg KH
  2017-08-22 11:21   ` Rishabh Hardas
@ 2017-08-22 13:39   ` Rishabh Hardas
  2017-08-22 13:53     ` Dan Carpenter
  1 sibling, 1 reply; 7+ messages in thread
From: Rishabh Hardas @ 2017-08-22 13:39 UTC (permalink / raw)
  To: Greg KH; +Cc: gilad, linux-crypto, driverdev-devel, devel, linux-kernel

On Wed, Aug 16, 2017 at 03:09:09PM -0700, Greg KH wrote:
> On Mon, Jul 31, 2017 at 02:47:23PM +0530, RishabhHardas wrote:
> > From: RishabhHardas <rishabhhardas@gmail.com>
> > 
> > Sparse was giving out a warning for symbols 'cc_set_ree_fips_status' and 'fips_handler'
> > that they were not declared and need to be made static. This patch makes both the symbols
> > static inline, to remove the warnings.
> > 
> > Signed-off-by: RishabhHardas <rishabhhardas@gmail.com>
> 
> I doubt you sign your name on legal documents without a ' ' somewhere in
> it :(
> 
> Please fix up and resend.
> 
> thanks,
> 
> greg k-h

>From 717ec264a6212b8526c381d3673dd0ee45352266 Mon Sep 17 00:00:00 2001
From: Rishabh Hardas <rishabhhardas@gmail.com>
Date: Tue, 22 Aug 2017 18:56:45 +0530
Subject: [PATCH v2] staging/ccree: Declare compiled out fuctions static inline

Signed-off-by: Rishabh Hardas <rishabhhardas@gmail.com>
---

Changes in v2:
	Corrected my Name.
 drivers/staging/ccree/ssi_fips.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/ccree/ssi_fips.h b/drivers/staging/ccree/ssi_fips.h
index 369ddf9..63bcca7 100644
--- a/drivers/staging/ccree/ssi_fips.h
+++ b/drivers/staging/ccree/ssi_fips.h
@@ -40,8 +40,8 @@ static inline int ssi_fips_init(struct ssi_drvdata *p_drvdata)
 }

 static inline void ssi_fips_fini(struct ssi_drvdata *drvdata) {}
-void cc_set_ree_fips_status(struct ssi_drvdata *drvdata, bool ok) {}
-void fips_handler(struct ssi_drvdata *drvdata) {}
+static inline void cc_set_ree_fips_status(struct ssi_drvdata *drvdata, bool ok) {}
+static inline void fips_handler(struct ssi_drvdata *drvdata) {}

 #endif /* CONFIG_CRYPTO_FIPS */

--
1.9.1

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

* Re: [PATCH] staging/ccree: Declare compiled out fuctions static inline
  2017-08-22 13:39   ` Rishabh Hardas
@ 2017-08-22 13:53     ` Dan Carpenter
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Carpenter @ 2017-08-22 13:53 UTC (permalink / raw)
  To: Rishabh Hardas
  Cc: Greg KH, devel, driverdev-devel, linux-crypto, linux-kernel

Try saving this email and then do `cat email.txt | git am`.  It is
corrupted.  This is not how to send a v2 patch.  Please read:

https://kernelnewbies.org/FirstKernelPatch#head-5c81b3c517a1d0bbc24f92594cb734e155fcbbcb

Look through the email archives for examples of other v2 patches.

regards,
dan carpenter

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

end of thread, other threads:[~2017-08-22 13:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-31  9:17 [PATCH] staging/ccree: Declare compiled out fuctions static inline RishabhHardas
2017-08-01 12:35 ` Gilad Ben-Yossef
2017-08-16 22:09 ` Greg KH
2017-08-22 11:21   ` Rishabh Hardas
2017-08-22 11:52     ` Dan Carpenter
2017-08-22 13:39   ` Rishabh Hardas
2017-08-22 13:53     ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox