mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Julia Lawall <julia.lawall@inria.fr>
To: linux-kernel@vger.kernel.org, Dave Jiang <dave.jiang@intel.com>
Cc: Vinod Koul <vkoul@kernel.org>, Fenghua Yu <fenghua.yu@intel.com>,
	linux-kernel@vger.kernel.org
Subject: drivers/dma/idxd/device.c:774:8-26: WARNING: dma_alloc_coherent used in (fwd)
Date: Sun, 28 May 2023 20:58:27 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.22.394.2305282056200.2875@hadrien> (raw)

The warning suggests that the memset in idxd_device_evl_setup may not be
needed.  There is a possibility of allocation via function pointer,
though, in dma_alloc_attrs, so I don't know what the possibilities are
in this case.

julia

---------- Forwarded message ----------
Date: Mon, 29 May 2023 01:34:17 +0800
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Julia Lawall <julia.lawall@inria.fr>
Subject: drivers/dma/idxd/device.c:774:8-26: WARNING: dma_alloc_coherent used in

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Dave Jiang <dave.jiang@intel.com>
CC: Vinod Koul <vkoul@kernel.org>
CC: Fenghua Yu <fenghua.yu@intel.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7877cb91f1081754a1487c144d85dc0d2e2e7fc4
commit: 244da66cda359227d80ccb41dbcb99da40eae186 dmaengine: idxd: setup event log configuration
date:   7 weeks ago
:::::: branch date: 6 hours ago
:::::: commit date: 7 weeks ago
config: x86_64-randconfig-c022-20230528 (https://download.01.org/0day-ci/archive/20230529/202305290109.qddh20pB-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Julia Lawall <julia.lawall@inria.fr>
| Closes: https://lore.kernel.org/r/202305290109.qddh20pB-lkp@intel.com/

cocci warnings: (new ones prefixed by >>)
>> drivers/dma/idxd/device.c:774:8-26: WARNING: dma_alloc_coherent used in
   	 /*
>> 	 * Address needs to be page aligned. However, dma_alloc_coherent() provides
>> 	 * at minimal page size aligned address. No manual alignment required.
   	 */
>> 	 addr   already zeroes out memory, so memset is not needed

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2023-05-28 18:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.22.394.2305282056200.2875@hadrien \
    --to=julia.lawall@inria.fr \
    --cc=dave.jiang@intel.com \
    --cc=fenghua.yu@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®