Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2211345rwb; Mon, 19 Sep 2022 01:08:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6+CvvCitkEyTHE08iRC1TveC6jBX5P+AEYBDv04ehnhbDEJ5Am91gbjUyqotWTkCd122U0 X-Received: by 2002:a17:902:e74b:b0:178:2976:41b0 with SMTP id p11-20020a170902e74b00b00178297641b0mr11855818plf.105.1663574904669; Mon, 19 Sep 2022 01:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663574904; cv=none; d=google.com; s=arc-20160816; b=gbaBsxxJyfgYQ+PkkKb74Az87JvJXGTRwcNtuiJPH+N2o3ooL8ZiWlEMQwq+ReiZCx al9GUklqv1FR8X4nPkqOHYk4JhGjTfY0nLxRxBcjEduUy51Z/ojeljY/8akBjpoiHmUN qut9rGoagFRrhViAluYxrbaH/GHtr6AUnaCA2yPbJCxlGzpslvTp2WkI4Nt/pHhNh1Vz t8whA7NK+5EsuTsRJ/J/qFAnqfw6E0jGsM2X2MRnedvgU1xOwVpG7133c81oVveyhYbO 6dAIqg8gGFQ7SP77OfP+XWqvUkzFVYDt+A1otKsIug9hF4tY6INlhyqnV9WpU9RVCzpg e9vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kB77PAeEPUpU3r9N389pHsVoeHxRHxST9kZyT6wFcl0=; b=PjK0EQpKu3dWNzOh+fu/eRAaK7K0oyPl+B4CuVBM6KfYOdojj7KGzclPemb5PTFIXn oSGZIOhV2zQkEPbfoUiwsoVJHKTcjaGpoL3GjpyJVH2Gpzrb71yvIbrIEm5rwROuheeM tM0iqS0Ki0fkCBn7q9SmqYIzGuqdn0d04pGYPG/p0los1eBzsyTARnogP1qLEyrGjoWY T33rSMlAFeaKCK72zKNjNXREOv4bcNvVOb01tqrLxuDwDh1mexU/IA5+3uDuovHjKBNr k3CEuYXo/Nih49JvZKz5dpY+8OMNnpb6N8hsuzy2OoSQN7OAr9lAUyZE0OuxCWpVrTEg qyrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=CalT+faw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020a170902eccd00b001782984048bsi27557200plh.623.2022.09.19.01.08.13; Mon, 19 Sep 2022 01:08:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=CalT+faw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229702AbiISIFw (ORCPT + 99 others); Mon, 19 Sep 2022 04:05:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229940AbiISIF3 (ORCPT ); Mon, 19 Sep 2022 04:05:29 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A2EA12779 for ; Mon, 19 Sep 2022 01:05:28 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 792E96601A05; Mon, 19 Sep 2022 09:05:26 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1663574727; bh=zXPTcvw/TefhoaPSogtRftO+DMhN8kcfYVae45CwGHw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=CalT+fawla8opHrjOOc6bXxxBDHsNqDG7NXNc82xjT+R/AEjNMGxy3Hdqkxqj3ldK 5W1ZxbUKOLqrhRWfQcb9Y7A74ArrN+3zoq3bPkpxa6t/o8b8V2jd5cXM8ZGqrCS/B3 4tS7hVImGsEZyn28ytCXbEqLgKua+LbxeMxZDB1xTxTg2KFEKHfgjgOb1skXeKBB3u OUwit8fhknIZqcvNC0b6hw1D+Esx7b0gdR/55U7snrLfEV74c5DhpSTcEDxtzX/qH6 gEKhqx1oriiXT4tgCFEv84oFKhzZYwvXB4PwVmnwB7kPvc9XbVzfMzwGgk5GVwQnqd N/2J+CDuqPFsQ== Message-ID: <673d61a1-1c92-04b3-523b-1852c7980358@collabora.com> Date: Mon, 19 Sep 2022 10:05:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH v2 3/3] drm/mediatek: dp: Fix warning in mtk_dp_video_mute() Content-Language: en-US To: Bo-Chen Chen , chunkuang.hu@kernel.org, p.zabel@pengutronix.de, airlied@linux.ie Cc: matthias.bgg@gmail.com, granquet@baylibre.com, daniel@ffwll.ch, jitao.shi@mediatek.com, ck.hu@mediatek.com, liangxu.xu@mediatek.com, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com References: <20220916133821.27980-1-rex-bc.chen@mediatek.com> <20220916133821.27980-4-rex-bc.chen@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220916133821.27980-4-rex-bc.chen@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 16/09/22 15:38, Bo-Chen Chen ha scritto: > Warning: > ../drivers/gpu/drm/mediatek/mtk_dp.c: In function ‘mtk_dp_video_mute’: > ../drivers/gpu/drm/mediatek/mtk_dp.c:947:23: warning: format ‘%x’ > expects argument of type ‘unsigned int’, but argument 4 has type ‘long > unsigned int’ [-Wformat=] > 947 | dev_dbg(mtk_dp->dev, "smc cmd: 0x%x, p1: 0x%x, ret: 0x%lx-0x%lx\n", > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ../include/linux/dev_printk.h:129:27: note: in definition of macro ‘dev_printk’ > 129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \ > | ^~~ > ../include/linux/dev_printk.h:163:31: note: in expansion of macro ‘dev_fmt’ > 163 | dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \ > | ^~~~~~~ > ../drivers/gpu/drm/mediatek/mtk_dp.c:947:2: note: in expansion of > macro ‘dev_dbg’ > 947 | dev_dbg(mtk_dp->dev, "smc cmd: 0x%x, p1: 0x%x, ret: 0x%lx-0x%lx\n", > | ^~~~~~~ > ../drivers/gpu/drm/mediatek/mtk_dp.c:947:36: note: format string is defined here > 947 | dev_dbg(mtk_dp->dev, "smc cmd: 0x%x, p1: 0x%x, ret: 0x%lx-0x%lx\n", > | ~^ > | | > | unsigned int > | %lx > > To fix this issue, we use %s to replace 0x%x. > > Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver") > Reported-by: Chun-Kuang Hu > Signed-off-by: Bo-Chen Chen > Reviewed-by: Matthias Brugger Reviewed-by: AngeloGioacchino Del Regno