Received: by 10.213.65.68 with SMTP id h4csp505431imn; Tue, 13 Mar 2018 11:09:38 -0700 (PDT) X-Google-Smtp-Source: AG47ELtyUTm0qMbPhMmieXU70LiHwwOdH4Kcb800SG3c8op+yojSe8/b/nPCusMbS3VrybVaL6RN X-Received: by 10.99.96.84 with SMTP id u81mr1200732pgb.231.1520964578715; Tue, 13 Mar 2018 11:09:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520964578; cv=none; d=google.com; s=arc-20160816; b=cLMHvlgle1oxrCHwhX2QbhRNNfmfEmLXkn7RP3b+ZNKqME/0xCcyQig4/4MQngcdrW hhBW+f/+V0c/NExF/c3KbgWOzKdw3HLieQy08EjAmc/N7cko2wqlv+FnC/IhABdMyHmo CkuLlUogbBaW5ZMJw+wOoQAKsCYWu42YJMG1lQSYkHddavm4LD3a0CYGRQBdsRpwjL8E bjKhiTwPI9P0FQQHMbU7TqOOhNVoe3Gl8g9QuJojVbLocF73mZlHkghBBJ8DfBxvYDFq xwE+7ZgUZwtPxS0NZyrvuWs4Tggn9DCQgyBDVDdejMX1XyNP6QVUCnlDp693JB5gwSRL KJWA== 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=vIqTHtXeY+LEG/0Cq5F+hkWS2wiy8Mux5gVOKCMfOVo=; b=L6sPz917EXokd9tj7GH0wNzmzp0FZ0MF68dOsQcl5r2qoJTvqUxUqYKmRi21wdAAa1 ErxjDwZwHEomr39gZNB3Qz72TAQpGvSY/gXNT7eEHF4qUKNijyMPhieZ332kSFgPEC4g veJF1aXrrpkYPfLvImqNV87r7rBJJ55DDVh+s/yeA87Jooneo63rRfTR6WWKJhf7jv0G tSKKIIoWbf55V6Wgpar9RxqJUIh5vFud28SqDYaHfs3XKD78FsIpWaiN/APRStqCziAr /8Bo9uGRR/azE6ZnZ/ti8XeNSD3XxLyvW/22k59mZAoIuEawiVP+wiaR0OhEDTVEfw7/ z/wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=bbe6rGyH; 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 m133si446646pga.483.2018.03.13.11.09.24; Tue, 13 Mar 2018 11:09: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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=bbe6rGyH; 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 S1752914AbeCMSIQ (ORCPT + 99 others); Tue, 13 Mar 2018 14:08:16 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:34432 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751549AbeCMSIM (ORCPT ); Tue, 13 Mar 2018 14:08:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding: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=vIqTHtXeY+LEG/0Cq5F+hkWS2wiy8Mux5gVOKCMfOVo=; b=bbe6rGyHK7F6Vy2XgQn2zB2vH n0VNtOpJYZ0W2gyYI91e4F/E0ndIwYBKHqpmebxh5Xe12Jht6odh5dm6wZXs+pkOoKwxnfOZ20b1E SK5dCLhFR+Em8cgmwiFSTPEdY7cRkHepKeuRVvCdM548W7yGFv51i/gjtLNdI2Z6z4zlhy/bKWIol by74Yz6CgAuv+xhjmyR5fKgOzipaXBGM4c08+e9i/b2XLBbGXvPh5QoR7pOfMQI/y2dLnet7OZtDi tH0BBIlyirheqAmfJ4X7Sgm0uWPasW0XP53WsPw1egV5ZXJmb20P5PQdejYCoCx3p+BkRuerYfSeN vKVmzyy3g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1evoLJ-0002Ch-BA; Tue, 13 Mar 2018 18:08:09 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AF0602029FA14; Tue, 13 Mar 2018 19:08:06 +0100 (CET) Date: Tue, 13 Mar 2018 19:08:06 +0100 From: Peter Zijlstra To: Luc Van Oostenryck Cc: Dmitry Vyukov , linux-sparse@vger.kernel.org, Christopher Li , kbuild test robot , kbuild-all@01.org, LKML , tipbuild@zytor.com, Ingo Molnar Subject: Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0) Message-ID: <20180313180806.GO4043@hirez.programming.kicks-ass.net> References: <201803122219.vHl3IwRo%fengguang.wu@intel.com> <20180313104652.GK4043@hirez.programming.kicks-ass.net> <20180313180016.5axdobx6a624snpp@ltop.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180313180016.5axdobx6a624snpp@ltop.local> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 13, 2018 at 07:00:17PM +0100, Luc Van Oostenryck wrote: > The issue here is that sparse has a whole class of warnings that are > given very early (here at expansion of constant expressions), before > eliminating code from branches that are never taken (which, surprise, > need itself to have constant expressions already expanded). > > It's often annoying like the case here. > OTOH, I don't think it's always a bad thing. Sometimes we want to > have warnings even from code we know will not be executed (in this > config but maybe it will in another one). Is that really a valid concern with all the automated randconfig building going on today?