Received: by 10.192.165.148 with SMTP id m20csp3475028imm; Mon, 23 Apr 2018 07:12:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx485a51yJloqLpgjDwt3lp3wh/oQihT3EYbBSBeEL7Q65VG5O/IF0JcN99kC+xsrbBaMGLxm X-Received: by 10.99.109.65 with SMTP id i62mr17110517pgc.233.1524492758725; Mon, 23 Apr 2018 07:12:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524492758; cv=none; d=google.com; s=arc-20160816; b=XA2VQIGSWftivM9zMPIGMyUdpRdguAgzA+/QzFuBbJfVbCjptRUlxchRrPlfAMtNhm P2E2B7aLpAq7hgKfA90qBnZWsa0sJGkGQOFT7XsH5BcFrEXO82BJg3rpL6/iNWtCOXxx Npme6LWH82O/e0q2Bv364Bfdatvq0PZBZe6DlsZfMs+Ci8w4rGqp/G6MSjGmaAFHRxox tWYq+0HABaMlk+wt9C2DbIeRtHwN4anCO2En4icrYDNEEdjP7Z2qs1Tddn/NQp0ckyyw R4Y5Ze7X99szl8gpNmEUCpJVvMAKEtVJiRoW7PIe7E/n2oipZubCeKVbxGWRcYD9Pn2J 9OBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=JirD2waHXX9opADSdPkvyM5YqGfrjqhcCydA0oVmhfE=; b=l5ZEZqSIeJz9LbPKppLt2ApZ8Pnh4wFYKtVIKCETX8iIfmMYKVLX2fgccmIX0ExBjv bTcupm1yRTmFT3JF0igRtvVx26XKxM0Wx5eUrkM+kROMT09PyEgJKCUtc1mnImUAKLhr JVmBZ/2zS7giGISiVLy+3AbUSBT67mAhVuF2hhntygbJzNzu8VHeJweyyz8nPXo1Ikmj 7n7D0QurHMYvKaZmWCKcCfHde5Xf3lyATjG2VqMWAwvYDIFSWAVHE0rtfrVIdhHwTqhG NyjZAW0XZxZ7qdygdw+4dBmnxYdq6ObtVDLs6m0lxAWMPEkJFA4AOUJFAe1GaJ2atfhf fi1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=GcLa0GED; dkim=pass header.i=@codeaurora.org header.s=default header.b=Jw1UOPAt; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o8si9545158pgv.375.2018.04.23.07.12.08; Mon, 23 Apr 2018 07:12:38 -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=@codeaurora.org header.s=default header.b=GcLa0GED; dkim=pass header.i=@codeaurora.org header.s=default header.b=Jw1UOPAt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755462AbeDWOKu (ORCPT + 99 others); Mon, 23 Apr 2018 10:10:50 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:52294 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754962AbeDWOKp (ORCPT ); Mon, 23 Apr 2018 10:10:45 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 96D2E60264; Mon, 23 Apr 2018 14:10:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524492644; bh=sya20VjoozzkNxnocveRe/D9chZsIUhCWv78BguA7SI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=GcLa0GEDVnp0pwGmJTNX2OERE3g74amgTstvJ06G5k4zdLWeEC9+QJsbAIG6cg6cy h/RiD2brUckYKJrcAnFC4qLkzm/sVJlBGqy6ufWbCuQf19j2jNe05M0DlUBs20/XgH +0inztI7kIFE4J62rEXsoaKeBDSBx8GktkiGOrQE= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-52.elisa-laajakaista.fi [88.114.240.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3351360264; Mon, 23 Apr 2018 14:10:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524492643; bh=sya20VjoozzkNxnocveRe/D9chZsIUhCWv78BguA7SI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Jw1UOPAtHwvRi/MPC4m0aHMBpp3BgOVaC0fP+7ckj6CTZQK4Vs+sKWyRvtHSQMnop wsyNbgXmlH8g/JUxMRqRq6a8VENs9sA6s+fEe+pHILnuegs3SpQSNic8HTqHtq8lfl UwCBtNuq/0zNhQV8Or4FO4K4JJM6gYvIhTsu6EIY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3351360264 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Joey Pabalinas 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) References: <87a7txf15w.fsf@kamboji.qca.qualcomm.com> <20180421082444.i4eyw2zxl6tipt6i@gmail.com> <87604ley7t.fsf@kamboji.qca.qualcomm.com> Date: Mon, 23 Apr 2018 17:10:39 +0300 In-Reply-To: <87604ley7t.fsf@kamboji.qca.qualcomm.com> (Kalle Valo's message of "Sat, 21 Apr 2018 11:54:30 +0300") Message-ID: <87d0yqdnds.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kalle Valo writes: > Joey Pabalinas writes: > >> 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/ > > Perfect, thanks. Unfortunatelly I need to catch a boat and I can't test > it right now, but I'll do that on Monday. Yes, this fixed my warnings. Thanks! -- Kalle Valo