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 5CE41C197A0 for ; Fri, 17 Nov 2023 01:31:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345627AbjKQBbl (ORCPT ); Thu, 16 Nov 2023 20:31:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345614AbjKQBbj (ORCPT ); Thu, 16 Nov 2023 20:31:39 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17397C5 for ; Thu, 16 Nov 2023 17:31:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700184696; x=1731720696; h=date:from:to:cc:subject:message-id:mime-version; bh=V/jUma7OJCukorIVcv/g2fe3zwpE/XSNgYssbKFfxyc=; b=Hw8FyUjBhmeB+Ns1RX/VTN0JaFGV0vSLscgS+6+N2duOkPokv7dptLMB xgMKbWOJ3QUnuAUonskQzTaY/MwL8OJtTdvYQibPa9gfVgp1LIwgiTWFS ZMLV2HE7sAPViUG1EuthK0Uuo1sX6W4b2s9CQDzsw02XrESz7i5pK9Kxr TQ2b3dKzHorn0ip3wO0f4HnTfXF5j2uMzZBg7F0SjQ2gFiS4f1O8yL9RF sFQtmMxSQ6BbyBntMHKCeYczqpZVSdjUZyWOPnBvvZiIk+LC2pMdf7agK UBJRTO1/jO8RBikMFEoqrG+7SmLAiJTD0576L8mV5JRgAFP8SNm6UDyzK A==; X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="388371852" X-IronPort-AV: E=Sophos;i="6.04,205,1695711600"; d="scan'208";a="388371852" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2023 17:31:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="794679810" X-IronPort-AV: E=Sophos;i="6.04,205,1695711600"; d="scan'208";a="794679810" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 16 Nov 2023 17:31:21 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r3nhU-0002FT-1m; Fri, 17 Nov 2023 01:31:16 +0000 Date: Fri, 17 Nov 2023 09:30:41 +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: <202311170924.cmrgwVzU-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/20231117/202311170924.cmrgwVzU-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/20231117/202311170924.cmrgwVzU-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/202311170924.cmrgwVzU-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