Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp679302rwd; Thu, 15 Jun 2023 00:02:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5lRc2as2EMd1JWeQoJFc5cw9TxsKd+nxRVCKNnrt4G5SHqiR5yGPKFw69nJWjFkME2dLH0 X-Received: by 2002:aa7:d9c1:0:b0:518:6e09:425c with SMTP id v1-20020aa7d9c1000000b005186e09425cmr5472987eds.9.1686812527782; Thu, 15 Jun 2023 00:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686812527; cv=none; d=google.com; s=arc-20160816; b=i71u4Sw15hUCHdQg33iI+0QEtlwlYMWd9i4BbKhaiIZnxTSRJRa0OAGg7HRlnoSM/E Xp+aixTVvdrRLyT9c++ir3VzTbd+BqlyQv0NDh1/mAiB9uDRL51bwPfEnwxVd5SoNjmx 5cYCCP6CFjHaUyIf6QKWV7ITM44PyUON31Bnj5s/Q/E52Ju7j78FFJqmXEmPl/ufD7QF +2PETwPkBWdRWWBtniTWhPytiQH3czmE9+l7HTZiYBX82Xs+Z8i7gS79zlTMHrOkx5IC lEzb177Qrl/q/u0RZJncZqb1Y036Pglkfwx/+5n4+387KRjXEb1j4NIZatk2xSYcLnNQ Jgvg== 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=6u4PygeX0OBcRQvRcbV/K0oEph5G9h7q9itCpsVPOaI=; b=w7vAPljkK5DHkEhAorf8k73hkwkV7nu/Sv8Zcq/g7rVxoXdlzomP5hmGWOclF86waa DQO0C9AM/YgyTLQ6qr0sKr/b0PPRF6MZSJZHQV59LgQU7MVqeT6CZkoYudr3GKgkOb7L b9H1e7uDDBCX8XYjkMKMCKi/GmfbJvd8cEt5MDIlpc45Z9u8+FwbkHF0P1HFbs8QKEbq rqNhrokJGL+K8wNoGKbR3esygb9vtSx5m3largJ6ux7v7RxWPl9mudNPkCx7W/uIZnPA H6kRP2JNO69VJc7SJlSzZbkg8kQGmVCtX2vASr1wDc1Q9SZuHsN/4nYUox9EiEaF9NVZ UdFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=co44K2m8; 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 b26-20020aa7dc1a000000b00514951ca946si5007916edu.503.2023.06.15.00.01.41; Thu, 15 Jun 2023 00:02:07 -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=co44K2m8; 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 S243914AbjFOGdW (ORCPT + 99 others); Thu, 15 Jun 2023 02:33:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243758AbjFOGdC (ORCPT ); Thu, 15 Jun 2023 02:33:02 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB0251981 for ; Wed, 14 Jun 2023 23:32:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686810777; x=1718346777; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=m7Rg4Z8tN68L4Ggv7n3oCaLNZ0NWwcD2fhinr5NJ6OQ=; b=co44K2m84MtPbutrQTOmRZ7P8d7pHS4BjPnRtyHG6EzGZ/BXbvLKdTrI s3xQ2+zSNsedfgebjvPGmsvXAmdrr5+6v+e5gMpS2YFtRZm7niaP2w+tD 7+0sIMijP+HnM+2iBN86gU4NOSaHuLbKfZrqp7Ah0GjFd9x8xOuO1lowv pLQRzpS9avsmKw/vWGGzR/xVEgY9EKK4IjHKzF7ECDp/wJZPqmecjJKcy OBuJYVWa4UGVY5O+HsI5KiEghX3/nnzLRreApR9Z1aIDujKV2QXS2N1v/ POfOdIJSW2HRaI6Q0SdzpDy1H6gwJLwNP9P/rlrE3btKl3Z5AgFtIagXR g==; X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="343527716" X-IronPort-AV: E=Sophos;i="6.00,244,1681196400"; d="scan'208";a="343527716" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2023 23:32:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="712345887" X-IronPort-AV: E=Sophos;i="6.00,244,1681196400"; d="scan'208";a="712345887" Received: from lkp-server02.sh.intel.com (HELO d59cacf64e9e) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 14 Jun 2023 23:32:47 -0700 Received: from kbuild by d59cacf64e9e with local (Exim 4.96) (envelope-from ) id 1q9gXG-0001Yd-2W; Thu, 15 Jun 2023 06:32:46 +0000 Date: Thu, 15 Jun 2023 14:32:02 +0800 From: kernel test robot To: Jiapeng Chong , Felix.Kuehling@amd.com Cc: oe-kbuild-all@lists.linux.dev, Jiapeng Chong , Xinhui.Pan@amd.com, Abaci Robot , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, alexander.deucher@amd.com, christian.koenig@amd.com Subject: Re: [PATCH] drm/amdkfd: Switch over to memdup_user() Message-ID: <202306151407.U4D2AMDM-lkp@intel.com> References: <20230614020432.44044-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230614020432.44044-1-jiapeng.chong@linux.alibaba.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Jiapeng, kernel test robot noticed the following build warnings: [auto build test WARNING on next-20230613] [cannot apply to drm-misc/drm-misc-next v6.4-rc6 v6.4-rc5 v6.4-rc4 linus/master v6.4-rc6] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Jiapeng-Chong/drm-amdkfd-Switch-over-to-memdup_user/20230614-100553 base: next-20230613 patch link: https://lore.kernel.org/r/20230614020432.44044-1-jiapeng.chong%40linux.alibaba.com patch subject: [PATCH] drm/amdkfd: Switch over to memdup_user() config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230615/202306151407.U4D2AMDM-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): git checkout next-20230613 b4 shazam https://lore.kernel.org/r/20230614020432.44044-1-jiapeng.chong@linux.alibaba.com # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 olddefconfig make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/ 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/202306151407.U4D2AMDM-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c: In function 'get_queue_ids': >> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:2815:24: warning: returning 'long int' from a function with return type 'uint32_t *' {aka 'unsigned int *'} makes pointer from integer without a cast [-Wint-conversion] 2815 | return PTR_ERR(queue_ids); | ^~~~~~~~~~~~~~~~~~ vim +2815 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c 2804 2805 static uint32_t *get_queue_ids(uint32_t num_queues, uint32_t *usr_queue_id_array) 2806 { 2807 size_t array_size = num_queues * sizeof(uint32_t); 2808 uint32_t *queue_ids = NULL; 2809 2810 if (!usr_queue_id_array) 2811 return NULL; 2812 2813 queue_ids = memdup_user(usr_queue_id_array, array_size); 2814 if (IS_ERR(queue_ids)) > 2815 return PTR_ERR(queue_ids); 2816 2817 return queue_ids; 2818 } 2819 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki