From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C86B947A73 for ; Wed, 10 Jan 2024 11:10:59 +0000 (UTC) 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.b="UjvX9ZLf" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704885060; x=1736421060; h=date:from:to:cc:subject:message-id:mime-version; bh=X5QEjl0DJ9jDmcuH+SDJ2ODSt3udQokya7z4e6MJXk8=; b=UjvX9ZLfMhvPJAiuxztgs2TdjangfA2j3mnmFlrjTQEM5wZrPnyBJVVl 9eraK4/KKrMYY9bLfIHQ1E7d+1wWD7pfdSpYOEFPRg4b4g7C35i5umc3b gZ9Uq3LefC6hEemp27jEEZurUD0qzj374On8FdR4DKUAXbDeypbuqAaMi NNudo58u5+ApBuE0P9dAVAtcrGoq+Cq8bgNM55BTo5E1r1sCwZhq75N6L IN+mrZ1twrj5nWuj5l3l1F+eJtKxRCc+edCyd/YBNTTpHxp/AEfV0eXe4 uhxrXzbl6rHm7zzhwNOxvg6ulnMEk4OgOu4S4NA//bD4sRnimCdg6UwNY w==; X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="5229477" X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="5229477" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2024 03:10:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="816312527" X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="816312527" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 10 Jan 2024 03:10:57 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rNWU3-0006us-1p; Wed, 10 Jan 2024 11:10:55 +0000 Date: Wed, 10 Jan 2024 19:10:15 +0800 From: kernel test robot To: Mark Brown Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: drivers/base/regmap/regmap-raw-ram.c:24:24: sparse: sparse: cast to restricted __be16 Message-ID: <202401101945.4P5qaf35-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ab27740f76654ed58dd32ac0ba0031c18a6dea3b commit: 65dd2f671875b1d97b6fa9bcf7677f5e1c55f776 regmap: Provide a ram backed regmap with raw support date: 7 months ago config: x86_64-randconfig-123-20240106 (https://download.01.org/0day-ci/archive/20240110/202401101945.4P5qaf35-lkp@intel.com/config) compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240110/202401101945.4P5qaf35-lkp@intel.com/reproduce) 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 | Closes: https://lore.kernel.org/oe-kbuild-all/202401101945.4P5qaf35-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/base/regmap/regmap-raw-ram.c:24:24: sparse: sparse: cast to restricted __be16 >> drivers/base/regmap/regmap-raw-ram.c:26:24: sparse: sparse: cast to restricted __le16 vim +24 drivers/base/regmap/regmap-raw-ram.c 18 19 static unsigned int decode_reg(enum regmap_endian endian, const void *reg) 20 { 21 const u16 *r = reg; 22 23 if (endian == REGMAP_ENDIAN_BIG) > 24 return be16_to_cpu(*r); 25 else > 26 return le16_to_cpu(*r); 27 } 28 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki