Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1048552imm; Wed, 17 Oct 2018 12:25:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV60UTWzj8srQaYzR0pp1nA50Oo/gzpOdaRb06MyG+wy1NxAlsDfpEYs2daeUeUhl7tZqJd80 X-Received: by 2002:a63:ea07:: with SMTP id c7-v6mr24358361pgi.361.1539804352718; Wed, 17 Oct 2018 12:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539804352; cv=none; d=google.com; s=arc-20160816; b=YsK0Z9zy9knBm7aRfG4gTrypE7KxiCcMEHmUXwri+eZjcuV4xIK0W+Wa9qZemwOooY 6Mjp64fVNfqvuvH96Qf9Q4c4ZwLpruyUXH3WCeqS5CcGfYJeYCU9ilr6/HxsAOHWhRMd j6DwMPLtkI+PtwOBYyRO+kQsLt1QIUG5zcmyl/tLh15dwkd7R0VEjZRtVqOv24nuKqTO GSc7YqRig2YhbGQqgzYk2LMJZldAR5+7T3QHUym9cs37o6nADJaSVCYSi8GvrDd8dQl0 Uk0I2XmPTy0Xd4g9zenatsYkJLFwCTzbJ1dcnmrUBH9aNxf7roOgl5ueqDbr1HSoP7NZ jbtw== 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; bh=6hLtFXLB8dtoWLMgX17Lw7RFrAef3A56DkN6PK923kM=; b=S1ZYr2TGOZlDFOTjsKUJJ4geBhsPLW8jFHzSpR22YDcfkCV778GlXx+FaZvM4wXhIG nre72LqOMoLUtAypatGb8RAMx2CklGd1fBnZNVuN2b/hb0jna/9LfKaYmLESCaPw3mcd h3ezuRuk4gfJXH0DAIGGvb09lhsDeD8cq+reJs3wiNKFV6UOsXheS64uwg8mchjvqX0Y wFiNhkg/3oIxilAICdIlm4SjP/LGiKiXs/zzlMOk5rQzHCIPSqIEKxTpOeBMLiytPi3h xV9kpBsxk/ZHE1QV+50/E+IGkdgwtD9m4YG/F75NHJZbF6sUG3snERpOwWDuCwi94yFg umEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iQ6e9koz; 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 g189-v6si17945638pgc.204.2018.10.17.12.25.36; Wed, 17 Oct 2018 12:25:52 -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=iQ6e9koz; 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 S1728371AbeJRDWO (ORCPT + 99 others); Wed, 17 Oct 2018 23:22:14 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43826 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727128AbeJRDWO (ORCPT ); Wed, 17 Oct 2018 23:22:14 -0400 Received: by mail-wr1-f68.google.com with SMTP id n1-v6so30966201wrt.10; Wed, 17 Oct 2018 12:25:04 -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=6hLtFXLB8dtoWLMgX17Lw7RFrAef3A56DkN6PK923kM=; b=iQ6e9kozJbDi39gRWY7ZbEWTR4+frzQ9csaiGpQW4Rtd9rEuwsjJbz8ybQdRTGt2DQ Us9eXTIOcPTTiJUar24ghBYkUraihL2ozUW91ZsA8j1odDxq7/EI2BGfZAQPD4xwmMVk XIXL19x7/fG5vkJTlFTfxEq2KyG4s0wsYM1oIP1glvZih8J7ulnYcFCWjsOLfZ4917DH 0nt3CkOtvkO8gT62GzO5blOZhxvBBXZAKscu9OIHlDjhYPVXKWe58Ke9Mm+H45VwhJsD qlfZLt3HS9wSH44UGe/WpVWASTocXaW+/xlRC6dRzCCmIHZ/bjPl7CfYWPOAj2IeqI7G cGOA== 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=6hLtFXLB8dtoWLMgX17Lw7RFrAef3A56DkN6PK923kM=; b=Slb+YIpxP02ZTggzSntJjWdHB13zF9n45pmmUgCOtV7uCQZheVmN6PD/+dam2mw2Sm +uI/VgdVXvIw34NxPStIhr9QHiN9qELAc3xH5l8+zQil5G89JTHp14Ts3HOyRT9k8pxE nWs90Wvl66K7MHUDfhVN+Gsto85jGxsH8+4ZoD20sAwuTesHg9i7GCl3vMK4HdRUVa/X QO6ZbboU9i/W6F9dTZtZGfenurP5MDlvcAJkuresqw2a+1BYraOEIOgBwfpw1+BVtz1a +/ieNXNMAUtQDtaHNuo3Ang1SIg9NWUURa4/sXPBo6ZxiQIeMsieauylrwTeGoDZPZnn DICg== X-Gm-Message-State: ABuFfoglmsJoImRp5T+fKY0XB1GsfGymUo+8mf1HUVGV1ObR4BbIj8on E6o7G7lVcg8RTXMKMAe44Ao= X-Received: by 2002:a05:6000:1008:: with SMTP id a8mr25238062wrx.271.1539804304177; Wed, 17 Oct 2018 12:25:04 -0700 (PDT) Received: from ltop.local ([2a02:a03f:4027:2900:d1ab:893d:541f:d1a4]) by smtp.gmail.com with ESMTPSA id y125-v6sm3568025wme.12.2018.10.17.12.25.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 12:25:03 -0700 (PDT) Date: Wed, 17 Oct 2018 21:25:02 +0200 From: Luc Van Oostenryck To: Sebastian Andrzej Siewior Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, linux-kbuild@vger.kernel.org, linux-sparse@vger.kernel.org, Masahiro Yamada , Michal Marek Subject: Re: [PATCH 1/3] kbuild: Add -Wshadow to sparse Message-ID: <20181017192501.3yqfq77q2n4xdq7l@ltop.local> References: <20181017170554.18841-1-bigeasy@linutronix.de> <20181017170554.18841-2-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181017170554.18841-2-bigeasy@linutronix.de> User-Agent: NeoMutt/20180622 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 17, 2018 at 07:05:52PM +0200, Sebastian Andrzej Siewior wrote: > I remember that `sparse' used to warn about shadowed variables but it > seems not to do it by default anymore. It was useful. > > Enable `-Wshadow' while invoking sparse. Hi, I made a quick test and I saw it would add a lot of noise because of (valid) warnings coming from macros using a statement expression redeclaring variables like '__u', 'tmp', ... BTW, as far as I can see, sparse never had it enabled by default. Kind regards, -- Luc Van Oostenryck