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 198FEC7618D for ; Tue, 4 Apr 2023 02:22:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232614AbjDDCWA (ORCPT ); Mon, 3 Apr 2023 22:22:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjDDCV5 (ORCPT ); Mon, 3 Apr 2023 22:21:57 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE00A1FF2 for ; Mon, 3 Apr 2023 19:21:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680574915; x=1712110915; h=date:from:to:cc:subject:message-id:mime-version; bh=CkFHDC8D6AvY+v6jsGYoE/Vckj5Y+DqhspwvMoFNbmo=; b=azPMVuqK7Ni5djl0vl1jpT6moZdoiwDswMxA7SDy9dQ36YvncfVQDIq8 xK15nzaaQ0LvJcnMR8HHrkpSKmmUcNHBcBRGEg/uIF5t9+S4jrz0FdYUj WKdyrp8PJH/PtFOLo03u41rWWQUbRDHjIWuL7FLt3kXNaPsaQcluGKBLR cLjMYjzZjSPScYOL1ykHJnBbiIMt6Bnb1SifNTPxFUuuq92rhhaRWeqok WdpCOFsSXhtevqKhKCPlBvGIj34gd2V/+6+m0KFp6gmzArgUXaCAa68st 5BxWagwhhB1ZbAds77/fCYUo1QqeG+UvkGxLCzkwcWvwvC1+S55N+99Lm g==; X-IronPort-AV: E=McAfee;i="6600,9927,10669"; a="340801853" X-IronPort-AV: E=Sophos;i="5.98,316,1673942400"; d="scan'208";a="340801853" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2023 19:21:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10669"; a="810056485" X-IronPort-AV: E=Sophos;i="5.98,316,1673942400"; d="scan'208";a="810056485" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 03 Apr 2023 19:21:53 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pjWIz-000P2i-00; Tue, 04 Apr 2023 02:21:53 +0000 Date: Tue, 4 Apr 2023 10:21:13 +0800 From: kernel test robot To: Heiko Carstens Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: arch/s390/include/uapi/../../../../lib/xz/xz_dec_stream.c:393:28: sparse: sparse: incorrect type in argument 1 (different base types) Message-ID: <202304041040.F0zUsknf-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: 148341f0a2f53b5e8808d093333d85170586a15d commit: edd4a8667355607345b76d5652adc0f300a28970 s390/boot: get rid of startup archive date: 11 months ago config: s390-randconfig-s041-20230402 (https://download.01.org/0day-ci/archive/20230404/202304041040.F0zUsknf-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 12.1.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-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=edd4a8667355607345b76d5652adc0f300a28970 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout edd4a8667355607345b76d5652adc0f300a28970 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=s390 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=s390 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304041040.F0zUsknf-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) arch/s390/boot/decompressor.c: note: in included file (through arch/s390/include/uapi/../../../../lib/decompress_unxz.c): >> arch/s390/include/uapi/../../../../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/s390/include/uapi/../../../../lib/xz/xz_dec_stream.c:393:28: sparse: expected restricted __le32 const [usertype] *p arch/s390/include/uapi/../../../../lib/xz/xz_dec_stream.c:393:28: sparse: got unsigned int const [usertype] * arch/s390/include/uapi/../../../../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/s390/include/uapi/../../../../lib/xz/xz_dec_stream.c:427:48: sparse: expected restricted __le32 const [usertype] *p arch/s390/include/uapi/../../../../lib/xz/xz_dec_stream.c:427:48: sparse: got unsigned int const [usertype] * arch/s390/include/uapi/../../../../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/s390/include/uapi/../../../../lib/xz/xz_dec_stream.c:435:37: sparse: expected restricted __le32 const [usertype] *p arch/s390/include/uapi/../../../../lib/xz/xz_dec_stream.c:435:37: sparse: got unsigned int const [usertype] * arch/s390/include/uapi/../../../../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/s390/include/uapi/../../../../lib/xz/xz_dec_stream.c:459:28: sparse: expected restricted __le32 const [usertype] *p arch/s390/include/uapi/../../../../lib/xz/xz_dec_stream.c:459:28: sparse: got unsigned int const [usertype] * vim +393 arch/s390/include/uapi/../../../../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 */ 4f8d7abaa413c3 Lasse Collin 2021-10-11 405 if (s->temp.buf[HEADER_MAGIC_SIZE + 1] > XZ_CHECK_MAX) 4f8d7abaa413c3 Lasse Collin 2021-10-11 406 return XZ_OPTIONS_ERROR; 4f8d7abaa413c3 Lasse Collin 2021-10-11 407 24fa0402a9b6a5 Lasse Collin 2011-01-12 408 s->check_type = s->temp.buf[HEADER_MAGIC_SIZE + 1]; 24fa0402a9b6a5 Lasse Collin 2011-01-12 409 :::::: 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://github.com/intel/lkp-tests