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 2AA5BC197A0 for ; Sat, 18 Nov 2023 00:54:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346414AbjKRAyn (ORCPT ); Fri, 17 Nov 2023 19:54:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232422AbjKRAyl (ORCPT ); Fri, 17 Nov 2023 19:54:41 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D76793 for ; Fri, 17 Nov 2023 16:54:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700268878; x=1731804878; h=date:from:to:cc:subject:message-id:mime-version; bh=TD9IPSJt+oVbK7xCzpj1GFD8kz0ZDvOJokIsJun7kJQ=; b=eoe+QKkQykG5tRiqMtgbrTJDXB9SMwSAHDNk+3SrRVrsd0YUuFF8dxS8 TyRa4VagO99PEd+twemFwNISbTCgopSxx1oJKSBk1Mp2kW4M5ubk5s6tC bx8zKmsgYBA4+ve4SE84MARdp3kDo9hDsv2PDQnV8HndURv8cFIdfbhAX 2QaE64w7IDzhReFX88dwc0spQH0c8ghzxHHi4ezrX+sTmONuQ2mw+Tgp4 cb0SJk3eGkvFnINjLuchJLh79W43vEPPCvM0pNm8AN8sH6KS8gtJwyvS3 9CAtNn5UKGO7jmW/Oo2clr04ARiE/Ur1Mc0SI7vOWo54rKiirk8xf5ogT w==; X-IronPort-AV: E=McAfee;i="6600,9927,10897"; a="390253616" X-IronPort-AV: E=Sophos;i="6.04,206,1695711600"; d="scan'208";a="390253616" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2023 16:54:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10897"; a="889403828" X-IronPort-AV: E=Sophos;i="6.04,206,1695711600"; d="scan'208";a="889403828" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 17 Nov 2023 16:54:36 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r49bV-0003Mp-2y; Sat, 18 Nov 2023 00:54:33 +0000 Date: Sat, 18 Nov 2023 08:52:17 +0800 From: kernel test robot To: Richard Fitzgerald Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Shuah Khan , David Gow Subject: lib/kunit/string-stream-test.c:73:9: sparse: sparse: incorrect type in initializer (different base types) Message-ID: <202311180846.j5VBD2IH-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: 12ee72fe01e45a9586b9d130c5501763818c8efc commit: d1a0d699bfc00ae5b5e74bb640d791a93e825b68 kunit: string-stream: Add tests for freeing resource-managed string_stream date: 9 weeks ago config: sparc-randconfig-r021-20230427 (https://download.01.org/0day-ci/archive/20231118/202311180846.j5VBD2IH-lkp@intel.com/config) compiler: sparc-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20231118/202311180846.j5VBD2IH-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/202311180846.j5VBD2IH-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> lib/kunit/string-stream-test.c:73:9: sparse: sparse: incorrect type in initializer (different base types) @@ expected long long left_value @@ got restricted gfp_t const __left @@ lib/kunit/string-stream-test.c:73:9: sparse: expected long long left_value lib/kunit/string-stream-test.c:73:9: sparse: got restricted gfp_t const __left >> lib/kunit/string-stream-test.c:73:9: sparse: sparse: incorrect type in initializer (different base types) @@ expected long long right_value @@ got restricted gfp_t const __right @@ lib/kunit/string-stream-test.c:73:9: sparse: expected long long right_value lib/kunit/string-stream-test.c:73:9: sparse: got restricted gfp_t const __right lib/kunit/string-stream-test.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/umh.h, include/linux/kmod.h, ...): include/linux/page-flags.h:242:46: sparse: sparse: self-comparison always evaluates to false vim +73 lib/kunit/string-stream-test.c 61 62 /* Unmanaged string_stream object is initialized correctly. */ 63 static void string_stream_unmanaged_init_test(struct kunit *test) 64 { 65 struct string_stream *stream; 66 67 stream = alloc_string_stream(GFP_KERNEL); 68 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream); 69 kunit_add_action(test, cleanup_raw_stream, stream); 70 71 KUNIT_EXPECT_EQ(test, stream->length, 0); 72 KUNIT_EXPECT_TRUE(test, list_empty(&stream->fragments)); > 73 KUNIT_EXPECT_EQ(test, stream->gfp, GFP_KERNEL); 74 KUNIT_EXPECT_FALSE(test, stream->append_newlines); 75 76 KUNIT_EXPECT_TRUE(test, string_stream_is_empty(stream)); 77 } 78 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki