Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp306891lqh; Fri, 31 May 2024 01:45:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUB9NOxksX7N+jjLUyIL4DsbD6lQvgTHT/hrOgbIWzwlwkOcwY9Ltjr1IM3T9R8lhRuze+qD8B/TEFSOq5SOsBj4G+1RVQIYIpC3ntHEQ== X-Google-Smtp-Source: AGHT+IHuJr9W8Qh5uA3hEhSrj8ZCg+glSFYX0qN9PRqc11WhvrVpryBUMoMsqaQH94QEJZpeIGaQ X-Received: by 2002:a05:6a00:993:b0:702:2f9d:ee84 with SMTP id d2e1a72fcca58-702478c290cmr1274953b3a.25.1717145117077; Fri, 31 May 2024 01:45:17 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35c17cf03si1165563a12.634.2024.05.31.01.45.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 01:45:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196473-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=NuWbKq64; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-196473-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196473-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3D95EB2622A for ; Fri, 31 May 2024 08:32:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF8F714F9F5; Fri, 31 May 2024 08:32:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="NuWbKq64" Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2051.outbound.protection.outlook.com [40.107.223.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5DB714F9DB for ; Fri, 31 May 2024 08:32:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.51 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717144371; cv=fail; b=AxGG7RHOwW4zn8onbpf0aio7jHySoPq2j2plI/lV3USxOGHJ/nBRrpYsEDfbbxoCv+svQimHTOjYUpVGzdKrJe3ohquNCh/+LUKjEPk/TTnC04zypMh54i+U9jMWPqM2VVMADTFr1rpBPq8XIwLGekiCRv7dHO6FwoaHkFUI2CY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717144371; c=relaxed/simple; bh=RmgbVq0Qbx+8wwj2SKz5vIWFcVqeC2lvEPqv0I50p5w=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=d8JGon234UmsRRa0I73DV9V+QgeDvJPXOSG2rqVjRFC892cf5OLskwRvVt8Ej5N1AiolTUYIuths3CC2nS3xyEprr39pPi45aGmF+kUZG3Fa3oDLnvcuJHXqke+HedFRFaRy739RQjZx4f24nNuwSHW7bQ+C5Vp72laSqk+xRiI= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=NuWbKq64; arc=fail smtp.client-ip=40.107.223.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZsNOc7IDrpogV9xFL8zoPi0bPFqsgaR9hUO5Yndg5xVE5T3qztCO5ZfzVpNP30CExVG5qSVDamfhySgPo/yBqTNifKYE1XureY781rcuh5DQqq3eN3+QuxHoQU18xrlRGJ4jpoJ9rR0zXx7yIYgeOAIfXtJegGi+eOTa0TLsTmynHnpvPTj4hRSd2g6nGtNUQ7g6iSRW2eDGNyHyLkA8yhwQJA7eFZr9uH0xXsFcyAkyqWgaYP7P2mKa8FHliVvAUHY+tt29KdSr9pzKqDC6k7aK1lwIeywsu9qdMEm4iD7lHp8P2UH1pSy5B/fHBb2cIvw+L0+oJjglOMREFvqx9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pNQiMysmSQOa6OmoV5nMh65bORKox7vrfIMgbt94Xt4=; b=kS3XPkOMmE2A3htvOsi3nwP+TF+68b/+GRszfi/ZV9tUel2tTFcYBP3iQjbYir+6+dlBGhcdt/N0funAsDtpjkc5D5WmNWuolAVrOacjrypT0tV3w3jj0BEg7cEsfnhJ3Nu7SGfKg+G/9kYc2mZi2X19VBnRnJmQDmYREKOnACiOW7tFg+HoLddIVPaopjIN9rA75HAQlQJfDzD3doO4gOcZxTbuFqCt2DU84ukAIO24yfzSE0ED8fh4i42e/BmF61s6w+blhO/bQdA5SwKJ5gc95Oci69S62kdu9HY/QP5BL2VuC2D3IhojdnOYZNa6w94eI61t1w4KpVB+rf3JDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pNQiMysmSQOa6OmoV5nMh65bORKox7vrfIMgbt94Xt4=; b=NuWbKq64nzFMSg83ijhdWcm46ZP9sUIpwOZ6vL957gCZRQmSCDkbnGIJg2qJCehKMp03UwDN8VnU7VajYozv7u935Cw3paFFqcCSj9x8ddv6ZLNZ5DWL3uWd1M8LPHxoWRtEz0PXgQ8DJzq56/zXn8+8a1fcBnAjqRaIeVXFGuo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DS7PR12MB6048.namprd12.prod.outlook.com (2603:10b6:8:9f::5) by PH8PR12MB6892.namprd12.prod.outlook.com (2603:10b6:510:1bc::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22; Fri, 31 May 2024 08:32:46 +0000 Received: from DS7PR12MB6048.namprd12.prod.outlook.com ([fe80::6318:26e5:357a:74a5]) by DS7PR12MB6048.namprd12.prod.outlook.com ([fe80::6318:26e5:357a:74a5%6]) with mapi id 15.20.7633.018; Fri, 31 May 2024 08:32:46 +0000 Message-ID: Date: Fri, 31 May 2024 14:02:37 +0530 User-Agent: Mozilla Thunderbird Subject: Re: drivers/iommu/amd/iommu.c:2011 init_gcr3_table() warn: missing error code? 'ret' To: Dan Carpenter , oe-kbuild@lists.linux.dev Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Joerg Roedel , Jason Gunthorpe References: <7765e9c3-414d-444a-8943-7e244c945e57@moroto.mountain> Content-Language: en-US From: Vasant Hegde In-Reply-To: <7765e9c3-414d-444a-8943-7e244c945e57@moroto.mountain> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN3PR01CA0017.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:95::16) To DS7PR12MB6048.namprd12.prod.outlook.com (2603:10b6:8:9f::5) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS7PR12MB6048:EE_|PH8PR12MB6892:EE_ X-MS-Office365-Filtering-Correlation-Id: bd17160c-6de6-4e0f-a17f-08dc814c3f77 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?MGtsSGF1L1hjTWc0MHdoUDN2UFRDdXUwUlRQVXZUbnBYYUFYOXRibm1nMUY1?= =?utf-8?B?TXFCS29WWTdPY1B5UjVuam1BMEJVOGtnYUhBS2Y5cTNlY3lMNFpSUnF2Q1ds?= =?utf-8?B?S0dndlBFUWdVK1F2UTloTTI0ZXo0aGRBSWhlRjBaaVU0M2VaeTVxMHFIQjY4?= =?utf-8?B?TkFyaGg3Z3RkS1RidExpbmluYU1ncGRVemw3QnNSU1hlQ1dFSEZidnhVTDFO?= =?utf-8?B?YVI2S0JaVDA5MXpkTFZoSk5uZHQzNzdnV0xsU20yRTdwTnhWMHF5c2pjcnpq?= =?utf-8?B?MWEzQ3owVTRLcTdOaVdZbFFrR0VOeXJWanhtWDMrRkU4MmxHdlVmYVoySXVk?= =?utf-8?B?RnQ3SkFTUG1TU01PMEhIcHh4THhtVTNWOEwyUlRmNDQzRVBTcTA3R04wcnJn?= =?utf-8?B?aWdLaUpKYW9PNWFyaFMwMkZFd0N2Q2k1bWVUcjA0NWorQ1RRZmQ0c3ZJTnho?= =?utf-8?B?NFhaYlZoTjZM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mZuVDNOaU9qTk5YZ1QrQVZINnBFenVoYVd1MU93NjFadEZzT1FXSUZC?= =?utf-8?B?Z3Q3SGFiZytOb3BtRDRZWUNMb3EzWXltSzVlOEJWc3BialU3ZzRPSUtoaGsr?= =?utf-8?B?N2dYS3pSQ0dVRnMzNXRBcmJPOVpQbmg1Q3I0VEJFYXozVm4vbDQxbEZKamdO?= =?utf-8?B?aERxY1U3S2VNSTh1Z3JZZ3JKMENabWlVNVkvQTZOZHNoTlRlb3lSVnNwL0RC?= =?utf-8?Q?+TkfzPMQ9FP2OFXqAQoigXPZHvts69s6G9cSqUeEYvQw=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR12MB6048.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YktiakxUcjV1L0ZTOUx2ZEUvaXBmdjlReGdtQlptbWUvajN4dlVaTE92Q0RU?= =?utf-8?B?MytoSWs4Vm5IQ094OW14ZHgxUjlGNmVEUm4zcnhGams2OWNhUDZoUkdaT1RS?= =?utf-8?B?MVpZTnNQUmxucmZCNW1JL2FqZTZKaEY0N2s0eGRZNlJaK1M4Ym1lNHROUnVp?= =?utf-8?B?RUlhVno2M1dvOFM0ZWFLYiszZUhtRmtmSG5oMDJkbjdsQ1BMRFR2aC96Y2VT?= =?utf-8?B?UzhiM2pWeVFlZ3BIM2JxWFB2cy92b2VHWnBvQmNMR2FLRXBJUy9LZXZlRHdv?= =?utf-8?B?NXh4N1JuUGQ4K2ZzeUxiQmZZdzhqYnM1aWpKTWhrK0pZUy9DOUE5bndKTHN3?= =?utf-8?B?aUY5QWtHeFpHblY5MEsrTmtRQkczdURaenpmSFhYb01Tc0RQSDE0UndvYjhy?= =?utf-8?B?SjFETHV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: DS7PR12MB6048.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2024 08:32:46.5611 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sBCFma56ZP3EdvtRUofTLH9lpamFYSgBgQXySn/VEiY3E2Cw+PG2wTbhaAQD8JBg5pOFE2VPbujottqPMh97Qg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6892 Hi Dan, On 5/23/2024 8:39 PM, Dan Carpenter wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 29c73fc794c83505066ee6db893b2a83ac5fac63 > commit: c9e8701132e6cc162d082e7dad8a2e9110f5f8fd iommu/amd: Setup GCR3 table in advance if domain is SVA capable > config: x86_64-randconfig-161-20240522 (https://download.01.org/0day-ci/archive/20240522/202405221116.X7cP3GzG-lkp@intel.com/config) > compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) > > 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 > | Reported-by: Dan Carpenter > | Closes: https://lore.kernel.org/r/202405221116.X7cP3GzG-lkp@intel.com/ > > smatch warnings: > drivers/iommu/amd/iommu.c:2011 init_gcr3_table() warn: missing error code? 'ret' > > vim +/ret +2011 drivers/iommu/amd/iommu.c > > c9e8701132e6cc Vasant Hegde 2024-04-18 1986 static int init_gcr3_table(struct iommu_dev_data *dev_data, > c9e8701132e6cc Vasant Hegde 2024-04-18 1987 struct protection_domain *pdom) > c9e8701132e6cc Vasant Hegde 2024-04-18 1988 { > c9e8701132e6cc Vasant Hegde 2024-04-18 1989 struct amd_iommu *iommu = get_amd_iommu_from_dev_data(dev_data); > c9e8701132e6cc Vasant Hegde 2024-04-18 1990 int max_pasids = dev_data->max_pasids; > c9e8701132e6cc Vasant Hegde 2024-04-18 1991 int ret = 0; > c9e8701132e6cc Vasant Hegde 2024-04-18 1992 > c9e8701132e6cc Vasant Hegde 2024-04-18 1993 /* > c9e8701132e6cc Vasant Hegde 2024-04-18 1994 * If domain is in pt mode then setup GCR3 table only if device > c9e8701132e6cc Vasant Hegde 2024-04-18 1995 * is PASID capable > c9e8701132e6cc Vasant Hegde 2024-04-18 1996 */ > c9e8701132e6cc Vasant Hegde 2024-04-18 1997 if (pdom_is_in_pt_mode(pdom) && !pdev_pasid_supported(dev_data)) > c9e8701132e6cc Vasant Hegde 2024-04-18 1998 return ret; > c9e8701132e6cc Vasant Hegde 2024-04-18 1999 > c9e8701132e6cc Vasant Hegde 2024-04-18 2000 /* > c9e8701132e6cc Vasant Hegde 2024-04-18 2001 * By default, setup GCR3 table to support MAX PASIDs > c9e8701132e6cc Vasant Hegde 2024-04-18 2002 * supported by the device/IOMMU. > c9e8701132e6cc Vasant Hegde 2024-04-18 2003 */ > c9e8701132e6cc Vasant Hegde 2024-04-18 2004 ret = setup_gcr3_table(&dev_data->gcr3_info, iommu, > c9e8701132e6cc Vasant Hegde 2024-04-18 2005 max_pasids > 0 ? max_pasids : 1); > c9e8701132e6cc Vasant Hegde 2024-04-18 2006 if (ret) > c9e8701132e6cc Vasant Hegde 2024-04-18 2007 return ret; > c9e8701132e6cc Vasant Hegde 2024-04-18 2008 > c9e8701132e6cc Vasant Hegde 2024-04-18 2009 /* Setup GCR3[0] only if domain is setup with v2 page table mode */ > c9e8701132e6cc Vasant Hegde 2024-04-18 2010 if (!pdom_is_v2_pgtbl_mode(pdom)) > c9e8701132e6cc Vasant Hegde 2024-04-18 @2011 return ret; > > From the comment, this looks like a false positive, but could you please > change it to "return 0;" ret is already zero. Hence I used 'ret'. Yeah . I can change this to zero. -Vasant