netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH drivers:net:cris/eth_v10: alternate string char arrary
@ 2017-04-24 17:49 Karim Eshapa
  2017-04-24 18:18 ` David Miller
  2017-04-24 19:54 ` Karim Eshapa
  0 siblings, 2 replies; 4+ messages in thread
From: Karim Eshapa @ 2017-04-24 17:49 UTC (permalink / raw)
  To: davem
  Cc: felipe.balbi, paul.gortmaker, mugunthanvnm, jarod, fw, netdev,
	linux-kernel, Karim Eshapa

static char pointer creates two variables in final assembly.
static string and pointer to it according to
Jeff Garzik janitors TODO.

Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com>
---
 drivers/net/cris/eth_v10.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/cris/eth_v10.c b/drivers/net/cris/eth_v10.c
index 91c876a..370765f 100644
--- a/drivers/net/cris/eth_v10.c
+++ b/drivers/net/cris/eth_v10.c
@@ -44,7 +44,7 @@
  * io regions, irqs and dma channels
  */
 
-static const char* cardname = "ETRAX 100LX built-in ethernet controller";
+static const char cardname[] = "ETRAX 100LX built-in ethernet controller";
 
 /* A default ethernet address. Highlevel SW will set the real one later */
 
-- 
2.7.4

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

* Re: PATCH drivers:net:cris/eth_v10: alternate string char arrary
  2017-04-24 17:49 PATCH drivers:net:cris/eth_v10: alternate string char arrary Karim Eshapa
@ 2017-04-24 18:18 ` David Miller
  2017-04-24 19:54 ` Karim Eshapa
  1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2017-04-24 18:18 UTC (permalink / raw)
  To: karim.eshapa
  Cc: felipe.balbi, paul.gortmaker, mugunthanvnm, jarod, fw, netdev,
	linux-kernel

From: Karim Eshapa <karim.eshapa@gmail.com>
Date: Mon, 24 Apr 2017 19:49:39 +0200

> static char pointer creates two variables in final assembly.
> static string and pointer to it according to
> Jeff Garzik janitors TODO.
> 
> Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com>

Instead of trusting some document written more than 10 years ago on
the internet, why don't you build the source file in question and take
a look at what actually happens?

I'm not applying this, sorry.

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

* RE:PATCH drivers:net:cris/eth_v10: alternate string char arrary
  2017-04-24 17:49 PATCH drivers:net:cris/eth_v10: alternate string char arrary Karim Eshapa
  2017-04-24 18:18 ` David Miller
@ 2017-04-24 19:54 ` Karim Eshapa
  2017-04-24 20:04   ` PATCH " David Miller
  1 sibling, 1 reply; 4+ messages in thread
From: Karim Eshapa @ 2017-04-24 19:54 UTC (permalink / raw)
  To: davem
  Cc: felipe.balbi, paul.gortmaker, mugunthanvnm, jarod, fw, netdev,
	linux-kernel, Karim Eshapa

On  Mon, 24 Apr 2017 14:18:58 -0400 (EDT), David Miller wrote:
> Mon, 24 Apr 2017 19:49:39 +0200, Karim Eshapa wrote:
>>
>> static char pointer creates two variables in final assembly.
>> static string and pointer to it according to
>> Jeff Garzik janitors TODO.
>
> Instead of trusting some document written more than 10 years ago on
> the internet, why don't you build the source file in question and take
> a look at what actually happens?
>

I've just dumped the assembly and symbols. I didn't find 
extraordinary difference between the two strings.
sorry for that, but why is that still there in 
TODO kerneljanitors at kernelnewbies.

Thanks,
Karim

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

* Re: PATCH drivers:net:cris/eth_v10: alternate string char arrary
  2017-04-24 19:54 ` Karim Eshapa
@ 2017-04-24 20:04   ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2017-04-24 20:04 UTC (permalink / raw)
  To: karim.eshapa
  Cc: felipe.balbi, paul.gortmaker, mugunthanvnm, jarod, fw, netdev,
	linux-kernel

From: Karim Eshapa <karim.eshapa@gmail.com>
Date: Mon, 24 Apr 2017 21:54:42 +0200

> On  Mon, 24 Apr 2017 14:18:58 -0400 (EDT), David Miller wrote:
>> Mon, 24 Apr 2017 19:49:39 +0200, Karim Eshapa wrote:
>>>
>>> static char pointer creates two variables in final assembly.
>>> static string and pointer to it according to
>>> Jeff Garzik janitors TODO.
>>
>> Instead of trusting some document written more than 10 years ago on
>> the internet, why don't you build the source file in question and take
>> a look at what actually happens?
>>
> 
> I've just dumped the assembly and symbols. I didn't find 
> extraordinary difference between the two strings.
> sorry for that, but why is that still there in 
> TODO kerneljanitors at kernelnewbies.

Because nobody is updating the documentation.

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

end of thread, other threads:[~2017-04-24 20:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-24 17:49 PATCH drivers:net:cris/eth_v10: alternate string char arrary Karim Eshapa
2017-04-24 18:18 ` David Miller
2017-04-24 19:54 ` Karim Eshapa
2017-04-24 20:04   ` PATCH " David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).