Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4482674imm; Tue, 7 Aug 2018 02:11:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfp96UnrL1e98Z+vl/5Dhckxk/nBwFTejUZtYtZkeouR5XhGTw3j8GEqDP4hia+zifpi8Z0 X-Received: by 2002:a62:1a8f:: with SMTP id a137-v6mr20918197pfa.190.1533633062274; Tue, 07 Aug 2018 02:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533633062; cv=none; d=google.com; s=arc-20160816; b=ppnX3z+a7CuegcHX46icbMwLrPwllZRN///OtUVpX+gSq6yzCU4zgIM+6IyRhii5ec TyimfulLtfR2oWow/mP7trX1lON7CZzj2CCyK3r5PMrC6KEbL9t6MPEJENXHjT9vLuiB LDimCf6Wmvuoimbl+frQRl0J50Ji8c4J2Jl48mVtq8cyVfTq699rvtqeoSCsWcohxhwm zqI1SdpuC4nnNiup57VG8jtUbS3djBnYNx1r8fr6pFHFqH/vPyY8/IsqTXnl2DJciC1T S7q1+u+b6+Yv4ehxC2mKJHvqJGzFbdU3eVlm9cvLjjbI5fU19tK0Tjb7Hau5jp3hm0Uj SXwQ== 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=GHm7YnteHhMn41bV2KqfzS8FRKyEYvxzwdAoe1+Tzbk=; b=RWFLdOxzmIeFKQiUA0xTJOKQw21jwBugNNrYDRNoXBAYk1Zw3b+pV+FoQOKFHYVdPc FzluGpV6SurIZCv9sR298c8FkU3LHMo3xSrPmurEoSVf9MJ8Q1QScdFbAmgd7FNHwTVl a3N+pVBIvX4Mf509ohPuB6JDVYAHmdOCBQrbjrEnWypbS4FYIdfKb57eYn9niRG3ooJz wgxQdWCx6f0+QtMRV2K2takSaSEKs1GkwIp3H+fh/0P1siWG2QvTDPfnuQm1hLxjt0G1 cIEz/UCuofjcu5giOu2nzGqTJlVwxFIMgT1eT+brnH8OTY01UIkf6RuUlC5DaFzWDkwk 0cVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Tt9VdO+O; 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 v65-v6si957654pfk.261.2018.08.07.02.10.47; Tue, 07 Aug 2018 02:11:02 -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=merlin.20170209 header.b=Tt9VdO+O; 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 S1728242AbeHGLTP (ORCPT + 99 others); Tue, 7 Aug 2018 07:19:15 -0400 Received: from merlin.infradead.org ([205.233.59.134]:46382 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727156AbeHGLTP (ORCPT ); Tue, 7 Aug 2018 07:19:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=GHm7YnteHhMn41bV2KqfzS8FRKyEYvxzwdAoe1+Tzbk=; b=Tt9VdO+OtRQgTpj0LWKuwKFHh U924TJW7vDmYnHU/4i1iS/npXooQbGzQF9+ZvVZo4rcSJJgXarH86it8CKHuQqgSTxa9I1f1bN1Pc oPnl22EQAJQTg0zZ/zk2MpUWtIeCfNsTPCbSS3/rqeUexLmtbZeHpMajfPduf5303Oy18JXSp/Ghw EoOsfi4X38dJ61x4CHDOJh5qkwWNhCJTsWCbWfvQpDRt/Nk9UA3Xvu6oLwD0ZpbI52QEboj0qZWwo n/HbL6s7XyiS3Itz3dEYsJubIFlmSrTCYpGWlMX77es7QCU5sgGcYMXnAs+0QsfD00gBWgPxerJoK 8oO5UVV3w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fmxw3-0007Br-9J; Tue, 07 Aug 2018 09:05:47 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A854520588138; Tue, 7 Aug 2018 11:05:44 +0200 (CEST) Date: Tue, 7 Aug 2018 11:05:44 +0200 From: Peter Zijlstra To: Fubo Chen Cc: jpoimboe@redhat.com, Ingo Molnar , bhole_prashant_q7@lab.ntt.co.jp, Linux Kernel Subject: Re: [PATCH] perf/x86/intel: Fix unwind errors from PEBS entries (mk-II) Message-ID: <20180807090544.GX2494@hirez.programming.kicks-ass.net> References: <20180719153347.buoe6pavpqc75zbb@treble> <20180719174311.GK2494@hirez.programming.kicks-ass.net> <20180719211954.GZ2512@hirez.programming.kicks-ass.net> <20180806154235.GO2494@hirez.programming.kicks-ass.net> <20180806180423.GC2476@hirez.programming.kicks-ass.net> <20180806223008.GW2494@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 06, 2018 at 04:04:40PM -0700, Fubo Chen wrote: > On Mon, Aug 6, 2018 at 3:30 PM Peter Zijlstra wrote: > > > > On Mon, Aug 06, 2018 at 02:28:18PM -0700, Fubo Chen wrote: > > > Do you think the patch below is sufficient to suppress the sparse warning? > > > > Why would I want to make the code ugly to supress it? > > There are many kernel developers who use sparse to verify the > correctness of endianness annotations (__be32, __le32, ...). When > compiling kernel code with sparse every warning that is reported by > sparse should be analyzed. Most kernel developers consider it annoying > having to deal with false positive warnings. So I think that is useful > to suppress false positive sparse warnings if it is possible to > suppress false positives with a reasonable effort. Last time I used sparse there were a metric ton of warnings. I really can't be bothered about one more. Maybe fix sparse if you're bothered?