* [PATCH] drivers/net/wan/cycx_x25.c:189: warning: conflicting types for built-in function 'log2'
@ 2004-08-01 0:32 Jesper Juhl
2004-08-01 0:38 ` Andrew Morton
0 siblings, 1 reply; 4+ messages in thread
From: Jesper Juhl @ 2004-08-01 0:32 UTC (permalink / raw)
To: LKML; +Cc: Arnaldo Carvalho de Melo, Andrew Morton
To silence the warning in $subject, rename log2 to cycx_log2 in this file
to remove the clash, so there's no doubt that this file uses it's own
defined log2 function.
Patch against 2.6.8-rc2-mm1
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
diff -up linux-2.6.8-rc2-mm1-orig/drivers/net/wan/cycx_x25.c linux-2.6.8-rc2-mm1/drivers/net/wan/cycx_x25.c
--- linux-2.6.8-rc2-mm1-orig/drivers/net/wan/cycx_x25.c 2004-06-16 07:19:01.000000000 +0200
+++ linux-2.6.8-rc2-mm1/drivers/net/wan/cycx_x25.c 2004-07-31 22:10:02.000000000 +0200
@@ -186,7 +186,7 @@ static void nibble_to_byte(u8 *s, u8 *d,
reset_timer(struct net_device *dev);
static u8 bps_to_speed_code(u32 bps);
-static u8 log2(u32 n);
+static u8 cycx_log2(u32 n);
static unsigned dec_to_uint(u8 *str, int len);
@@ -263,7 +263,7 @@ int cycx_x25_wan_init(struct cycx_device
else
card->wandev.mtu = 64;
- cfg.pktlen = log2(card->wandev.mtu);
+ cfg.pktlen = cycx_log2(card->wandev.mtu);
if (conf->station == WANOPT_DTE) {
cfg.locaddr = 3; /* DTE */
@@ -1513,7 +1513,7 @@ static u8 bps_to_speed_code(u32 bps)
}
/* log base 2 */
-static u8 log2(u32 n)
+static u8 cycx_log2(u32 n)
{
u8 log = 0;
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] drivers/net/wan/cycx_x25.c:189: warning: conflicting types for built-in function 'log2'
2004-08-01 0:32 [PATCH] drivers/net/wan/cycx_x25.c:189: warning: conflicting types for built-in function 'log2' Jesper Juhl
@ 2004-08-01 0:38 ` Andrew Morton
2004-08-01 0:53 ` Jesper Juhl
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2004-08-01 0:38 UTC (permalink / raw)
To: Jesper Juhl; +Cc: linux-kernel, acme
Jesper Juhl <juhl-lkml@dif.dk> wrote:
>
Your patches get random rejects.
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Probably because of the format=flowed braindamage.
I fixed this one up.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drivers/net/wan/cycx_x25.c:189: warning: conflicting types for built-in function 'log2'
2004-08-01 0:38 ` Andrew Morton
@ 2004-08-01 0:53 ` Jesper Juhl
2004-08-02 17:11 ` Arnaldo Carvalho de Melo
0 siblings, 1 reply; 4+ messages in thread
From: Jesper Juhl @ 2004-08-01 0:53 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel, acme
On Sat, 31 Jul 2004, Andrew Morton wrote:
> Jesper Juhl <juhl-lkml@dif.dk> wrote:
>>
>
> Your patches get random rejects.
>
>> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> Probably because of the format=flowed braindamage.
>
Ouch, sorry about that, I recently upgraded my pine version to 4.60 and
was unaware that from that version and forward pine generates flowed text
by default. I'll get that fixed up at once.
> I fixed this one up.
>
Thank you.
--
Jesper Juhl <juhl-lkml@dif.dk>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drivers/net/wan/cycx_x25.c:189: warning: conflicting types for built-in function 'log2'
2004-08-01 0:53 ` Jesper Juhl
@ 2004-08-02 17:11 ` Arnaldo Carvalho de Melo
0 siblings, 0 replies; 4+ messages in thread
From: Arnaldo Carvalho de Melo @ 2004-08-02 17:11 UTC (permalink / raw)
To: Jesper Juhl; +Cc: Andrew Morton, linux-kernel
Em Sun, Aug 01, 2004 at 02:53:06AM +0200, Jesper Juhl escreveu:
> On Sat, 31 Jul 2004, Andrew Morton wrote:
>
> > Jesper Juhl <juhl-lkml@dif.dk> wrote:
> >>
> >
> > Your patches get random rejects.
> >
> >> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
> >
> > Probably because of the format=flowed braindamage.
> >
> Ouch, sorry about that, I recently upgraded my pine version to 4.60 and
> was unaware that from that version and forward pine generates flowed text
> by default. I'll get that fixed up at once.
>
>
> > I fixed this one up.
> >
> Thank you.
Thanks for the patch
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-08-02 17:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-01 0:32 [PATCH] drivers/net/wan/cycx_x25.c:189: warning: conflicting types for built-in function 'log2' Jesper Juhl
2004-08-01 0:38 ` Andrew Morton
2004-08-01 0:53 ` Jesper Juhl
2004-08-02 17:11 ` Arnaldo Carvalho de Melo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox