All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: Re: [PATCH 1/2] compiler.h: Use the symbol's own pointer type in __ADDRESSABLE()
Date: Sun, 29 Nov 2026 09:16:38 +0100	[thread overview]
Message-ID: <20261129091029.VOYaTAQ6-lkp@intel.com> (raw)

Unfiltered warning: this smatch report is sent as-is and has not been
reviewed for false positives, so please treat it with due skepticism.

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261127142346.788995-5-ardb+git@google.com>
References: <20261127142346.788995-5-ardb+git@google.com>
TO: Ard Biesheuvel <ardb+git@google.com>
TO: x86@kernel.org
TO: linux-kernel@vger.kernel.org
CC: Ard Biesheuvel <ardb@kernel.org>
CC: Uros Bizjak <ubizjak@gmail.com>
CC: Nathan Chancellor <nathan@kernel.org>
CC: Nick Desaulniers <ndesaulniers@google.com>
CC: llvm@lists.linux.dev

Hi Ard,

kernel test robot noticed the following build warnings:

[auto build test WARNING on tip/x86/core]
[also build test WARNING on tip/master tip/x86/asm linus/master v7.4-rc4 next-20261127]
[cannot apply to tip/auto-latest]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Ard-Biesheuvel/compiler-h-Use-the-symbol-s-own-pointer-type-in-__ADDRESSABLE/20261127-152348
base:   tip/x86/core
patch link:    https://lore.kernel.org/r/20261127142346.788995-5-ardb%2Bgit%40google.com
patch subject: [PATCH 1/2] compiler.h: Use the symbol's own pointer type in __ADDRESSABLE()
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: sh-randconfig-2200-20261129 (https://download.01.org/0day-ci/archive/20261129/20261129091029.VOYaTAQ6-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 10.5.0
smatch: v0.5.0-9187-g5189e3fb

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/20261129091029.VOYaTAQ6-lkp@intel.com/

smatch warnings:
arch/sh/drivers/dma/dma-api.c:130 dma_wait_for_completion() error: 'channel' dereferencing possible ERR_PTR()
arch/sh/drivers/dma/dma-api.c:157 dma_xfer() error: 'channel' dereferencing possible ERR_PTR()

vim +/channel +130 arch/sh/drivers/dma/dma-api.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  124  
^1da177e4c3f41 Linus Torvalds 2005-04-16  125  void dma_wait_for_completion(unsigned int chan)
^1da177e4c3f41 Linus Torvalds 2005-04-16  126  {
^1da177e4c3f41 Linus Torvalds 2005-04-16  127  	struct dma_info *info = get_dma_info(chan);
db9b99d461ddbb Mark Glaisher  2006-11-24  128  	struct dma_channel *channel = get_dma_channel(chan);
^1da177e4c3f41 Linus Torvalds 2005-04-16  129  
^1da177e4c3f41 Linus Torvalds 2005-04-16 @130  	if (channel->flags & DMA_TEI_CAPABLE) {
^1da177e4c3f41 Linus Torvalds 2005-04-16  131  		wait_event(channel->wait_queue,
^1da177e4c3f41 Linus Torvalds 2005-04-16  132  			   (info->ops->get_residue(channel) == 0));
^1da177e4c3f41 Linus Torvalds 2005-04-16  133  		return;
^1da177e4c3f41 Linus Torvalds 2005-04-16  134  	}
^1da177e4c3f41 Linus Torvalds 2005-04-16  135  
^1da177e4c3f41 Linus Torvalds 2005-04-16  136  	while (info->ops->get_residue(channel))
^1da177e4c3f41 Linus Torvalds 2005-04-16  137  		cpu_relax();
^1da177e4c3f41 Linus Torvalds 2005-04-16  138  }
db9b99d461ddbb Mark Glaisher  2006-11-24  139  EXPORT_SYMBOL(dma_wait_for_completion);
db9b99d461ddbb Mark Glaisher  2006-11-24  140  
^1da177e4c3f41 Linus Torvalds 2005-04-16  141  void dma_configure_channel(unsigned int chan, unsigned long flags)
^1da177e4c3f41 Linus Torvalds 2005-04-16  142  {
^1da177e4c3f41 Linus Torvalds 2005-04-16  143  	struct dma_info *info = get_dma_info(chan);
db9b99d461ddbb Mark Glaisher  2006-11-24  144  	struct dma_channel *channel = get_dma_channel(chan);
^1da177e4c3f41 Linus Torvalds 2005-04-16  145  
^1da177e4c3f41 Linus Torvalds 2005-04-16  146  	if (info->ops->configure)
^1da177e4c3f41 Linus Torvalds 2005-04-16  147  		info->ops->configure(channel, flags);
^1da177e4c3f41 Linus Torvalds 2005-04-16  148  }
db9b99d461ddbb Mark Glaisher  2006-11-24  149  EXPORT_SYMBOL(dma_configure_channel);
^1da177e4c3f41 Linus Torvalds 2005-04-16  150  
^1da177e4c3f41 Linus Torvalds 2005-04-16  151  int dma_xfer(unsigned int chan, unsigned long from,
^1da177e4c3f41 Linus Torvalds 2005-04-16  152  	     unsigned long to, size_t size, unsigned int mode)
^1da177e4c3f41 Linus Torvalds 2005-04-16  153  {
^1da177e4c3f41 Linus Torvalds 2005-04-16  154  	struct dma_info *info = get_dma_info(chan);
db9b99d461ddbb Mark Glaisher  2006-11-24  155  	struct dma_channel *channel = get_dma_channel(chan);
^1da177e4c3f41 Linus Torvalds 2005-04-16  156  
^1da177e4c3f41 Linus Torvalds 2005-04-16 @157  	channel->sar	= from;
^1da177e4c3f41 Linus Torvalds 2005-04-16  158  	channel->dar	= to;
^1da177e4c3f41 Linus Torvalds 2005-04-16  159  	channel->count	= size;
^1da177e4c3f41 Linus Torvalds 2005-04-16  160  	channel->mode	= mode;
^1da177e4c3f41 Linus Torvalds 2005-04-16  161  
^1da177e4c3f41 Linus Torvalds 2005-04-16  162  	return info->ops->xfer(channel);
^1da177e4c3f41 Linus Torvalds 2005-04-16  163  }
db9b99d461ddbb Mark Glaisher  2006-11-24  164  EXPORT_SYMBOL(dma_xfer);
db9b99d461ddbb Mark Glaisher  2006-11-24  165  

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

             reply	other threads:[~2026-11-29  8:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29  8:16 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-11-27 14:23 [PATCH 0/2] x86: replace stack cookie hack with named address space Ard Biesheuvel
2026-11-27 14:23 ` [PATCH 1/2] compiler.h: Use the symbol's own pointer type in __ADDRESSABLE() Ard Biesheuvel

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=20261129091029.VOYaTAQ6-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.