[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1492993390-10064-1-git-send-email-karim.eshapa@gmail.com>
Date: Mon, 24 Apr 2017 02:23:10 +0200
From: Karim Eshapa <karim.eshapa@...il.com>
To: davem@...emloft.net
Cc: tremyfr@...il.com, a@...table.cc, fw@...len.de,
clabbe.montjoie@...il.com, edumazet@...gle.com, jarod@...hat.com,
adi-buildroot-devel@...ts.sourceforge.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Karim Eshapa <karim.eshapa@...il.com>
Subject: RE:drivers:net:ethernet:adi:bfin_mac: Use FIELD_SIZEOF defined kernel macro
On Sun, 23 Apr 2017 22:56:38 +0200, Geert Uytterhoeven:
>IMHO this makes the code less safe and less future-proof.
>What if the type of info is ever changed?
>There's no safety check to validate that the FIELD_SIZEOF() operates on the
>same data as the strlcpy() destination.
Really make sense :)
>As the kbuild test robot already told you, this doesn't compile.
>Please try to (at least) compile the code before sending patches.
>Thanks!
So sorry for that I built quickly using the wrong compiler and the wrong
target machine with my old .config that's horrible :)
Thanks a lot,
Karim
Powered by blists - more mailing lists