From patchwork Fri Jul 6 13:02:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 10511661 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 13A6A603D7 for ; Fri, 6 Jul 2018 13:02:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 002E9285EC for ; Fri, 6 Jul 2018 13:02:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E617A28617; Fri, 6 Jul 2018 13:02:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 98AB3285EC for ; Fri, 6 Jul 2018 13:02:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=LXXLxecpw8R8zrh4FII2++t3/VS9qv2RMxq5eMXRnC0=; b=aWQ ua5GZgcq2T1bIBGW4YvETGM9rAuBcZR4t8DLHu/koRPXFJCeD9FJJV3QpLtK7ieRxJGA1U9zCmB8c EZEird4L0dBT7c83rKqaCvHNDR2hUxi9u/sU0bonbDou1B1CZuBU/2aMYdJpH48VNc2ddA+dUqIRb QDtVtEtD5Bs1COtUTqwBY8/cKqR2+LlmXWl7FnTG5Du0ShYTFKG7yosx8fWOxEx/AfH9hLhQwdtva UmSF8KcNGSWxmiysF7Gkc6r3jGxtqb8plgzg2tKbgsifrTQI+S6xNQv5ep3lTkp9me9XNY0hKt7fI YKjYxpPkHl8scvvF9FdCXrtoeKVgPBA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbQNm-0004pk-Gv; Fri, 06 Jul 2018 13:02:42 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbQNj-0004oO-1V for linux-arm-kernel@lists.infradead.org; Fri, 06 Jul 2018 13:02:40 +0000 Received: by mail-wr1-x441.google.com with SMTP id r16-v6so4131011wrt.11 for ; Fri, 06 Jul 2018 06:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=SuY4oqOr4l1XJc3N4NfyN3WyVnP/hZUVrmexOuLxNfE=; b=Xm1jncoTDUofdVpGHFdloNHyHPuxhVV8ufcLcpeRTH3p4ZQ7uwGIyI1HsoF5BzoUQv klV7KeLhT0E7/UCuFgVjyqZPVpd2q3xV4L3aIAf6MO3/1Pv5CpDv9UVgBX71XK9MvfGZ 7ELQoNs+wRo8kkp2ZzrBZicDjkQ4RmHilTp1U= 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; bh=SuY4oqOr4l1XJc3N4NfyN3WyVnP/hZUVrmexOuLxNfE=; b=gQB/QJGDTfhwLNf8tu5IYGhXorDe802geiXQ1IXjnJuGI3Oqs4MxE/RCgPwTPpB9Xm fT526YjGbUl7BuVYtp5ZZ7iTN4aYy18KT63yM8igHNEuWgh1AJyPd0HoO0H0cqfx9PN1 rwD+d4LkgZ7UpLs1gvy/OYaqU849fcuceLUlxZX+M3/EO0mntmgGUEnSc/01IwaaJAMu C4pVPureY9/Rbpmg/myyKZxhQcKR85bLyA74+zMKPDmIWsBunExVmK0/LQ05734Xx5La dXYpcFgGOUt1DYvkfE7DHI7TECdrMuOc8p8xT6Ep2+2yfKGemYmdvOiDItKWN3ESTsPN 219Q== X-Gm-Message-State: APt69E1kMq7YBxbBKUKqL3D1sNnIv3QYO1GDWJFXSa3YnXv+H+6G0n7K 3pt/xjK2wgiajCCWRSgopE/ufw== X-Google-Smtp-Source: AAOMgpcTPEMoa2o5IRk5L5+IKLxgfl9NdNPABdNasMx6i4V52WxPWUpA+bpo7v8xaZb7ul0BRClKeQ== X-Received: by 2002:adf:ecc6:: with SMTP id s6-v6mr8006515wro.160.1530882147061; Fri, 06 Jul 2018 06:02:27 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([80.214.65.221]) by smtp.gmail.com with ESMTPSA id b16-v6sm9764123wrm.15.2018.07.06.06.02.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jul 2018 06:02:26 -0700 (PDT) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: vkoul@kernel.org, dan.j.williams@intel.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com Subject: [PATCH] dma: stm32: replace "%p" with "%pK" Date: Fri, 6 Jul 2018 15:02:20 +0200 Message-Id: <20180706130220.21957-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180706_060239_081291_1A26FFBE X-CRM114-Status: GOOD ( 10.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Benjamin Gaignard MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The format specifier "%p" can leak kernel addresses. Use "%pK" instead. Signed-off-by: Benjamin Gaignard --- drivers/dma/stm32-dma.c | 4 ++-- drivers/dma/stm32-mdma.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/dma/stm32-dma.c b/drivers/dma/stm32-dma.c index 8c5807362a25..379e8d534e61 100644 --- a/drivers/dma/stm32-dma.c +++ b/drivers/dma/stm32-dma.c @@ -594,7 +594,7 @@ static void stm32_dma_start_transfer(struct stm32_dma_chan *chan) chan->busy = true; - dev_dbg(chan2dev(chan), "vchan %p: started\n", &chan->vchan); + dev_dbg(chan2dev(chan), "vchan %pK: started\n", &chan->vchan); } static void stm32_dma_configure_next_sg(struct stm32_dma_chan *chan) @@ -693,7 +693,7 @@ static void stm32_dma_issue_pending(struct dma_chan *c) spin_lock_irqsave(&chan->vchan.lock, flags); if (vchan_issue_pending(&chan->vchan) && !chan->desc && !chan->busy) { - dev_dbg(chan2dev(chan), "vchan %p: issued\n", &chan->vchan); + dev_dbg(chan2dev(chan), "vchan %pK: issued\n", &chan->vchan); stm32_dma_start_transfer(chan); } diff --git a/drivers/dma/stm32-mdma.c b/drivers/dma/stm32-mdma.c index 9dc450b7ace6..06dd1725375e 100644 --- a/drivers/dma/stm32-mdma.c +++ b/drivers/dma/stm32-mdma.c @@ -1170,7 +1170,7 @@ static void stm32_mdma_start_transfer(struct stm32_mdma_chan *chan) chan->busy = true; - dev_dbg(chan2dev(chan), "vchan %p: started\n", &chan->vchan); + dev_dbg(chan2dev(chan), "vchan %pK: started\n", &chan->vchan); } static void stm32_mdma_issue_pending(struct dma_chan *c) @@ -1183,7 +1183,7 @@ static void stm32_mdma_issue_pending(struct dma_chan *c) if (!vchan_issue_pending(&chan->vchan)) goto end; - dev_dbg(chan2dev(chan), "vchan %p: issued\n", &chan->vchan); + dev_dbg(chan2dev(chan), "vchan %pK: issued\n", &chan->vchan); if (!chan->desc && !chan->busy) stm32_mdma_start_transfer(chan); @@ -1203,7 +1203,7 @@ static int stm32_mdma_pause(struct dma_chan *c) spin_unlock_irqrestore(&chan->vchan.lock, flags); if (!ret) - dev_dbg(chan2dev(chan), "vchan %p: pause\n", &chan->vchan); + dev_dbg(chan2dev(chan), "vchan %pK: pause\n", &chan->vchan); return ret; } @@ -1240,7 +1240,7 @@ static int stm32_mdma_resume(struct dma_chan *c) spin_unlock_irqrestore(&chan->vchan.lock, flags); - dev_dbg(chan2dev(chan), "vchan %p: resume\n", &chan->vchan); + dev_dbg(chan2dev(chan), "vchan %pK: resume\n", &chan->vchan); return 0; }