From patchwork Thu Nov 26 13:42:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333011 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156280ejs; Thu, 26 Nov 2020 05:44:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6eZYglZbHR4IYwouvyWnAEfXI13BbkCcrb/yzXjYrBXOndUWUbe7QZfj5pGIc0RKcV3vl X-Received: by 2002:a65:5b0d:: with SMTP id y13mr2614878pgq.213.1606398241576; Thu, 26 Nov 2020 05:44:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398241; cv=none; d=google.com; s=arc-20160816; b=lFU0JZ0wHHg2kg6/u29h7HL6V9mN+RviYOttBXgJrQGbyCd3fCsr4fg9KbSuo6CsLR /JQtVCNc+GfP841DZ0kVaDsQ2MHdesxQ+tD/HenR0h7iPe1t93TgsoV06BSbrzGsRkT2 0TDT9yNlsylWBSSZwCo+j+8A5l4Puy5WiTxG6OcbhNvVexP/6S7Z5ozIpaE6LSZ5/m3z NQvNmKPO9glYoHlRhFVfRqfhbMBaSwcL8DDFSzpb3W0cagyUcFMHXHMzJx/c2ZklAL67 YRqOmvqVnF28MdOwAElys06TELzLxNGN9gd6L2JOm7pgH5/nwnNcFJf/oiEPXC3otrd5 wRqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=AMEsDClDivUEt2fu2XtU5HU4RphUNK7tK7ccmQeCgq4=; b=XFGmoDOUigLChGeicT1x3AXtyXEdC+TY5FBPnjrCAT4r46AypZSIQKqyvNze5NW+3Y Iv4Re6OxBDJKHrmE9xz6J2sbQbodA6aEcaJpiO4VqaPxzt3meq1LiM/nZViDLajxEOX9 l+bD2OZljNCtt1hhnAI1nAHBnWrJbsCp5Z9AhPA0PniTUNyOBcLzs95Dl2rcFsjZjjms DXITFtEWnDx0iPQaa+SXKpFvniXRxTlz4TVCzVy7GxEw0UwWeSJDQdEKFjGQsCkHmxkM wcAxwipOmUgGApwZy5p4fYtcRiNJCcIBTzpX+sF4CA+Y06BQOiGQzVf6ltpd9NBUGiCe VG8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ueetS8dx; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id t11si5201337pfl.301.2020.11.26.05.44.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:44:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ueetS8dx; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3EA076E996; Thu, 26 Nov 2020 13:43:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id E19006E957 for ; Thu, 26 Nov 2020 13:43:36 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id x22so2182204wmc.5 for ; Thu, 26 Nov 2020 05:43:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BHyKENW6Yz4oTye/FJPzNNjmGfv58ayjrIYPkA+7OU0=; b=ueetS8dxpG4eO8faloDa33OmDRYWKDXfGJ/MOesO0sVWIxlbnNg1acnUmuk2/IwmSf ynWcfu3xKgFrRhph301W/t3OPcXaCv0WmUd0j5/ucJuRUAOZbxw9vKgw9JQWG+J73gYN dzlwXWkZpqM7LOU60AzvhK5fYOoKjn8aBJ0By8qseo1RiV+Pn+RcSG8nAHQBVYeJAlE0 R6/K5j0Q03t+8e/0vdaMYHRUH2q4nfbUwpSJU9mS9SfRbIikwWIlUa3yc5tvBbjUPxqz V0323xh/2ZuoVA0U8/JRnXY/0a0M097+5zsUWW5yfK/gEEyacVeFwDldJ8Hay3MhqIUT ytSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BHyKENW6Yz4oTye/FJPzNNjmGfv58ayjrIYPkA+7OU0=; b=ZJyOIzjFB7R8kj54JTfQPnuO16MWTXKYkUR4zNvldihLnEK5L7U/UX3NGKMNxHmB7O bmhqbmSL9oPML5vAt6ID0WyMhCV+I6wPC/IHgAjR+2o5Kyv7jfukQlFWssADhkje2aCl /WomNIVBINF5Gw3Mhd+G9hUBTPWkwvVUO5+Hj5MI3ycVESQSedv1I2pBtbcwYF1Mxpe4 qj8wnvc1iovIewqytfpMvBE1Y082tSOBLSa0RLeXK3168yI9YxNSAIEgfMfJGTmCZSpY SACMOS51gGZf70JG8TksuPrW0m6VAslooCVjzBH2AXr13MRLuMzmNnZX32w/rwUNFBOi QXjQ== X-Gm-Message-State: AOAM532dBvml5F2MFEvSx9Q74tEy1SDM+2MRbeCknObrGeb8cEME4FiP ozr65KkDysF/rRofA8TAIC8DMA== X-Received: by 2002:a1c:4c02:: with SMTP id z2mr3499582wmf.139.1606398215596; Thu, 26 Nov 2020 05:43:35 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:34 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 34/40] drm/amd/display/amdgpu_dm/amdgpu_dm_helpers: Use 'gnu_printf' format notation Date: Thu, 26 Nov 2020 13:42:34 +0000 Message-Id: <20201126134240.3214176-35-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201126134240.3214176-1-lee.jones@linaro.org> References: <20201126134240.3214176-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c: In function ‘dm_dtn_log_append_v’: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c:345:2: warning: function ‘dm_dtn_log_append_v’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c:375:3: warning: function ‘dm_dtn_log_append_v’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c index b7d7ec3ba00d7..24a81642baa26 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c @@ -318,6 +318,7 @@ void dm_dtn_log_begin(struct dc_context *ctx, dm_dtn_log_append_v(ctx, log_ctx, "%s", msg); } +__printf(3, 4) void dm_dtn_log_append_v(struct dc_context *ctx, struct dc_log_buffer_ctx *log_ctx, const char *msg, ...)