Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp280228rwr; Wed, 19 Apr 2023 06:31:43 -0700 (PDT) X-Google-Smtp-Source: AKy350bUN9lxQdyp5vD2NGMM9YZTAUULXn8lpqGMorermWRG4GPEs+yznEN3lV9Cy0MHPXubXYje X-Received: by 2002:a17:903:2348:b0:1a5:2fbd:d094 with SMTP id c8-20020a170903234800b001a52fbdd094mr6949422plh.9.1681911102789; Wed, 19 Apr 2023 06:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681911102; cv=none; d=google.com; s=arc-20160816; b=lUJu0LTPF4Eq1fpDNkUknXB7vECdc/2KoGf2F2BSPOgFx/P+kUaWr+tvkiraN870EJ 8LDHoueUyLCcfCNjv0KXcMhNiTJk3IXBapbP2vLRQiR/U062yy/bzraI4lUS7mliE2+m 4FxmeIf3VtpeQ1nw8hmE4ZpKo+mm/1KOAYfg3XCru2LJSJMCs/ghznSBGiHDSjP6Ju+m WXbec3RbW3Q7PXjULfJfsUjXnT/oXXLFqNyRg7ArvQFdrgLpDmU4TIF5650fa+51NaK7 YZG8g875rLzYno8GwSdkTUl2GbIA/nb7QrRI75Y4aRkJel3TjnSEUn4x9os0di5+qb5b pdjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uEmouwKxPGexm9fq5RIvgLw89CEhkSRVxZNiZtz1rlE=; b=SMc24kb6HIJ/apyYw0LmwS/c27ZwzWOaY7JPEZrLn0m0s+bFA0ne2J8EP8r4KNkCka UXkFvMtLei6HhKEOYxrfoVlFaaykQE7HOvk6e1jZ9BMwr0Cr+WCK8wqYLcIESpLDHczn ddjipxhKbox+72/xyG5ReE4EdZcDZGyJl2zjVscutzVLbflMn4gFS5siEGP/J5ZcAsFs cgH/qKMPexv2Hl5TmFWKFw3cAuEJDaf7ftxccXuBXcTVe7uqpxWstNkH6+94GheQvN8s dZu81C7VauDUl1Af91if6/MYWX7zGwKIXx7W6CNWc+u4PMUCJ/AvSGQLxNM+aRAB/XnN 8frQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=brt7qoQA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j7-20020a170903024700b001a1dc236bdbsi18144255plh.539.2023.04.19.06.31.26; Wed, 19 Apr 2023 06:31:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=brt7qoQA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233542AbjDSNbB (ORCPT + 99 others); Wed, 19 Apr 2023 09:31:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233527AbjDSNa4 (ORCPT ); Wed, 19 Apr 2023 09:30:56 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20CD549C1; Wed, 19 Apr 2023 06:30: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=1681911055; x=1713447055; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=N/GSlYqreKAXPu9B0lGYZfv80oraXkzW4fyW3/FG+wQ=; b=brt7qoQAhklTou6CPSiTL97Ycejns7sjBu8bNAF/42G31XXU8+KVZBZX 7J6aXiaDoS1mgmnDcc906PZY+5ZeSlxDdBQpk4yhz9buvpOE9CLwNvNTj D+70aaDlFEkIioo1JAMZYj04jLbmhIJTgP3Nk0Wxfz6ar0s656Udbdbo+ Jun7k/I5lrzZOMrzO9eP+O9kOYQM2uiA+rfXr90y9+2QX7QuNWgQOo+l7 cK9dxhI4m3VPGgtGTWzfiPk12AsGIt/iUTI1tabnkx9sV+WUbVT42hJg9 vMYzVUK6HtvTdkvbwba7OWIySnSQVe625eTCjw32RpYnVQ/LjHbXzXdC1 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10685"; a="325062178" X-IronPort-AV: E=Sophos;i="5.99,208,1677571200"; d="scan'208";a="325062178" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2023 06:30:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10685"; a="684981964" X-IronPort-AV: E=Sophos;i="5.99,208,1677571200"; d="scan'208";a="684981964" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 19 Apr 2023 06:30:51 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pp7tb-000euR-0p; Wed, 19 Apr 2023 13:30:51 +0000 Date: Wed, 19 Apr 2023 21:29:58 +0800 From: kernel test robot To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Jens Axboe Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas =?iso-8859-1?Q?Wei=DFschuh?= Subject: Re: [PATCH 1/4] block: constify partition prober array Message-ID: <202304192132.a6MR0cFR-lkp@intel.com> References: <20230419-const-partition-v1-1-2d66f2d83873@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230419-const-partition-v1-1-2d66f2d83873@weissschuh.net> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Hi Thomas, kernel test robot noticed the following build warnings: [auto build test WARNING on af67688dca57999fd848f051eeea1d375ba546b2] url: https://github.com/intel-lab-lkp/linux/commits/Thomas-Wei-schuh/block-constify-partition-prober-array/20230419-155356 base: af67688dca57999fd848f051eeea1d375ba546b2 patch link: https://lore.kernel.org/r/20230419-const-partition-v1-1-2d66f2d83873%40weissschuh.net patch subject: [PATCH 1/4] block: constify partition prober array config: arm64-randconfig-r001-20230416 (https://download.01.org/0day-ci/archive/20230419/202304192132.a6MR0cFR-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 437b7602e4a998220871de78afcb020b9c14a661) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/9bc1f4308c10322c327c9e86ede6bb9e862440aa git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Thomas-Wei-schuh/block-constify-partition-prober-array/20230419-155356 git checkout 9bc1f4308c10322c327c9e86ede6bb9e862440aa # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash block/partitions/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304192132.a6MR0cFR-lkp@intel.com/ All warnings (new ones prefixed by >>): >> block/partitions/core.c:15:8: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] static const int (*check_part[])(struct parsed_partitions *) = { ^~~~~~ block/partitions/core.c:47:2: error: incompatible function pointer types initializing 'const int (*)(struct parsed_partitions *)' with an expression of type 'int (struct parsed_partitions *)' [-Wincompatible-function-pointer-types] efi_partition, /* this must come before msdos */ ^~~~~~~~~~~~~ block/partitions/core.c:50:2: error: incompatible function pointer types initializing 'const int (*)(struct parsed_partitions *)' with an expression of type 'int (struct parsed_partitions *)' [-Wincompatible-function-pointer-types] sgi_partition, ^~~~~~~~~~~~~ block/partitions/core.c:56:2: error: incompatible function pointer types initializing 'const int (*)(struct parsed_partitions *)' with an expression of type 'int (struct parsed_partitions *)' [-Wincompatible-function-pointer-types] msdos_partition, ^~~~~~~~~~~~~~~ block/partitions/core.c:59:2: error: incompatible function pointer types initializing 'const int (*)(struct parsed_partitions *)' with an expression of type 'int (struct parsed_partitions *)' [-Wincompatible-function-pointer-types] osf_partition, ^~~~~~~~~~~~~ block/partitions/core.c:62:2: error: incompatible function pointer types initializing 'const int (*)(struct parsed_partitions *)' with an expression of type 'int (struct parsed_partitions *)' [-Wincompatible-function-pointer-types] sun_partition, ^~~~~~~~~~~~~ block/partitions/core.c:65:2: error: incompatible function pointer types initializing 'const int (*)(struct parsed_partitions *)' with an expression of type 'int (struct parsed_partitions *)' [-Wincompatible-function-pointer-types] amiga_partition, ^~~~~~~~~~~~~~~ block/partitions/core.c:71:2: error: incompatible function pointer types initializing 'const int (*)(struct parsed_partitions *)' with an expression of type 'int (struct parsed_partitions *)' [-Wincompatible-function-pointer-types] mac_partition, ^~~~~~~~~~~~~ 1 warning and 7 errors generated. vim +/const +15 block/partitions/core.c 14 > 15 static const int (*check_part[])(struct parsed_partitions *) = { 16 /* 17 * Probe partition formats with tables at disk address 0 18 * that also have an ADFS boot block at 0xdc0. 19 */ 20 #ifdef CONFIG_ACORN_PARTITION_ICS 21 adfspart_check_ICS, 22 #endif 23 #ifdef CONFIG_ACORN_PARTITION_POWERTEC 24 adfspart_check_POWERTEC, 25 #endif 26 #ifdef CONFIG_ACORN_PARTITION_EESOX 27 adfspart_check_EESOX, 28 #endif 29 30 /* 31 * Now move on to formats that only have partition info at 32 * disk address 0xdc0. Since these may also have stale 33 * PC/BIOS partition tables, they need to come before 34 * the msdos entry. 35 */ 36 #ifdef CONFIG_ACORN_PARTITION_CUMANA 37 adfspart_check_CUMANA, 38 #endif 39 #ifdef CONFIG_ACORN_PARTITION_ADFS 40 adfspart_check_ADFS, 41 #endif 42 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests