Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp360805lqp; Tue, 11 Jun 2024 06:51:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpRSk6mj05Ue0ygz3bDbsHIZ8ugNVUVyByg9JFswy8rCvFlmSNbFoxiT/iAg1K/krNickybZgqN1dNXW5JJmHdMQBkWiKg6iBDxfcZow== X-Google-Smtp-Source: AGHT+IGxsAWUk55IveRkHyNGvLrupeDtM4Wp4e5VwJ4rQ7LAE6Cb6xNzK3VdZ5w2neKnF1vTTl4x X-Received: by 2002:a17:90b:1e02:b0:2c3:2990:ad0b with SMTP id 98e67ed59e1d1-2c32990b0e0mr2559126a91.7.1718113889085; Tue, 11 Jun 2024 06:51:29 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2d0e2a6d3si5464377a91.25.2024.06.11.06.51.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 06:51:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210001-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CLFT6ZOk; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-210001-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210001-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A5AB3287CEB for ; Tue, 11 Jun 2024 13:51:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB93117D88E; Tue, 11 Jun 2024 13:51:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CLFT6ZOk" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 DC07D1E4AF; Tue, 11 Jun 2024 13:51:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.15 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718113872; cv=fail; b=dUrFq7O6klUmZDH2b+Y0N+CnhsxSQl1ejrAOZhc7ksOxnJlDKoRbYCXLcqGm0TGGBjCseOI3cWSAR14xoelK7qCyQr+87/yHria+C/Xp0jcMejkJBavJ0dclshgIhIJgh3iiG50IVpNhlzQ9rGX3LWz1+AoAWS2X6ZosiqsUaM4= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718113872; c=relaxed/simple; bh=R4JUIEh8szBUXl8egQIgheTIAdUbbLwbl3TtqF12ZDQ=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=BB0FtG/lor6ZBQDgCq4B08WoZcMBfoq83pYEM0VhVT8tFWeBfeB9i4q1prIobeN3mQvmFqzrnStPTduhPiTCt1tODkXGA3AXn6xIeBh+Gh6S/S3J7LgoZ4cV1KTmED5VaZ20JXWyvC1zpf+sZNNVV13mTe01srOtbkJRdytgf+M= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=CLFT6ZOk; arc=fail smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718113871; x=1749649871; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=R4JUIEh8szBUXl8egQIgheTIAdUbbLwbl3TtqF12ZDQ=; b=CLFT6ZOkjpznKCeZaVc/2DFlNNQU3cb1YGwWB8Pfy2Afwwf5K8yWSCPh yFyLIYdmfubqodOH22a/0I2b1XzcoXLDgs1D5PvtfwDdKXgJ2DG+TqD+w EGkNHxJkQkgbS0ryy+FkX/Kh70b+vm/TyhI3xUR+MTAUcUsqnFPnOXOrj 9yE+KPZmu1+JqTFXhMYyPhRLZ8pyT04VBTufp6RNh8yBqljZcPamNk+2h 3pGaOcGhb8zTUKGuk8peJXQYOyg9APbac06N9saru4a01vz3xc6zRm0P8 4cLNeMlPeR4RLnOF1dduiAUjQEZxqR+qjSS4HSwbkjBsBdUYsfEyhYVff w==; X-CSE-ConnectionGUID: aYu7L1iJRUi0VHsKk9tARQ== X-CSE-MsgGUID: wdhLB5HNRYuqo0LKmKucbA== X-IronPort-AV: E=McAfee;i="6600,9927,11099"; a="14993790" X-IronPort-AV: E=Sophos;i="6.08,230,1712646000"; d="scan'208";a="14993790" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2024 06:51:09 -0700 X-CSE-ConnectionGUID: XtY0PmjuTvipxZeJR50FEw== X-CSE-MsgGUID: KMsAwqQPRwqbHRwrnwvEtg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,230,1712646000"; d="scan'208";a="40153024" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orviesa007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 11 Jun 2024 06:51:08 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 11 Jun 2024 06:51:06 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Tue, 11 Jun 2024 06:51:06 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.44) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 11 Jun 2024 06:51:06 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SjZFyLMCVS/m8qbvH9ubfa3pICslcsYWU1C1Ksfv2D18g6qyx7jMvP9rfof6RAlvHBBBYtN3QYcakL9colWzv5ZwO0HtBynbqNYEguQF29xBvYKAeIh9WeQDh257Fz/REgvyBWO3w5IdRiKUmakj69zuqWoR5W+NKzfR7gOFhrZhYyYSI4ufNK0DnjFBsqQbJ1ADfpqVRUjpPPJoB8YUZsDsHzHYrVxn88gxpUkD/KmvcyliXGKzV5k77ZN2e1xqA5m0oE9F+T2ArzV8ej1BcloBzedJFsZwW+/g+N61LEhm/K9qkXjm8Jy3vDhpJNfAjA9pV2qpprRwqZI4CUcyqw== 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=e1uGq2+wfieuYXcZeRJnK4aDZSCGzaGqhYSzVcgw/io=; b=WKkVrkPwesg1K14XuB57f4lmOU3NPsLe+pEbGiSj8Skiy7Hp4KVE8TP8Za6/l6njnEj2rvj0pa77gJ04jIVrE/RzR0eO1065C+/bXVkV5nkKPx8M9jdnInv9WLkr4PMpX26m+2+J0XyYL8EK1r/fmRpRTr1Jn53rvrS8c/0jiIbhiivU1pKi+O1rvoWYCslZfmXlxvR0j1zMFaaNP9eMaIbl3FP6pnVdshuJNdUTcTUxCzZgIQA50NKB93dhc5INUQGtPGi13YVQ5JG+CcnNk4pxIcSGDzVqf4KUG/qz4p+8Nea4t2VHOec0YpVfuM0XW8yQSq+M/g/IrMLvFjM+FQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MN6PR11MB8102.namprd11.prod.outlook.com (2603:10b6:208:46d::9) by PH7PR11MB6746.namprd11.prod.outlook.com (2603:10b6:510:1b4::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Tue, 11 Jun 2024 13:50:59 +0000 Received: from MN6PR11MB8102.namprd11.prod.outlook.com ([fe80::15b2:ee05:2ae7:cfd6]) by MN6PR11MB8102.namprd11.prod.outlook.com ([fe80::15b2:ee05:2ae7:cfd6%6]) with mapi id 15.20.7633.036; Tue, 11 Jun 2024 13:50:59 +0000 Message-ID: Date: Tue, 11 Jun 2024 15:50:47 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/6] auxbus: make to_auxiliary_drv accept and return a constant pointer To: Greg Kroah-Hartman , CC: Dave Ertman , Ira Weiny , "Rafael J. Wysocki" , Sakari Ailus , Bingbu Cao , "Tianshu Qiu" , Mauro Carvalho Chehab , Michael Chan , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jesse Brandeburg , Tony Nguyen , "Saeed Mahameed" , Leon Romanovsky , Tariq Toukan , Pierre-Louis Bossart , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Daniel Baluta , Kai Vehmanen , Mark Brown , Jaroslav Kysela , Takashi Iwai , "Richard Cochran" , , , , , , References: <20240611130103.3262749-7-gregkh@linuxfoundation.org> From: Przemek Kitszel Content-Language: en-US In-Reply-To: <20240611130103.3262749-7-gregkh@linuxfoundation.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VI1P190CA0024.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:2b::37) To MN6PR11MB8102.namprd11.prod.outlook.com (2603:10b6:208:46d::9) 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: MN6PR11MB8102:EE_|PH7PR11MB6746:EE_ X-MS-Office365-Filtering-Correlation-Id: db824e18-8139-4bee-d473-08dc8a1d8657 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|376005|7416005|1800799015; X-Microsoft-Antispam-Message-Info: =?utf-8?B?TWk1QjF3YWxZYUV0M1dOTGRuTjBlSDJkV0lNV3ZnbWRKMG9GcWpaTnVXNTFO?= =?utf-8?B?eXZjdEprOWEyeUdMaHY2QnNhY2JPTFdobHIrOGFDUXZUY3NyUnlzZi9tTVdz?= =?utf-8?B?bXJsL2NiQXVBSXJwMlJQeFZONnp3emNzbWo5TytxdjVGNEcvNmovd2l6dHRi?= =?utf-8?B?VDlkWG9sNUthd2pkbjZDNlp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TW5qV3Q4U3NtZzZLK3c1ZnNaNHlONGdMRGozK2RzNGNpQkp1dm9i?= =?utf-8?B?SXgvZ3Q0RTV3RU5vWlBPdmdiMVhvWEFNVnBNVXcycSsvNWk1NENER2Q0b0I0?= =?utf-8?B?ZDdPSjY5K1JrSUJyejQ0R2RvakxGL2FXMU5NREh5SDZXS1lpTlpXb09rZFJ2?= =?utf-8?B?N2ZHemVIei9WckdzWGF0V0ZkRGJqUzlGTlhXYUQxK09XRmc5YnI2c01NSWR6?= =?utf-8?B?UXdrYTdPb0xJbTJxYjUyLzFmUzdnWWVNeitQS2JaQWxRSEZzV2F0N3E1Y2lX?= =?utf-8?B?K0R4WU1TM08wT3phOHh1N2Z3Tld4V3hhNEVPZFM0VzA4MGcxL1RmU3BNVXRw?= =?utf-8?B?bnVUeUgwdmxnMWRkRTFpN1liWkJpb04ydlVERHFxUE9ubGxzRm9hekVwWkJ3?= =?utf-8?B?RVVFWHM3N0pGWDcvU2xOL2FvZXoyN0lmTmZOV1VVc2RuK2ZGdU55WWFtYVJ0?= =?utf-8?B?WkRuelhCM1MvUmc3SnJ4aGVoZU5MUnhsMkI0UllWK3RIYmZqMmppaC8zZlJ2?= =?utf-8?B?ekJOMCtHRC9GclN6MFBZQUNGSkNDYUtEWHlJck82UmthcGQyKy9zb20yYVFG?= =?utf-8?B?RkNWbFpUYXNyNStYQzU3VTg5clNwYUZldURoVko0TDZpd0lpMklMNzZDNVhG?= =?utf-8?Q?KpAk2Lxep2/wBqfSX/Mx8LmmFBkgT4QFNIPkX7f?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN6PR11MB8102.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(7416005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?S3BrWFNKRUtOR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2FCYVJDeWcvKzk0R1g5ajhRUFlxMC80Y3J1aUNlYytYVURuM2dC?= =?utf-8?B?NDVQMmNNUVhyc3JlN2tjZ0FPVmN4eUlMcFE2SDc2R1Q4V2RqZmNGWHZ6R2d0?= =?utf-8?B?eUVZWHNyaEtZR2I2V2lYRFdrWjIyTmJGT1dIdG1venV1NXhaNjBpUlNxL0Ey?= =?utf-8?B?RGV2bEZBNTVYZmhTOVZQT21rVS9kRitPMU4wNElGbklHZEw3UVpVUXVoWkJr?= =?utf-8?B?VmxBZi9wcGlYU1NiMWNMQ3dyN2ozUmJwdTlINHRnZzJ6dG1zWlgzUG5KTzA4?= =?utf-8?B?cUI3WlRQc2NUQjNCL1grU3RKM3A0MnhoUFpHZEpCVmtrOFN4RStzTDhJakx2?= =?utf-8?B?UXc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: db824e18-8139-4bee-d473-08dc8a1d8657 X-MS-Exchange-CrossTenant-AuthSource: MN6PR11MB8102.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2024 13:50:59.4834 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: a3kS7QXuFL1bco07ujzs/mHyxWYRAOBGG8px8UaSFmkCgowlPoYqyFg7HBp4RRUXSMeE2KHIMPAsIo562qsSIq4MyqDt2HsXwlJHU4JYJs8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB6746 X-OriginatorOrg: intel.com On 6/11/24 15:01, Greg Kroah-Hartman wrote: > In the quest to make struct device constant, start by making just curious, how far it will go? eg. do you plan to convert get/put_device() to accept const? or convert devlink API to accept consts? > to_auziliary_drv() return a constant pointer so that drivers that call typo: s/auz/aux/ > this can be fixed up before the driver core changes. > > As the return type previously was not constant, also fix up all callers > that were assuming that the pointer was not going to be a constant one > in order to not break the build. > > Cc: Greg Kroah-Hartman [...] > diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c > index 0f17fc1181d2..7341e7c4ef24 100644 > --- a/drivers/net/ethernet/intel/ice/ice_ptp.c > +++ b/drivers/net/ethernet/intel/ice/ice_ptp.c > @@ -2784,7 +2784,7 @@ static struct ice_pf * > ice_ptp_aux_dev_to_owner_pf(struct auxiliary_device *aux_dev) > { > struct ice_ptp_port_owner *ports_owner; > - struct auxiliary_driver *aux_drv; > + const struct auxiliary_driver *aux_drv; > struct ice_ptp *owner_ptp; > > if (!aux_dev->dev.driver) > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/dev.c b/drivers/net/ethernet/mellanox/mlx5/core/dev.c > index 47e7c2639774..9a79674d27f1 100644 > --- a/drivers/net/ethernet/mellanox/mlx5/core/dev.c > +++ b/drivers/net/ethernet/mellanox/mlx5/core/dev.c > @@ -349,7 +349,7 @@ int mlx5_attach_device(struct mlx5_core_dev *dev) > { > struct mlx5_priv *priv = &dev->priv; > struct auxiliary_device *adev; > - struct auxiliary_driver *adrv; > + const struct auxiliary_driver *adrv; nit: in netdev we do maintain RCT order of initialization > int ret = 0, i; > > devl_assert_locked(priv_to_devlink(dev)); > @@ -406,7 +406,7 @@ void mlx5_detach_device(struct mlx5_core_dev *dev, bool suspend) > { > struct mlx5_priv *priv = &dev->priv; > struct auxiliary_device *adev; > - struct auxiliary_driver *adrv; > + const struct auxiliary_driver *adrv; > pm_message_t pm = {}; > int i; > [...]