Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1304594pxb; Wed, 10 Feb 2021 05:31:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwIhMFnbRrtHQnvdwHlEzmLmmoGi6bme7xdIjXkRI4u1jTFJmhMEGl7PcQmD9yk8YM6hPdf X-Received: by 2002:aa7:d6d4:: with SMTP id x20mr3268462edr.8.1612963878935; Wed, 10 Feb 2021 05:31:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612963878; cv=none; d=google.com; s=arc-20160816; b=eS5s63vG0NADXdaok/O6UTP75U9r20hTxXxPYPsqIx2qVUJDgtUs0b1QPMRWp4vHbG 1Ci6nOS1VF6VUM9oCK2J0IHsNNcmjLIT1rub7o5wUhaE2oFblkKCSip+sKUevCwHkRJv RRylU+t59mFHhcKqioBd8uLk+XJF+G05ADrYqzEFgmrmtcXcSWWiE0aWXOZDN6G4dKsF /RG1PeYegpYPxuMvwFO6sdbC+W8YeN5BdtCOLnQnwp+cX/B8p/g/lV7XVugVZB1ttqpa W8rvgXtBfzwF02N0Upijsd1zMkrAMB/HAt1qRgyQ+ORIyQ9SjHDWcricvPWdC3qM0+dx SgSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=I3FIjt8SdbutmfidhQDSOSXBUCw322LqvVNCWhXQOZw=; b=XU++q1c8GhbZdMdMTFpFipOXWy9Tbc28GRwxnWx/ZAGDgQzoQKMGdu3ZWZjtlFJWC0 YtdrFS3cOgbEqcfWqBf3PanxtBSVWkBox0XgDUMRYc+t2h9FjpIAe+zu18UUcdDuhc8V XnbYgTP2QB94F8OAtDwwxLfYhfbJogobv41daVda9aBs1Vt8Ys2UN5wKtk7ws0uJKECy Sa/uVnSxas4E2bXNR8KGndFBl+cMyAxAoHf/U0/Vz4Y+IVgFVI1l272SuUXv5QFt8DKI DcCiLXbnjYYtjl6g2pEM+KcQFlvoIZkYqhJOPupigwUiFcS2oMZN7gPArf6+44i3ttcs i2tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jN0QdM1R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr8si1237264ejc.138.2021.02.10.05.30.53; Wed, 10 Feb 2021 05:31:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jN0QdM1R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229878AbhBJN3R (ORCPT + 99 others); Wed, 10 Feb 2021 08:29:17 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:28824 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229465AbhBJN3Q (ORCPT ); Wed, 10 Feb 2021 08:29:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612963669; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=I3FIjt8SdbutmfidhQDSOSXBUCw322LqvVNCWhXQOZw=; b=jN0QdM1RmLF9dDG9YZpeci6c8Vq4GnAy/wuiU6/7Z8KhVX48Dy+Pln+t1FjNc0cI+gWD8g +0qp69JFlj9sqFmCfY+bc5GP6AKwHq63tUc2tHgneMyGTJfNaUduKVfz+fEI0iWqPyBjO9 V42xK/mQmruXEewYv1Np18cMx6WHVjM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-167-Qmvwp_CQP6eBLI-s-Yuqfg-1; Wed, 10 Feb 2021 08:27:47 -0500 X-MC-Unique: Qmvwp_CQP6eBLI-s-Yuqfg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6D8E6107ACE3; Wed, 10 Feb 2021 13:27:45 +0000 (UTC) Received: from krava (unknown [10.40.195.206]) by smtp.corp.redhat.com (Postfix) with SMTP id 41F3D5C8A8; Wed, 10 Feb 2021 13:27:40 +0000 (UTC) Date: Wed, 10 Feb 2021 14:27:39 +0100 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Ian Rogers , Alexei Budankov Subject: Re: [PATCH 15/24] perf daemon: Add ping command Message-ID: References: <20210208200908.1019149-1-jolsa@kernel.org> <20210208200908.1019149-16-jolsa@kernel.org> <20210210125146.GD1018564@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210210125146.GD1018564@kernel.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2021 at 09:51:46AM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Feb 08, 2021 at 09:08:59PM +0100, Jiri Olsa escreveu: > > + > > + if (!pollfd.revents & POLLIN) { > > + pr_err("failed: did not received an ack\n"); > > + goto out; > > + } > > + > > Fixed up this, pointed out by clang on many build containers, including > fedora:34: > > Committer notes: > > Fixed up bug pointed by clang: > > Buggy: > > if (!pollfd.revents & POLLIN) > > Correct code: > > if (!(pollfd.revents & POLLIN)) > > clang warning: > > builtin-daemon.c:560:6: error: logical not is only applied to the left hand side of this bitwise operator [-Werror,-Wlogical-not-parentheses] > if (!pollfd.revents & POLLIN) { > ^ ~ > builtin-daemon.c:560:6: note: add parentheses after the '!' to evaluate the bitwise operator first oops, thanks jirka