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 57642C433EF for ; Sun, 17 Jul 2022 07:05:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232721AbiGQHF0 (ORCPT ); Sun, 17 Jul 2022 03:05:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbiGQHFW (ORCPT ); Sun, 17 Jul 2022 03:05:22 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5B4C10FC4 for ; Sun, 17 Jul 2022 00:05:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658041520; x=1689577520; h=date:from:to:cc:subject:message-id:mime-version; bh=xePdMPdYjsLRDnApVWDitKXEx9bOsJcG789BmfAc7E8=; b=dfA1FZPLNMxl8l4/hiI1Pdco7mKVccpVpt3g6AdJQl1s83yjc5Ruq6Jd i6GbYmtvAxBJ+QvgVMpMV5JqwgaQIU2Mdcf86h2jbOD9m68F9X8zfAru+ krZ9metk/ZZ9mDyybGqgBkAJd381xgf3vbAslOE8gy2h++9uR7VMwEcNL rZRf4ySe5fbGk62AQ18o719YZYnd+rN/jeMtcD+Extkms1PFxi/oiTaal e01tQQmkeGuZ3XU4wAoLSXDg8jP5zwa1JycbYzXT+uTlGcrHQ+2cmAE0U lIUS8gPgAE+X6uqWmlpzOdShYESngHKNO3Daiksmb1qWYXAr6iDP5fiy5 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10410"; a="283600645" X-IronPort-AV: E=Sophos;i="5.92,278,1650956400"; d="scan'208";a="283600645" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2022 00:05:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,278,1650956400"; d="scan'208";a="654868668" Received: from lkp-server02.sh.intel.com (HELO ff137eb26ff1) ([10.239.97.151]) by fmsmga008.fm.intel.com with ESMTP; 17 Jul 2022 00:05:19 -0700 Received: from kbuild by ff137eb26ff1 with local (Exim 4.95) (envelope-from ) id 1oCyL8-0002un-NN; Sun, 17 Jul 2022 07:05:18 +0000 Date: Sun, 17 Jul 2022 15:04:26 +0800 From: kernel test robot To: Maximilian Luz Cc: kbuild-all@lists.01.org, Andy Shevchenko , Hans de Goede , linux-kernel@vger.kernel.org Subject: [pdx86-platform-drivers-x86:for-next 56/92] drivers/platform/surface/surface_aggregator_tabletsw.c:425:9: sparse: sparse: restricted __le32 degrades to integer Message-ID: <202207171459.4Xx3ULcF-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/pdx86/platform-drivers-x86.git for-next head: 5c8b3f11565e64366d53295e8004edaa1fcf1ec9 commit: 9f794056db5bb1e1add83ed553b6aec57298358c [56/92] platform/surface: Add KIP/POS tablet-mode switch driver config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20220717/202207171459.4Xx3ULcF-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?id=9f794056db5bb1e1add83ed553b6aec57298358c git remote add pdx86-platform-drivers-x86 https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git git fetch --no-tags pdx86-platform-drivers-x86 for-next git checkout 9f794056db5bb1e1add83ed553b6aec57298358c # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/misc/lkdtm/ drivers/platform/surface/ drivers/platform/x86/intel/ kernel/trace/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/platform/surface/surface_aggregator_tabletsw.c:425:9: sparse: sparse: restricted __le32 degrades to integer vim +425 drivers/platform/surface/surface_aggregator_tabletsw.c 403 404 static int ssam_pos_get_source(struct ssam_tablet_sw *sw, u32 *source_id) 405 { 406 struct ssam_sources_list sources = {}; 407 int status; 408 409 status = ssam_pos_get_sources_list(sw, &sources); 410 if (status) 411 return status; 412 413 if (sources.count == 0) { 414 dev_err(&sw->sdev->dev, "no posture sources found\n"); 415 return -ENODEV; 416 } 417 418 /* 419 * We currently don't know what to do with more than one posture 420 * source. At the moment, only one source seems to be used/provided. 421 * The WARN_ON() here should hopefully let us know quickly once there 422 * is a device that provides multiple sources, at which point we can 423 * then try to figure out how to handle them. 424 */ > 425 WARN_ON(sources.count > 1); 426 427 *source_id = get_unaligned_le32(&sources.id[0]); 428 return 0; 429 } 430 -- 0-DAY CI Kernel Test Service https://01.org/lkp