Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3199793pxk; Tue, 15 Sep 2020 12:43:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgAZP9p3NyFcnFkPq8SK5qJTl4qRyV4kmtseohIW2cBqaXZXXOLEfOkyZpk7Fjp1Oq1AE3 X-Received: by 2002:a05:6402:1851:: with SMTP id v17mr23708747edy.46.1600198996061; Tue, 15 Sep 2020 12:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600198996; cv=none; d=google.com; s=arc-20160816; b=GiKfC9KtuwWKfK49o1ahWlqfYRKTMYHYafRVWZOmrwZN0tEqU8VywE1yeE2bJbGbxN Suzi9QSsvCq8lL+RbEDETCncLqxGKVrPGtEwZ9Td4HSnJHJPmCEi8uVFIma+Odne4l4m IOaPGY1bCxd6VSeOcRpYc9GEnVvGuiUFXmMRlopAKaNRgEhdJoIr6B4tcHUvenv4WGsN yibDBzOXPza33QX7w7cg6AcYqTf8Qh4K6/K2QZ4h/oUCYjIKe98uApAmIonHBthjlKK4 +6MovtN2+XV101/CzXo8w1VWhT3S+GuLaKVwhqljP9Y+92nYsu4Sz3dSpMTq0NbHucpw C78Q== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=jPCY2HbLFzcuyhST44QIWsuArtvOZ/6FPRJbHCItfCs=; b=xKPNmh8J3H7PUW/DPvLiEAeMIx+FQpEuEFm0vPekO/ODXIN7xBXEHs4iqb6KmDB2/Z RxT8bGp8l0+8sKChDguRMqJSPUAXRLtPn3nRfO7Z32oPoiLihohV/agfSKs/7urqlGqI Zbj7lHPXwgZVGPUY9logIKwfYOe8rX/g+potBDlKsQLXOYz0Wzl0+W3wLIwtHiJcJz9L XqHNA/BfS+IdFiljAZ+MvFBvyuhUqUfuHPLHd/Tci/QGjMdRfmw9wWs1I9SyUuj/fqwf iCW8/f+XilxmQKTKa7XKcAvdUblkN/SyOz9R4weMeiBJUW/ObVgERW9DC4/NAap1ihxP iI7Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i24si9944799edr.73.2020.09.15.12.42.53; Tue, 15 Sep 2020 12:43:16 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727877AbgIOTjR (ORCPT + 99 others); Tue, 15 Sep 2020 15:39:17 -0400 Received: from mga03.intel.com ([134.134.136.65]:34965 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727971AbgIOTgA (ORCPT ); Tue, 15 Sep 2020 15:36:00 -0400 IronPort-SDR: IpHkPfXDT28U3rFz8KDO+H0AEhNQ8J9SYAKbKMOUKk5uUO9GBX/wWYzYfElstq4EoUz0zlMrfW 03VaCU900J7A== X-IronPort-AV: E=McAfee;i="6000,8403,9745"; a="159386766" X-IronPort-AV: E=Sophos;i="5.76,430,1592895600"; d="scan'208";a="159386766" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2020 12:35:54 -0700 IronPort-SDR: i2m5jk7nUWDhIcarS7CMsRRt9ERB90Cv8RG/ApZVbBpRKGqGU6fG49uc78PWAFvbeTy9FLSCUx hUSdv5ho7g7A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,430,1592895600"; d="scan'208";a="288114814" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by fmsmga008.fm.intel.com with SMTP; 15 Sep 2020 12:35:49 -0700 Received: by stinkbox (sSMTP sendmail emulation); Tue, 15 Sep 2020 22:35:49 +0300 Date: Tue, 15 Sep 2020 22:35:49 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Alex Deucher Cc: Christian =?iso-8859-1?Q?K=F6nig?= , yi.zhang@huawei.com, Dave Airlie , LKML , Maling list - DRI developers , Zheng Bin , amd-gfx list , "Deucher, Alexander" Subject: Re: [PATCH -next 0/8] drm/amd/amdgpu: fix comparison pointer to bool warning Message-ID: <20200915193549.GP6112@intel.com> References: <20200909130720.105234-1-zhengbin13@huawei.com> <1fce0f2a-3777-e6d8-5a09-30261f843cfd@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Patchwork-Hint: comment User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 15, 2020 at 03:16:32PM -0400, Alex Deucher wrote: > I question the value of these warnings. Why even have a boolean type > if you are going to get warnings when you use them... > That said, applied to avoid getting these patches again and again > every time someone sees this. if (this_is_sparta) if (this_is_sparta == true) if (this_is_sparta != false) I think the first one reads the best, and avoids having to decide between truth and falsehood :) > > Alex > > On Wed, Sep 9, 2020 at 9:21 AM Christian K?nig wrote: > > > > Acked-by: Christian K?nig for the series. > > > > Am 09.09.20 um 15:07 schrieb Zheng Bin: > > > Zheng Bin (8): > > > drm/amd/amdgpu: fix comparison pointer to bool warning in gfx_v9_0.c > > > drm/amd/amdgpu: fix comparison pointer to bool warning in gfx_v10_0.c > > > drm/amd/amdgpu: fix comparison pointer to bool warning in sdma_v5_0.c > > > drm/amd/amdgpu: fix comparison pointer to bool warning in sdma_v5_2.c > > > drm/amd/amdgpu: fix comparison pointer to bool warning in si.c > > > drm/amd/amdgpu: fix comparison pointer to bool warning in uvd_v6_0.c > > > drm/amd/amdgpu: fix comparison pointer to bool warning in > > > amdgpu_atpx_handler.c > > > drm/amd/amdgpu: fix comparison pointer to bool warning in sdma_v4_0.c > > > > > > drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 4 ++-- > > > drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +- > > > drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 +- > > > drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 ++-- > > > drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 2 +- > > > drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 2 +- > > > drivers/gpu/drm/amd/amdgpu/si.c | 2 +- > > > drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 4 ++-- > > > 8 files changed, 11 insertions(+), 11 deletions(-) > > > > > > -- > > > 2.26.0.106.g9fadedd > > > > > > > _______________________________________________ > > amd-gfx mailing list > > amd-gfx@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/amd-gfx > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Ville Syrj?l? Intel