Received: by 10.192.165.148 with SMTP id m20csp1119737imm; Sat, 21 Apr 2018 01:28:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+MaNDsZR8se9LtvP17NhagJeq/pA1nA1zmtY2w/R4D9sMdyNNmriEvDK9U/+iVPm7I246K X-Received: by 10.99.112.93 with SMTP id a29mr10856301pgn.202.1524299310891; Sat, 21 Apr 2018 01:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524299310; cv=none; d=google.com; s=arc-20160816; b=zcpsvzfgk9WWy+pAH+slbBwo06xURjOvszOfXpOd0l2JuGI5FjM9+oQ8084doOsdLX Qi9HIU1dpiLgxopTYEEtAzmRKaC42cz2DORmkPPZiapG/iyJg8yI65L0TXQFKVhOvPRz d/+UPFKSq7GMN4D+lXLQ02yGBkddVMa8t/SAMCopc9iogqIP+kzZNLdYT+fapg2UFqkl 2lCWrw0NZ7IeFvGO5HoBDaHv9wRZBFnwDV7FnrvcXHxc1PU0yQMLyUgr1rUdFX13k973 S8i12nn9r952OQ15sn3ywb0heSDkcFMPYCzw3ErMNWambzIGNP8GCwIpUg+SBAUxTwAF Q7jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=tFYWCR8KPgLh0z+xG0IldvETww19I872uBlrBczmjxo=; b=fsmlvRp271c0mnBGOfnLx4gQna+3GfQUilYQGwYcvmyPiheRbvCkflWOICMMt9DLHy PEwCX1OzYhFpTdIv2Z27mxJ1Jtnkr4l0bgR7wwfVg7l9qIw9Pf/MGm/pqS2Ak+eWO8l6 Kb3oborSZCoqJQXEVrwiS2z5X0xfQBzP6kTwU6vGWt84I/yThNyrgG/GUoKelyjOcj7T LbqaReWT1CinX/A80+9TSfeU/tjcNtIwLYjeS0Xc6zc1DA3PoT5aEazDnpg1Lc3QG81v vPo1eavqkEjgT+p1ybw1Lc8zFcdqE9Oyt5v89WxUiL/77RG0A4c4uteEx4S7DeOeSK47 AWvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q2xuCBKW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n86si6969780pfj.86.2018.04.21.01.27.53; Sat, 21 Apr 2018 01:28:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q2xuCBKW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752633AbeDUIYw (ORCPT + 99 others); Sat, 21 Apr 2018 04:24:52 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:44795 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751223AbeDUIYt (ORCPT ); Sat, 21 Apr 2018 04:24:49 -0400 Received: by mail-pg0-f65.google.com with SMTP id l12so4976452pgp.11; Sat, 21 Apr 2018 01:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=tFYWCR8KPgLh0z+xG0IldvETww19I872uBlrBczmjxo=; b=Q2xuCBKWsj0H4S+2Qd9a5LHsSxSpzlGFr/sDtaxE/rFAhxAbTUN82Au3anKvSOgS2D fiP6r35mbGvZD8tPheNf9LPttMTmesa4uFHYFAukcdRaAr/Tx5v4oQ7H3xjhhNcAkvMF p0c858oj2U70mwY3U0ViADkrl18MqDuEI1kNJaIMwczgyFJ7sWJ8jrC9AuvVCgBINcYT TdLF/i7AKnR9x9jV4/AMfVCROGnWjrgkAcDVc7oOBsf6YFwR1eNJfVSof5Q2zKhzU8FX moDgpW6yE41MDi9YUhaMfKO/9UMc1tHnkEyaLKms1S1VmE3aslrfh/24ss09XDdBBkL6 LmoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=tFYWCR8KPgLh0z+xG0IldvETww19I872uBlrBczmjxo=; b=U2FrpyUtW4FkZep4HtKIRj5ctPA6Qlci05tBT99h/DVxHj3NZxibHBnp4pSj8Pr83S 57vg+djXrNBnBqOOOGEzIvTmpZIACqWg6BlSVuE0jmxaHy5H8U8VDS0AZxANNRBs1iCC gVSVAyzNVYvW0fOTSRY2fyksGn7vEMmSq5zEx4BDYsEzDRWoeWAcyaplPKwookmnOQRP D8xmDS10tjYhea2Ds6vV7Www3Vq2sN4n6bgkNgAqylOwPV/SbjhDO76ZH52VtPgzBrEn 74AE3oFbggotqNzqMR8tJzGVeT88jY2nXiq6AGPqGUHKWixJfFUY6fWx3lFuh/lI7sbX ziBA== X-Gm-Message-State: ALQs6tDJP+u0zYaGgPZK0xKfQ4oppnMSjLdIE8eRBCBQI5umEN+C5n7x Lvq2lwbKfn9sokjrkXbHoEM= X-Received: by 10.98.153.204 with SMTP id t73mr12331952pfk.121.1524299088921; Sat, 21 Apr 2018 01:24:48 -0700 (PDT) Received: from gmail.com ([2605:e000:1117:c0e3:2e0:1bff:fe70:ea]) by smtp.gmail.com with ESMTPSA id b4sm13516200pfa.64.2018.04.21.01.24.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 21 Apr 2018 01:24:48 -0700 (PDT) Date: Fri, 20 Apr 2018 22:24:44 -1000 From: Joey Pabalinas To: Kalle Valo Cc: Kees Cook , Linus Torvalds , luciano.coelho@intel.com, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Subject: Re: New sparse warning from min_t(): expression using sizeof(void) Message-ID: <20180421082444.i4eyw2zxl6tipt6i@gmail.com> References: <87a7txf15w.fsf@kamboji.qca.qualcomm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mn2mculu7u6ifheg" Content-Disposition: inline In-Reply-To: <87a7txf15w.fsf@kamboji.qca.qualcomm.com> User-Agent: NeoMutt/20180323-62-378db9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mn2mculu7u6ifheg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 21, 2018 at 10:50:51AM +0300, Kalle Valo wrote: > Is there any way to fix it? With ath10k I use sparse a lot and because > of these warnings sparse is now very annoying to use. I submitted a sparse patch [1] for this not too long ago, but in the meantime you can still curl the patch [2] and apply it directly to the v0.5.2 release to suppress the deluge of warnings (-Wpointer-arith is off by defaultl so no need to change any of you configurations). [1] https://lkml.org/lkml/2018/4/10/923 [2] https://patchwork.kernel.org/patch/10334353/raw/ --=20 Cheers, Joey Pabalinas --mn2mculu7u6ifheg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKlZXrihdNOcUPZTNruvLfWhyVBkFAlra9UwACgkQruvLfWhy VBla9w/9Eg2FL9Pe3W4Lub378queMq4m0wcO9elSFFRDLYI1TCkxC0eDFerZaPOl dllZu/hbw8vBWu7XjGECQrboGzykeCyoqpFYsNtz7A5FvbKKRY0bP3rO2Ntj0qi6 CH88xINF9lp2CYhLGBsHKWnbfAy+vVAv2//rwxo71Nn/kcc++ViRgbbFEKKMEaSm GIfb7pyRkZEOaSnm15NtNzJpQ9DRQTxAczKRTCsCCnAdw+/CgQzUbT/YYwIIHGBz d1SDaUFTe4liugnxQXxMBC6HlxUKv7g6Pc9jQ0gqSWqnADHOggcHC9GcsDnEbO+n B8aJUJmwjyDL6VU5AXmOyspm2+zq8PSeTwox4myTP50SNdiG3ta+rEcSzeOiLgWU nE1oL7jlmW4x4WZMCoQMi68OtgF8ZxHlLbh9xt999rO1gS+mYHocATTwaVGAyABS hLb/KhbaV6vPVh3An3XpkZl9PyfpkZ0cRJaPCwybvBiY6paB18bwYIwKC+Jzr0ck A18FtwfpqPbyFeOqtjfeIttpql0XH8z/wr+Ggf9rhMNen4TaJI+F+7/a10gDr5eX X+1h8x0jgQspjP4m2ZygRT9bSyenxCque2rNV+R1Oiz7iLS6+dH6XbSdRRaFKHdL 5IhTcriF6Ac85MOs6TR6ohMLnXSzez7xXcjZk7E2nnziZ/WDnAU= =Qo91 -----END PGP SIGNATURE----- --mn2mculu7u6ifheg--