From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753380AbdJHKta (ORCPT ); Sun, 8 Oct 2017 06:49:30 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38050 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751533AbdJHKt2 (ORCPT ); Sun, 8 Oct 2017 06:49:28 -0400 X-Google-Smtp-Source: AOwi7QBchGNrTEEhm2FMrtRq+ZvtgmjKy2QuT/goJFddk8x7wh1tJtyuUf4eaX6+uYYp5J65FCw0CQ1fUIb3+ELd6CA= MIME-Version: 1.0 In-Reply-To: <3a32f0e7-75a2-857e-c63c-10d4b5942622@users.sourceforge.net> References: <9a81d82d-fb1b-38d3-1dbf-31e6bf4ff677@users.sourceforge.net> <3a32f0e7-75a2-857e-c63c-10d4b5942622@users.sourceforge.net> From: Geert Uytterhoeven Date: Sun, 8 Oct 2017 12:49:26 +0200 X-Google-Sender-Auth: WXjoyX14vJzeGQHGB7jP5855C20 Message-ID: Subject: Re: [PATCH 2/2] lib: Improve a size determination in seven functions To: SF Markus Elfring Cc: iommu@lists.linux-foundation.org, kasan-dev@googlegroups.com, Alexander Potapenko , Andrew Morton , Andrey Ryabinin , Andy Shevchenko , Christoph Hellwig , Daniel Mentz , Dmitry Vyukov , Lars Ellenberg , "Luis R. Rodriguez" , Marek Szyprowski , Mathieu Desnoyers , Philipp Reisner , Robin Murphy , Will Deacon , LKML , "kernel-janitors@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 7, 2017 at 7:50 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 7 Oct 2017 19:19:45 +0200 > > Replace the specification of data structures by pointer dereferences > as the parameter for the operator "sizeof" to make the corresponding size > determination a bit safer according to the Linux coding style convention. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geert Uytterhoeven Date: Sun, 08 Oct 2017 10:49:26 +0000 Subject: Re: [PATCH 2/2] lib: Improve a size determination in seven functions Message-Id: List-Id: References: <9a81d82d-fb1b-38d3-1dbf-31e6bf4ff677@users.sourceforge.net> <3a32f0e7-75a2-857e-c63c-10d4b5942622@users.sourceforge.net> In-Reply-To: <3a32f0e7-75a2-857e-c63c-10d4b5942622@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: SF Markus Elfring Cc: iommu@lists.linux-foundation.org, kasan-dev@googlegroups.com, Alexander Potapenko , Andrew Morton , Andrey Ryabinin , Andy Shevchenko , Christoph Hellwig , Daniel Mentz , Dmitry Vyukov , Lars Ellenberg , "Luis R. Rodriguez" , Marek Szyprowski , Mathieu Desnoyers , Philipp Reisner , Robin Murphy , Will Deacon , LKML , "kernel-janitors@vger.kernel.org" On Sat, Oct 7, 2017 at 7:50 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 7 Oct 2017 19:19:45 +0200 > > Replace the specification of data structures by pointer dereferences > as the parameter for the operator "sizeof" to make the corresponding size > determination a bit safer according to the Linux coding style convention. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds