Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2323752pxt; Sun, 8 Aug 2021 19:54:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhjFhFwkVWaR/WyLvLMYo86+hQKpPY6UWeY9Cyh4UKYH9BpcBJo2QPfwQ3Uq3eRXKJzUNE X-Received: by 2002:a05:6402:5:: with SMTP id d5mr26660469edu.359.1628477678871; Sun, 08 Aug 2021 19:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628477678; cv=none; d=google.com; s=arc-20160816; b=Tpd7H5SrA/y7JyUVJF5KGOcWAY8iEdvZIG0mCzA5DGIdkxp0alyYnL+DldMY4EEirJ wB3DkZyLsNAUcUF9YHfvqLtrMzF1spODkuRaYg4ovU7ReEQolKk2asZ2uMR1nlTgFJ/U wa53jpDnDa/NAz3BodVeBwJ96faImKVfuq7TBIUz4am3ajAOhSh7KpmOyHldWz1vZkNh d4FzsNRFOzMNCrP225f80E/9U9jPL9XXSZ5RLuEgoxy0DxrFguAhqziR+7idZuKZ7lji QMpE9mrEicotKmLutFMe3L+CqFlzpfYs2+p9Xp2Rlh5m4tWUhDZopvnVgZzXR4xGFsmz rnTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VeEVmBRhzJwW70EXgz8gikTw4yYG1nvlogdYjeiVpsY=; b=emL0mqaLJERejqUZSwx36iZzk1op05EKBUhJN6f3jPEqfRts/ibH4sKOahRdxL6W3h BWVxPqN/jaNgHEw1C8ooZ7zjGUqGwlnckImp5PVPBnQNMpdbyPv3EMJVvs3k40eVa1gg KyYXUhOae/PXy2IRtppA53IcRmUqmNrQ5Q68Mx3bHN9GjnnC/cjGW9tVOr+d/+bdaZRu /TC2sm/nIklggvGDkJcAHykVilkrUkjF9Hc4bdAuWxD/vJfFNKmfR+3bw7JWgk1iB4E1 iRAVR4zTns06PYrY1ENOFaGFleNuaYsfpbcYCYYQtjts5gQ2vfHMS3VlhaXgZmnBqYLp vJ5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=YnLj9xWw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p17si19022465edq.486.2021.08.08.19.54.16; Sun, 08 Aug 2021 19:54:38 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=YnLj9xWw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231675AbhHICwb (ORCPT + 99 others); Sun, 8 Aug 2021 22:52:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbhHICwb (ORCPT ); Sun, 8 Aug 2021 22:52:31 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 831F4C061757 for ; Sun, 8 Aug 2021 19:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=VeEVmBRhzJwW70EXgz8gikTw4yYG1nvlogdYjeiVpsY=; b=YnLj9xWw2JGrkNfvnL7ajlkaWO OHfCYu/H3paOjWTTm3R9Q0TCUKc4/sJW1WLNiJsJU2Yjmqd99cewf3FtAWx9HaYethq0DtxYoImb/ MH9PcVwK9EWewy+TqcYJjsicQzTDdswWnvcR2fXKUzKNd3Y58skkHlMi7eu+R332A+7Qy7oQ1dOiB Mztv7CK9aqmBuhrUoxVMMJ3Rq06r89SM8rRiI9TTF2a8lVflfX7Us0tz1O3klXf2P0eDTXSbMMtG8 Q4Uc7Q5AgJRlJOHanwYxwAgZfPt5jfbzh+qtXC3WwRHRf9T0+A3aYGNAeoWCFrke4Ej9mIlAmDKgG u/vM7qSg==; Received: from [2601:1c0:6280:3f0::aa0b] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mCvOb-00GxMm-Mr; Mon, 09 Aug 2021 02:52:09 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Wyatt Wood , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , Harry Wentland , Leo Li , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, David Airlie , Daniel Vetter Subject: [PATCH] drm/amd/display: use do-while-0 for DC_TRACE_LEVEL_MESSAGE() Date: Sun, 8 Aug 2021 19:52:08 -0700 Message-Id: <20210809025208.10182-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Building with W=1 complains about an empty 'else' statement, so use the usual do-nothing-while-0 loop to quieten this warning. ../drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:113:53: warning: suggest braces around empty body in an 'else' statement [-Wempty-body] 113 | *state, retry_count); Fixes: b30eda8d416c ("drm/amd/display: Add ETW log to dmub_psr_get_state") Signed-off-by: Randy Dunlap Cc: Wyatt Wood Cc: Alex Deucher Cc: Christian König Cc: "Pan, Xinhui" Cc: Harry Wentland Cc: Leo Li Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20210806.orig/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c +++ linux-next-20210806/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c @@ -29,7 +29,7 @@ #include "dmub/dmub_srv.h" #include "core_types.h" -#define DC_TRACE_LEVEL_MESSAGE(...) /* do nothing */ +#define DC_TRACE_LEVEL_MESSAGE(...) do {} while (0) /* do nothing */ #define MAX_PIPES 6