public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: dgnc: replace EXTRA_CFLAGS
@ 2015-03-01  8:41 Matteo Semenzato
  2015-03-01 16:41 ` Greg KH
  2015-03-01 17:19 ` [PATCH V2] " Matteo Semenzato
  0 siblings, 2 replies; 8+ messages in thread
From: Matteo Semenzato @ 2015-03-01  8:41 UTC (permalink / raw)
  To: lidza.louina, markh, gregkh
  Cc: driverdev-devel, linux-kernel, Matteo Semenzato

From: Matteo Semenzato <mattew8898@gmail.com>

This patch fixes the following warning:
Use of EXTRA_CFLAGS is deprecated, please use `ccflags-y instead.

Signed-off-by: Matteo Semenzato <mattew8898@gmail.com>
---
 drivers/staging/dgnc/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/dgnc/Makefile b/drivers/staging/dgnc/Makefile
index b69f7b6..d70323e 100644
--- a/drivers/staging/dgnc/Makefile
+++ b/drivers/staging/dgnc/Makefile
@@ -1,4 +1,4 @@
-EXTRA_CFLAGS += -DDG_NAME=\"dgnc-1.3-16\" -DDG_PART=\"40002369_F\"
+ccflags-y += -DDG_NAME=\"dgnc-1.3-16\" -DDG_PART=\"40002369_F\"
 
 obj-$(CONFIG_DGNC) += dgnc.o
 
-- 
2.3.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* Re: [PATCH V2] Staging: dgnc: replace EXTRA_CFLAGS
@ 2015-03-01 18:35 Matteo Semenzato
  2015-03-01 19:56 ` Greg KH
  0 siblings, 1 reply; 8+ messages in thread
From: Matteo Semenzato @ 2015-03-01 18:35 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel@vger.kernel.org

On Sun, 1 Mar 2015 10:05:06 -0800, Greg KH wrote:
> What it is being used for?  Can it be removed?  Is it just there for
> informational purposes or does the code actually do something based on
> the value?

The value is used to create a file called version in the driver's sysfs
directory, the file is read-only.


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

end of thread, other threads:[~2015-03-01 19:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-01  8:41 [PATCH] Staging: dgnc: replace EXTRA_CFLAGS Matteo Semenzato
2015-03-01 16:41 ` Greg KH
2015-03-01 17:19 ` [PATCH V2] " Matteo Semenzato
2015-03-01 17:26   ` Greg KH
2015-03-01 17:40     ` Matteo Semenzato
2015-03-01 18:05       ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2015-03-01 18:35 Matteo Semenzato
2015-03-01 19:56 ` Greg KH

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