Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.7 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795940232; b=to9L5zeGWIYqcOUDwnvOZTjb4jMN9pvnLO+VEBRDIcGVtxWAq3b3yiL049OgM1e65uNS pofO/6RJBGHsFUyjYc7TDltSTZMUUvDkePt7PBkETDJVtd3kdkIIkD+VKIMQEMuln49yZ 9IHG1PlzbFnbyDllOw6ZpyRw1by4L158x6MfXmwWpZW3VKRBw39QrD7xsiOi5e4slYGgy tj1cCHuMW2taWCcq7hk+tsZFznAURHO1/TciqzoGg70DoaR5Gfi6nWivj11Nshao9icEi kL2JAdVQ1Qnt492L5TY6ZkuxL078DW7FDzp7mIZAO2HSHAtsG+vdTfj9Q7MCLWV6whw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795940232; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition; bh=8y5vEtxw6JiiayFMIBRIEItNAEt23ORZjpNjAifFjZI=; b=Y7cJsava3uZ0ZewBYtqWff0W4s+d7jcXQFutvncWcxmizpf7aR58SkW1RXa0p3ZMBbuz +dWsvrCQRSUKw0cBg8ZuSov55sW5wQALrPLNBhCvk7RGVgxTL8ppzEt5Ol7hJLqZwBIlP iENjWOmAdok3PxBi+b+4NkH5XGQBhJxbQkpoZq/gXxb7zkBM7abJjnTtR+0yW84dDxe6k 5jJoPZHr1f6kAcIVhfZhulX+RWaMOWvIPkDCRvysT35MH4Y5k72sKIMpfML95dJiQZcbp C4hiqNbcULNEo0T0+J8ZVVPfzHvtYtGxim+tOHw1rxwLL2VVALf02maSiQj+/7qcDhQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=OcRkkIZQ; arc=none smtp.remote-ip=192.198.163.7 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C29C606A323 for ; Sun, 29 Nov 2026 08:17:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3C29C606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=OcRkkIZQ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795940233; x=1827476233; h=date:from:to:cc:subject:message-id:mime-version; bh=MKgFT80uF0XoE+4OPjbOwHZfUQnTl4xVq2NlSnOnKxo=; b=OcRkkIZQrhHKnxfYm5eQPB5g9LKxgruD6D3muf3jiZjq4M5EOGdTOzHn 3wm/aEL5uKiDwT7IO4pUDgtKJVGscFRe/Xkmdqxu0NtUzRvoy5x1krDpG b0xJNoZ3mGVg+8Ps3F70cbX9E4FKLEgnJifYs9PC+pUnOuejDPdZK9/Zx FBx/VoRJZZfnYBIvC7zhElv4EW50M6cIDJoMzMW8rvaJhXaVaoloKW/iS 1D+kT4PWAT25i/8FbaOOL5/oLvGsQ961Chkt8uKUsSZfj88TX3dS6Q1HJ 9MDm8E6rN0nroVQ8qTbK1Li2R4j9vZjF2GFMFb0ao1MbMmwHTisiipa89 g==; X-CSE-ConnectionGUID: axeHhOrCQl+SjEuPYHxiIQ== X-CSE-MsgGUID: 46cVCfCxRceof25gDAbHeQ== X-IronPort-AV: E=McAfee;i="6800,10657,11980"; a="4628849" X-IronPort-AV: E=Sophos;i="6.27,240,1787036400"; d="scan'208";a="4628849" Received: from fmviesa011.fm.intel.com ([10.60.135.151]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2026 00:17:12 -0800 X-CSE-ConnectionGUID: np6r75qLTnWpTmehaKx1UA== X-CSE-MsgGUID: tclcBNLFQjyR/rQPnuh84Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,240,1787036400"; d="scan'208";a="14443125" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by fmviesa011.fm.intel.com with ESMTP; 29 Nov 2026 00:17:11 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xXa5s-000000000yg-1L17; Sun, 29 Nov 2026 08:17:08 +0000 Date: Sun, 29 Nov 2026 09:16:38 +0100 From: kernel test robot To: oe-kbuild@lists.linux.dev Cc: lkp@intel.com, Dan Carpenter Subject: Re: [PATCH 1/2] compiler.h: Use the symbol's own pointer type in __ADDRESSABLE() Message-ID: <20261129091029.VOYaTAQ6-lkp@intel.com> X-Mailing-List: oe-kbuild@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 TO: x86@kernel.org TO: linux-kernel@vger.kernel.org CC: Ard Biesheuvel CC: Uros Bizjak CC: Nathan Chancellor CC: Nick Desaulniers 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 | Reported-by: Dan Carpenter | 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