Christian Brauner
641bb4394f
fs: move FMODE_UNSIGNED_OFFSET to fop_flags
...
This is another flag that is statically set and doesn't need to use up
an FMODE_* bit. Move it to ->fop_flags and free up another FMODE_* bit.
(1) mem_open() used from proc_mem_operations
(2) adi_open() used from adi_fops
(3) drm_open_helper():
(3.1) accel_open() used from DRM_ACCEL_FOPS
(3.2) drm_open() used from
(3.2.1) amdgpu_driver_kms_fops
(3.2.2) psb_gem_fops
(3.2.3) i915_driver_fops
(3.2.4) nouveau_driver_fops
(3.2.5) panthor_drm_driver_fops
(3.2.6) radeon_driver_kms_fops
(3.2.7) tegra_drm_fops
(3.2.8) vmwgfx_driver_fops
(3.2.9) xe_driver_fops
(3.2.10) DRM_GEM_FOPS
(3.2.11) DEFINE_DRM_GEM_DMA_FOPS
(4) struct memdev sets fmode flags based on type of device opened. For
devices using struct mem_fops unsigned offset is used.
Mark all these file operations as FOP_UNSIGNED_OFFSET and add asserts
into the open helper to ensure that the flag is always set.
Link: https://lore.kernel.org/r/20240809-work-fop_unsigned-v1-1-658e054d893e@kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org >
Reviewed-by: Jan Kara <jack@suse.cz >
Signed-off-by: Christian Brauner <brauner@kernel.org >
2024-08-30 08:22:36 +02:00
..
2022-06-21 17:54:53 -04:00
2024-01-18 15:39:02 -05:00
2024-01-15 18:35:37 -05:00
2024-01-15 18:35:37 -05:00
2024-01-15 18:35:37 -05:00
2024-01-15 18:35:37 -05:00
2024-06-21 10:30:31 +10:00
2024-01-15 18:35:37 -05:00
2023-11-03 11:59:51 -04:00
2024-01-18 15:39:11 -05:00
2019-06-10 22:30:24 +02:00
2022-04-11 13:50:35 -04:00
2024-01-18 15:39:42 -05:00
2024-01-18 15:40:19 -05:00
2019-06-10 22:30:24 +02:00
2022-04-26 11:43:51 -04:00
2017-12-20 12:00:22 -05:00
2020-11-16 15:56:35 -05:00
2024-02-22 10:30:50 -05:00
2020-11-16 15:56:35 -05:00
2024-01-18 15:40:15 -05:00
2024-01-18 15:40:13 -05:00
2023-11-17 09:29:54 -05:00
2023-07-27 14:47:29 -04:00
2023-06-09 10:44:47 -04:00
2023-12-13 15:28:31 -05:00
2023-12-13 15:28:31 -05:00
2020-11-16 15:56:35 -05:00
2022-04-19 13:58:32 -04:00
2024-07-28 15:49:18 -07:00
2020-11-16 15:56:34 -05:00
2024-05-23 14:37:24 +03:00
2020-11-16 15:56:34 -05:00
2024-01-18 15:39:55 -05:00
2024-01-18 15:40:17 -05:00
2024-01-18 15:39:47 -05:00
2021-05-25 23:47:24 -04:00
2024-05-02 17:58:23 +02:00
2024-01-18 15:38:42 -05:00
2024-01-18 15:39:53 -05:00
2023-03-31 11:18:42 -04:00
2018-10-15 16:16:12 -05:00
2020-11-16 15:56:34 -05:00
2024-01-22 16:56:28 -05:00
2024-01-18 15:38:59 -05:00
2024-02-12 16:13:47 -05:00
2020-11-16 15:56:34 -05:00
2024-01-18 15:40:36 -05:00
2024-06-05 10:58:19 -04:00
2019-06-10 22:30:24 +02:00
2024-04-25 17:05:48 +03:00
2019-12-03 16:26:59 -05:00
2024-01-18 15:39:50 -05:00
2024-04-25 17:05:48 +03:00
2024-04-25 17:05:48 +03:00
2021-06-22 16:51:45 -04:00
2023-11-30 18:26:31 -05:00
2020-11-16 15:56:34 -05:00
2024-01-18 15:40:04 -05:00
2024-01-18 15:38:52 -05:00
2020-11-16 15:56:35 -05:00
2018-08-27 11:10:19 -05:00
2024-04-25 17:05:48 +03:00
2020-11-16 15:56:35 -05:00
2023-08-15 18:08:29 -04:00
2023-06-15 11:06:58 -04:00
2023-08-15 18:08:27 -04:00
2024-01-18 15:39:16 -05:00
2021-05-25 23:47:30 -04:00
2024-04-16 22:39:16 -04:00
2020-11-16 15:56:34 -05:00
2024-01-18 15:38:46 -05:00
2024-05-23 14:37:24 +03:00
2024-01-18 15:39:27 -05:00
2019-08-13 09:09:30 +02:00
2023-09-28 16:54:54 -05:00
2019-12-05 08:44:28 +01:00
2023-12-13 15:28:31 -05:00
2024-06-21 10:30:31 +10:00
2023-04-21 08:50:21 -04:00
2020-05-19 22:31:34 +01:00
2023-01-16 15:04:13 +10:00
2020-11-16 15:56:33 -05:00
2024-05-23 14:37:24 +03:00
2023-01-18 10:00:03 +01:00
2024-08-30 08:22:36 +02:00
2023-12-06 10:08:17 +01:00
2024-05-23 14:37:24 +03:00
2023-07-31 20:06:52 +02:00
2024-04-25 17:05:48 +03:00
2023-07-25 13:37:05 -04:00
2024-07-01 16:10:47 -04:00
2024-01-18 21:10:41 +01:00
2024-04-25 17:05:48 +03:00
2023-06-09 10:42:07 -04:00
2023-07-12 11:12:09 -04:00
2021-08-10 20:13:49 +02:00
2023-01-18 09:25:31 +01:00
2023-08-15 18:08:27 -04:00
2020-11-16 15:56:33 -05:00
2023-07-27 14:47:34 -04:00
2022-04-07 12:53:54 +02:00
2024-05-23 14:37:24 +03:00
2024-01-25 09:59:44 +01:00
2023-03-01 17:18:19 +01:00
2024-04-25 17:05:48 +03:00
2020-11-16 15:56:33 -05:00
2024-03-11 13:33:50 +01:00
2020-11-16 15:56:35 -05:00
2024-04-25 17:05:48 +03:00
2023-09-07 17:45:34 +02:00
2023-03-01 17:18:19 +01:00
2022-05-03 16:08:48 +10:00
2023-07-12 11:12:09 -04:00
2019-06-10 22:30:24 +02:00
2022-10-27 11:42:58 +02:00
2024-04-25 17:05:48 +03:00
2021-05-26 20:56:29 +02:00
2019-06-10 22:30:24 +02:00
2024-01-25 09:59:44 +01:00
2023-07-25 13:47:27 -04:00
2023-12-14 15:28:53 -05:00
2024-04-09 22:19:39 -04:00
2024-04-25 17:05:48 +03:00
2024-01-18 15:39:38 -05:00
2021-06-22 16:51:45 -04:00
2021-01-06 15:43:46 +01:00
2019-06-10 22:30:24 +02:00
2024-01-18 15:39:14 -05:00
2024-04-25 17:05:48 +03:00
2020-11-16 15:56:34 -05:00
2023-06-09 10:44:47 -04:00
2019-08-13 09:09:30 +02:00
2024-01-18 15:39:07 -05:00
2019-06-10 22:30:24 +02:00
2023-07-27 14:47:31 -04:00
2024-01-18 15:39:45 -05:00
2023-07-12 11:12:09 -04:00
2020-11-16 15:56:34 -05:00
2022-04-06 10:20:25 -04:00
2020-11-16 15:56:34 -05:00
2024-01-18 15:38:38 -05:00
2024-01-18 15:39:35 -05:00
2019-06-10 22:30:24 +02:00
2024-02-22 10:30:50 -05:00
2020-11-16 15:56:35 -05:00
2023-07-25 13:47:27 -04:00
2024-01-18 15:39:04 -05:00
2024-01-18 15:40:06 -05:00
2024-01-18 15:40:08 -05:00
2024-06-19 12:48:10 -04:00
2020-11-13 00:12:30 -05:00
2020-11-13 00:12:30 -05:00
2024-01-18 15:38:39 -05:00
2024-01-18 15:39:09 -05:00
2019-06-10 22:30:24 +02:00
2024-01-18 15:39:18 -05:00
2020-09-22 17:37:38 -04:00
2019-06-10 22:30:24 +02:00
2020-09-22 17:37:38 -04:00
2021-02-18 16:43:09 -05:00
2020-11-16 15:56:35 -05:00
2020-11-16 15:56:35 -05:00