From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Subject: Re: md: Combine two kmalloc() calls into one in sb_equal() Date: Fri, 9 Dec 2016 21:05:45 +0100 Message-ID: References: <1481310314.5946.40.camel@perches.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1481310314.5946.40.camel@perches.com> Sender: linux-kernel-owner@vger.kernel.org To: Joe Perches Cc: linux-raid@vger.kernel.org, Shaohua Li , LKML , kernel-janitors@vger.kernel.org List-Id: linux-raid.ids > tmp1 = kmemdup(sb1, MD_SB_GENERIC_CONSTANT_WORDS * sizeof(__u32), GFP_KERNEL); Is a function available in the Linux programming interface which would duplicate the beginning of two array elements in a single call directly? Regards, Markus