Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941246AbcKQGp7 (ORCPT ); Thu, 17 Nov 2016 01:45:59 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:44494 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938698AbcKQGp4 (ORCPT ); Thu, 17 Nov 2016 01:45:56 -0500 DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 2CBF361599 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: p54: memset(0) whole array From: Kalle Valo In-Reply-To: <20161014092309.24113-1-jslaby@suse.cz> References: <20161014092309.24113-1-jslaby@suse.cz> To: Jiri Slaby Cc: chunkeey@googlemail.com, linux-kernel@vger.kernel.org, Jiri Slaby , linux-wireless@vger.kernel.org, netdev@vger.kernel.org User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.3 Message-Id: <20161117064555.F21F6615DB@smtp.codeaurora.org> Date: Thu, 17 Nov 2016 06:45:55 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 919 Lines: 25 Jiri Slaby wrote: > gcc 7 complains: > drivers/net/wireless/intersil/p54/fwio.c: In function 'p54_scan': > drivers/net/wireless/intersil/p54/fwio.c:491:4: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] > > Fix that by passing the correct size to memset. > > Signed-off-by: Jiri Slaby > Cc: Christian Lamparter > Cc: Kalle Valo > Cc: linux-wireless@vger.kernel.org > Cc: netdev@vger.kernel.org > Acked-by: Christian Lamparter Patch applied to wireless-drivers-next.git, thanks. 6f1758178820 p54: memset(0) whole array -- https://patchwork.kernel.org/patch/9376333/ Documentation about submitting wireless patches and checking status from patchwork: https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches