Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp247322iob; Mon, 2 May 2022 18:26:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVN5WJaUH6Lfeo1vzvvMGF4HiDJpFWwh0xLKBPBbVSocvzpenYueyDelipK4r6qvO88ugE X-Received: by 2002:a17:902:f54a:b0:15e:a95a:c0a7 with SMTP id h10-20020a170902f54a00b0015ea95ac0a7mr6186774plf.134.1651541211554; Mon, 02 May 2022 18:26:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651541211; cv=none; d=google.com; s=arc-20160816; b=UEovaYNqo0zCfN1Fg1g3EqQPQ2Y1kXyxxHCk5e/a3XvefJZQCsfJUeaz1/LDNAjlsQ 7LfXSWwMIkVgswb2ie8hIrb1GQA4CG7xiI8+hJDRtGpAacLgnIGllLVja3B1T6hMsSg6 vLbNzF7NhZerNwXbBYFa/RrHbzoqkK5K8HYWAb39+5SIflVH/D+atgU//vH9Y+t41CDL 1zuK7K/jzI7gRG3wUJany2bfJD0UyTTOW9wIbAcqCPpC+E7dio5GG7EsT5En2NLgB7OS WFCNXTMBDajJhAbq2BCMVzxKZ3CN9JxiqqOrAQAM8rm0V56oS+AZ33VPkNj78sWk06h2 evWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=Pq1mFDfLKe9umyPS0yyJ5NBZjfHF6lFWzXV35xpcX3k=; b=BNFYtViW1++aQ8h9v+w+MVknI4kFg9NYI27ghrGLxCquVF1TNvMWbV2UNVsxdDVBFe BJ3NNN0XwjY4TkEa8iRfUzSe+2wW5IJjJdNj3sttcn849kmn/N73/pLfO+MzikAOmJmI FAZLsbNP/Ga8L31Sf4RCdKCQv1B5XrzzthUnYjddCLqgbkFpJq8eg/jkngfgnOjBDqoE YGORrxcGQEEpkUasDxmrnt3UrHoGpbntFJ5BjebXfePFNFAPZlxS5atix7IBJ+H0PPGR SfXEvakkQBb/kufDPlfWQlZlFNvpMKbpyOGFasNUVfOhNL7B3wGcdM8v+1qSWfjjn+Kr v0qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PFVsNiuD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r10-20020aa79eca000000b004faec001782si14638105pfq.232.2022.05.02.18.26.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:26:51 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PFVsNiuD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7E76C1EACC; Mon, 2 May 2022 18:05:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230403AbiEBXQm (ORCPT + 99 others); Mon, 2 May 2022 19:16:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230235AbiEBXQc (ORCPT ); Mon, 2 May 2022 19:16:32 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C583FB0B for ; Mon, 2 May 2022 16:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651533180; x=1683069180; h=date:from:to:cc:subject:message-id:mime-version; bh=nla6+TVWo5bs9p6e1a6N0ebZALDHTJNqiavs/E1MuCU=; b=PFVsNiuDaoJPlYhwsfq99U97yZhIn+tp0X8TtoX9Fhom2nkk1MWox9kX cnDXVHQ2AHTmukWLnVU8bra8ddP5j4zbDlEM34jCtTV7U4EOoK84ctYqs kDxqzYtZ9dIanhnTMtx/5Wr6dRElB/xQrn8QzjVB1xXsWcLjSTkMpbwpt wcLrLWL/ZWnwfyY6f1ftRp+CrSm3YP9pkdLs9cxQBspSSpNQbqR1FEPBm mQQT3j6AS+Pk8mANZIo42xzrOCg7o9Jb/DlB6/nm+sT2v5NYM/fi25oHf raKITdumxDsx/zTjxTijfkNyzZeEf0E/XMDOSCDMCs8FoY3rzJ3jzEyfh w==; X-IronPort-AV: E=McAfee;i="6400,9594,10335"; a="330344890" X-IronPort-AV: E=Sophos;i="5.91,193,1647327600"; d="scan'208";a="330344890" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2022 16:12:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,193,1647327600"; d="scan'208";a="690842021" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 02 May 2022 16:12:57 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nlfDs-0009yJ-Ds; Mon, 02 May 2022 23:12:56 +0000 Date: Tue, 3 May 2022 07:12:45 +0800 From: kernel test robot To: Arnd Bergmann Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, "Russell King (Oracle)" , Christoph Hellwig , Linus Walleij Subject: arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c:393:28: sparse: sparse: incorrect type in argument 1 (different base types) Message-ID: <202205030748.Whqgb4Nd-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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: 9050ba3a61a4b5bd84c2cde092a100404f814f31 commit: 344179fc7ef427910de438affbf3703fed51fe5a ARM: 9106/1: traps: use get_kernel_nofault instead of set_fs() date: 9 months ago config: arm-randconfig-s031-20220502 (https://download.01.org/0day-ci/archive/20220503/202205030748.Whqgb4Nd-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=344179fc7ef427910de438affbf3703fed51fe5a git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 344179fc7ef427910de438affbf3703fed51fe5a # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) arch/arm/boot/compressed/decompress.c:50:9: sparse: sparse: preprocessor token memmove redefined arch/arm/boot/compressed/decompress.c: note: in included file: arch/arm/include/asm/string.h:59:9: sparse: this was the original definition arch/arm/boot/compressed/decompress.c:51:9: sparse: sparse: preprocessor token memcpy redefined arch/arm/include/asm/string.h:58:9: sparse: this was the original definition arch/arm/boot/compressed/decompress.c: note: in included file (through arch/arm/boot/compressed/../../../../lib/decompress_unxz.c): include/linux/decompress/mm.h:31:30: sparse: sparse: symbol 'malloc_ptr' was not declared. Should it be static? include/linux/decompress/mm.h:32:20: sparse: sparse: symbol 'malloc_count' was not declared. Should it be static? arch/arm/boot/compressed/decompress.c: note: in included file (through arch/arm/boot/compressed/../../../../lib/decompress_unxz.c): arch/arm/boot/compressed/decompress.c: note: in included file (through arch/arm/boot/compressed/../../../../lib/decompress_unxz.c): >> arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c:393:28: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 const [usertype] *p @@ got unsigned int const [usertype] * @@ arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c:393:28: sparse: expected restricted __le32 const [usertype] *p arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c:393:28: sparse: got unsigned int const [usertype] * arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c:427:48: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 const [usertype] *p @@ got unsigned int const [usertype] * @@ arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c:427:48: sparse: expected restricted __le32 const [usertype] *p arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c:427:48: sparse: got unsigned int const [usertype] * arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c:435:37: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 const [usertype] *p @@ got unsigned int const [usertype] * @@ arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c:435:37: sparse: expected restricted __le32 const [usertype] *p arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c:435:37: sparse: got unsigned int const [usertype] * arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c:459:28: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 const [usertype] *p @@ got unsigned int const [usertype] * @@ arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c:459:28: sparse: expected restricted __le32 const [usertype] *p arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c:459:28: sparse: got unsigned int const [usertype] * vim +393 arch/arm/boot/compressed/../../../../lib/xz/xz_dec_stream.c 24fa0402a9b6a5 Lasse Collin 2011-01-12 385 24fa0402a9b6a5 Lasse Collin 2011-01-12 386 /* Decode the Stream Header field (the first 12 bytes of the .xz Stream). */ 24fa0402a9b6a5 Lasse Collin 2011-01-12 387 static enum xz_ret dec_stream_header(struct xz_dec *s) 24fa0402a9b6a5 Lasse Collin 2011-01-12 388 { 24fa0402a9b6a5 Lasse Collin 2011-01-12 389 if (!memeq(s->temp.buf, HEADER_MAGIC, HEADER_MAGIC_SIZE)) 24fa0402a9b6a5 Lasse Collin 2011-01-12 390 return XZ_FORMAT_ERROR; 24fa0402a9b6a5 Lasse Collin 2011-01-12 391 24fa0402a9b6a5 Lasse Collin 2011-01-12 392 if (xz_crc32(s->temp.buf + HEADER_MAGIC_SIZE, 2, 0) 24fa0402a9b6a5 Lasse Collin 2011-01-12 @393 != get_le32(s->temp.buf + HEADER_MAGIC_SIZE + 2)) 24fa0402a9b6a5 Lasse Collin 2011-01-12 394 return XZ_DATA_ERROR; 24fa0402a9b6a5 Lasse Collin 2011-01-12 395 24fa0402a9b6a5 Lasse Collin 2011-01-12 396 if (s->temp.buf[HEADER_MAGIC_SIZE] != 0) 24fa0402a9b6a5 Lasse Collin 2011-01-12 397 return XZ_OPTIONS_ERROR; 24fa0402a9b6a5 Lasse Collin 2011-01-12 398 24fa0402a9b6a5 Lasse Collin 2011-01-12 399 /* 24fa0402a9b6a5 Lasse Collin 2011-01-12 400 * Of integrity checks, we support only none (Check ID = 0) and 24fa0402a9b6a5 Lasse Collin 2011-01-12 401 * CRC32 (Check ID = 1). However, if XZ_DEC_ANY_CHECK is defined, 24fa0402a9b6a5 Lasse Collin 2011-01-12 402 * we will accept other check types too, but then the check won't 24fa0402a9b6a5 Lasse Collin 2011-01-12 403 * be verified and a warning (XZ_UNSUPPORTED_CHECK) will be given. 24fa0402a9b6a5 Lasse Collin 2011-01-12 404 */ 24fa0402a9b6a5 Lasse Collin 2011-01-12 405 s->check_type = s->temp.buf[HEADER_MAGIC_SIZE + 1]; 24fa0402a9b6a5 Lasse Collin 2011-01-12 406 :::::: The code at line 393 was first introduced by commit :::::: 24fa0402a9b6a537e87e38341e78b7da86486846 decompressors: add XZ decompressor module :::::: TO: Lasse Collin :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://01.org/lkp