Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp159777imm; Wed, 3 Oct 2018 13:43:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV62J1M+RJHQQEGxOaTRYusaUI3Fst0jwGBRQ5lB67ZOiqF92GStee4G94cOwSiB7Qw/3yHL8 X-Received: by 2002:a62:da03:: with SMTP id c3-v6mr3461469pfh.52.1538599416777; Wed, 03 Oct 2018 13:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538599416; cv=none; d=google.com; s=arc-20160816; b=ErgOdcjodzls+V9CDZDGS7HkOVFIAK2F7waWkJ024ESgmW7fszAEKp3yvTIG/MUzhQ 5l/KpZHNXS4qvXcpUdVzGWzFZhQmUPI7hz3pvxxVI6O2bNyEnP9PMGKoJcZQ3750/nbr t5c6tJGjXb6c0lDvx9s/rUiZA7dsB4snN0h97oqSbTpmwfKWsy2Y4L9zrfzM8iRXYdf5 MNRO0gWpIqLqfyo1x2n3IyLOaDs+clx/7KvdJ9aF7YlLpOliFpH+adSgrJQL+9VX1ik7 aGgumODO81AaUrvosDD+EayokORrNiErq4C3zE1xTZEZMGawPWQbc6I4NgOwHspXBHQ3 IsQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=SIgYzLdmmr/wQC19zx/zfV51m9FvEYEDEDymmHvWTjI=; b=weCOemH+aoJkwXVLKvdi8fil9MYSERaWS8HrGTA7prhvCPkYXt/NdDso/HMmYCUsLt Af5g+cYNm1N9CM17yiDJKHbiy4magA5ZPNCnQizCeQAOpxTTTlmERqxQaY/s1uNEFZIg MKleZ3+a9iKv3LSkI2ujqJVtclvpZNF+H0h16REWzGtTNoOnLwRxG2l03YlDcrB9dyV0 TDmgFuwgGb7ghpM+vWJ7gydpD0SU6r10PkG2PDvkZICfAYzCzbKy2VuikK8KAwxLvhDR e0ZKeTqPt7rFb1+/09gy1S5KmkdYo72HjjMCGgEjxgk0KoPnv0uAEBtkrKmxXvBeUOeG lidQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jDZrEZEV; 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 k10-v6si2540263pgj.381.2018.10.03.13.43.21; Wed, 03 Oct 2018 13:43:36 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jDZrEZEV; 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 S1727343AbeJDDdI (ORCPT + 99 others); Wed, 3 Oct 2018 23:33:08 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54548 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726969AbeJDDdI (ORCPT ); Wed, 3 Oct 2018 23:33:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To: Subject:Sender:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=SIgYzLdmmr/wQC19zx/zfV51m9FvEYEDEDymmHvWTjI=; b=jDZrEZEVR5lSbTJgSRzbigjJz qKpmW6hA+0Crj/GMZ7giMKOGfkXhMF3/hew2kz0KJGE0ZIrPUeJt7kZG7mttckH8ytiwtjDLslXVS Sx3FCCLzDUtHLByTGp64A3BbdGUgi+pGSBPC8GfZi41+cwrgm83iV/248CcFYIJjy6lR10xujKIbq eHV7fROEvr9vZjwchB2teF7JKWcP9Mu9VLN5nyyVuo7UC3OfxrwE1828GNYqXdAULewvRzpsknp+a i3ETiNS1kpMF882RonfOsb5KwcqZuThmRlCPqPvTc/rhaFabX+QSjTW+mU47zc9J0U21OQsUedG29 nh3g36nDA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g7nzB-0003Bw-4E; Wed, 03 Oct 2018 20:43:09 +0000 Subject: Re: Sparse warnings from calls to max3() and max To: Larry Finger , LKML , Christopher Li , Linux-Sparse References: <3afaa0ad-33a1-33d1-f306-8e0e467936dd@lwfinger.net> From: Randy Dunlap Message-ID: <45c184f7-8e1d-59bd-a448-97675e6de81a@infradead.org> Date: Wed, 3 Oct 2018 13:43:06 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <3afaa0ad-33a1-33d1-f306-8e0e467936dd@lwfinger.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [adding linux-sparse mailing list] On 10/2/18 4:44 PM, Larry Finger wrote: > Hi, > > Sparse has suddenly started issuing as many as 11 warnings of "expression using sizeof(void)" for each call to max3(). There are similar warnings for calls to max(), thus I think this is the origin of the problem. My sparse version is 20180324-1.3-x86_64 installed in openSUSE Tumbleweed. My kernel is 4.19.0-rc6. > > Thanks, > > Larry -- ~Randy