From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D1D3C54FB9 for ; Thu, 16 Nov 2023 14:46:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345228AbjKPOqH (ORCPT ); Thu, 16 Nov 2023 09:46:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234138AbjKPOqF (ORCPT ); Thu, 16 Nov 2023 09:46:05 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C6CB182 for ; Thu, 16 Nov 2023 06:46:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700145961; x=1731681961; h=date:from:to:cc:subject:message-id:mime-version; bh=L9XNHSq+30j3A4kCvAzbsmtTtelpSi06Z0nMD8C/X78=; b=PG3JETZqVsXVDJVfd/16luCXnG8Nq3kBGxZ+35nlPzm2tFMwPEAJ80Md Mk316eM4vZZDeR+ShSZ+1x3RiEeH5wLJdw0BWjdlrHJ7IFJHRgyvc7rUp Ys0xSlsQRTYNSE/yYImnKwuJQjk6Jg+3RFbrx8rFExFYF/gotrA7JoOWh L4VuAal4Ic7yhsolntkTz550BezB6m/Sp/UAsMjqPRlGn1rjMzJJncyzC XzJeP8cfR4+AQhtsY+m3aMMCWGYC51dziSlM5Xf07xxkMECGDsRIRT0A8 Y4wfkE0n0H0n4IRimolCt89dOwbViwpUtDcvhzR7CaN1iAqOTGId3/3KK A==; X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="455392770" X-IronPort-AV: E=Sophos;i="6.04,308,1695711600"; d="scan'208";a="455392770" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2023 06:46:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="794513454" X-IronPort-AV: E=Sophos;i="6.04,308,1695711600"; d="scan'208";a="794513454" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 16 Nov 2023 06:45:59 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r3dcz-0001nH-22; Thu, 16 Nov 2023 14:45:57 +0000 Date: Thu, 16 Nov 2023 22:45:33 +0800 From: kernel test robot To: Chris Morgan Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Dmitry Torokhov Subject: include/asm-generic/unaligned.h:119:16: sparse: sparse: cast truncates bits from constant value (aa01a0 becomes a0) Message-ID: <202311162214.kJuTyMck-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7475e51b87969e01a6812eac713a1c8310372e8a commit: 66603243f5283f7f28c795f09e7c2167233df0bd Input: add driver for Hynitron cstxxx touchscreens date: 1 year, 1 month ago config: x86_64-randconfig-x001-20230717 (https://download.01.org/0day-ci/archive/20231116/202311162214.kJuTyMck-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231116/202311162214.kJuTyMck-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/202311162214.kJuTyMck-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) drivers/input/touchscreen/hynitron_cstxxx.c: note: in included file (through arch/x86/include/generated/asm/unaligned.h): >> include/asm-generic/unaligned.h:119:16: sparse: sparse: cast truncates bits from constant value (aa01a0 becomes a0) include/asm-generic/unaligned.h:120:20: sparse: sparse: cast truncates bits from constant value (aa01 becomes 1) >> include/asm-generic/unaligned.h:119:16: sparse: sparse: cast truncates bits from constant value (ab00d0 becomes d0) include/asm-generic/unaligned.h:120:20: sparse: sparse: cast truncates bits from constant value (ab00 becomes 0) vim +119 include/asm-generic/unaligned.h 803f4e1eab7a89 Arnd Bergmann 2021-05-08 116 803f4e1eab7a89 Arnd Bergmann 2021-05-08 117 static inline void __put_unaligned_le24(const u32 val, u8 *p) 803f4e1eab7a89 Arnd Bergmann 2021-05-08 118 { 803f4e1eab7a89 Arnd Bergmann 2021-05-08 @119 *p++ = val; 803f4e1eab7a89 Arnd Bergmann 2021-05-08 120 *p++ = val >> 8; 803f4e1eab7a89 Arnd Bergmann 2021-05-08 121 *p++ = val >> 16; 803f4e1eab7a89 Arnd Bergmann 2021-05-08 122 } 803f4e1eab7a89 Arnd Bergmann 2021-05-08 123 :::::: The code at line 119 was first introduced by commit :::::: 803f4e1eab7a8938ba3a3c30dd4eb5e9eeef5e63 asm-generic: simplify asm/unaligned.h :::::: TO: Arnd Bergmann :::::: CC: Arnd Bergmann -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki