Received: by 10.192.165.148 with SMTP id m20csp1098335imm; Sat, 21 Apr 2018 00:55:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/fuWgOF45xG7LtVSakwfJu1ZhzEtrJmoiPFK7iUTrsL+4cqZbaxtE01E3d+OO5AsITf2GZ X-Received: by 2002:a17:902:ba88:: with SMTP id k8-v6mr12646167pls.305.1524297306932; Sat, 21 Apr 2018 00:55:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524297306; cv=none; d=google.com; s=arc-20160816; b=k8JucC819UXf6LgPWZYcZdU71OqzdIk42uGu5bfgULaaHsX7sDlzV5/uy+WxzpWhPd ihPaALx2frZViyH7F9vBj+KGHiXuvhfPkRfYDnj4vDzNx1lE6nA40tk3sFfsIpj6k9GA HD9Uy7fDMzmNIDBzcUOIC1RtecN11EBX+kXn1orC5iA70oJfBJ+tleXAyrXTt1c0Dhoy YuM33ZV8xzojCxIWHixMbipah139uoUT/BfTcqrgPBof5t1LH5kuPd5sgcznWHaDzUX1 4MlHtFDR4Etbfh6xnyI/bSugYV89XlCmHBPtUWId+A0syjoEdDIJgTV1S1T4JhmW5CnE HxBA== 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:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=VlQ/YJ2/kI3gBWPcYqSxUFq+a7/75Ov4S80UIVN0sXc=; b=MSj19/kIQ1CKZIVx9MIdyRPRzgo7w8QlfPf8TJkQMikzfVo9090ppFPd0Jic+E2uGH 8MyGkKLpP1hVRnt1w1921H4Hm50QVxGSYuVvXrYtON/HngUdWwq0RQ4Bgc0BsGDYMg+j 4+e+m5wt0f1/YiIVkrc8HZsWzzCZPQNRXQcsPtBD2DtwerNBndTUI1aELNDlxlm0MbWs o4MBZuUQT5V6vQ33JIInU/mzZrAUeSISHhZS65p+U1Q4YvYExLYUrg1U/n2/4zmfaTWd cfvXvaTiGrBGPApufHDk7Y0CPTtLrdudH1sDqjTV8uD1kDEp6ui+i+5lj9pu1Vj3iLQB Virg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=U5ffl+FO; dkim=pass header.i=@codeaurora.org header.s=default header.b=U5ffl+FO; 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 f8si6085826pgt.243.2018.04.21.00.54.29; Sat, 21 Apr 2018 00:55:06 -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=U5ffl+FO; dkim=pass header.i=@codeaurora.org header.s=default header.b=U5ffl+FO; 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 S1753175AbeDUHu6 (ORCPT + 99 others); Sat, 21 Apr 2018 03:50:58 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:47440 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753130AbeDUHu4 (ORCPT ); Sat, 21 Apr 2018 03:50:56 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 76755601CF; Sat, 21 Apr 2018 07:50:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524297055; bh=kU5PEqKCqEOBNzA2V31nSvsdxIoSPRNOG/Uh4jXb0RE=; h=From:To:Cc:Subject:Date:From; b=U5ffl+FONUvlnvminkJR4ZmyXjdaYcFyuPeHq9Sv+d3aK7ZmPRk9H9Zxnu3tFgPaI VCR9DmgCqFfe9XAgCvzYHlXjnoURHfKwQLuuQZ28+7O1SsI0TDXALafrcwsVAZ/MOS YrwUnx9ecap3eaB3/1bCTPtHz2sJ66IADZrkQ8vU= 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 A5686601CF; Sat, 21 Apr 2018 07:50:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524297055; bh=kU5PEqKCqEOBNzA2V31nSvsdxIoSPRNOG/Uh4jXb0RE=; h=From:To:Cc:Subject:Date:From; b=U5ffl+FONUvlnvminkJR4ZmyXjdaYcFyuPeHq9Sv+d3aK7ZmPRk9H9Zxnu3tFgPaI VCR9DmgCqFfe9XAgCvzYHlXjnoURHfKwQLuuQZ28+7O1SsI0TDXALafrcwsVAZ/MOS YrwUnx9ecap3eaB3/1bCTPtHz2sJ66IADZrkQ8vU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A5686601CF 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: Kees Cook , Linus Torvalds Cc: luciano.coelho@intel.com, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Subject: New sparse warning from min_t(): expression using sizeof(void) Date: Sat, 21 Apr 2018 10:50:51 +0300 Message-ID: <87a7txf15w.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 Hi Kees&Linus, after upgrading to v4.17-rc1 I started to see this sparse warning from min_t(): drivers/net/wireless/ath/ath10k/wmi.c:4620:31: warning: expression using sizeof(void) I counted 167 such warnings just from ath10k alone and Luca told me that he sees similar sparse warnings with iwlwifi as well. My sparse is pretty old (v0.5.0-44-g40791b94c56b) but Luca said updating sparse to 0.5.2 didn't help. I also see this with latest commit from Linus' tree (83beed7b2b26). After reverting these two commits the sparse warnings go away: e9092d0d9796 Fix subtle macro variable shadowing in min_not_zero() 3c8ba0d61d04 kernel.h: Retain constant expression output for max()/min() I had to revert e9092d0d9796 due to conflicts but it seems 3c8ba0d61d04 is the actual commit causing these warnings. 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. -- Kalle Valo