[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54930D7C.3000901@users.sourceforge.net>
Date: Thu, 18 Dec 2014 18:23:08 +0100
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: David Miller <davem@...emloft.net>
CC: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>,
Paul Mackerras <paulus@...ba.org>, linux-ppp@...r.kernel.org,
netdev@...r.kernel.org, Eric Dumazet <eric.dumazet@...il.com>,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
Julia Lawall <julia.lawall@...6.fr>
Subject: Re: [PATCH v2 0/6] net-PPP: Deletion of a few unnecessary checks
>> Where should "the error pointers" be stored instead?
>
> A local variable, before you assign it into the datastructure.
I have looked at the affected software infrastructure once more.
Now I find still that your data reorgansisation wish can not be resolved
in a simple way.
I imagine that your update suggestion would mean that the corresponding
pointers will be passed around by function parameters instead,
wouldn't it?
Two pointers were stored as the members "arc4" and "sha1" of the
data structure "ppp_mppe_state" for a specific reason. A pointer to
this structure is passed to the ppp_register_compressor() function.
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/include/linux/ppp-comp.h?id=607ca46e97a1b6594b29647d98a32d545c24bdff#n32
The data structure "compressor" manages some function pointers.
I assume that this interface should not be changed at the moment, should it?
Are further ideas needed here?
Regards,
Markus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists