Ren Zhijie
c3b3389ad0
dma-mapping: Fix build error unused-value
...
commit 50d6281ce9 upstream.
If CONFIG_DMA_DECLARE_COHERENT is not set,
make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu- will be failed, like this:
drivers/remoteproc/remoteproc_core.c: In function ‘rproc_rvdev_release’:
./include/linux/dma-map-ops.h:182:42: error: statement with no effect [-Werror=unused-value]
#define dma_release_coherent_memory(dev) (0)
^
drivers/remoteproc/remoteproc_core.c:464:2: note: in expansion of macro ‘dma_release_coherent_memory’
dma_release_coherent_memory(dev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
The return type of function dma_release_coherent_memory in CONFIG_DMA_DECLARE_COHERENT area is void, so in !CONFIG_DMA_DECLARE_COHERENT area it should neither return any value nor be defined as zero.
Reported-by: Hulk Robot <hulkci@huawei.com >
Fixes: e61c451476 ("dma-mapping: Add dma_release_coherent_memory to DMA API")
Signed-off-by: Ren Zhijie <renzhijie2@huawei.com >
Reviewed-by: Christoph Hellwig <hch@lst.de >
Link: https://lore.kernel.org/r/20220630123528.251181-1-renzhijie2@huawei.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-01-25 14:37:50 -08:00
..
2022-04-08 14:40:02 +02:00
2022-12-19 12:27:32 +01:00
2023-08-30 16:23:11 +02:00
2023-11-08 17:30:47 +01:00
2023-06-28 10:28:13 +02:00
2023-01-14 10:15:58 +01:00
2023-05-17 11:47:36 +02:00
2023-11-20 11:06:52 +01:00
2023-11-28 16:54:55 +00:00
2023-12-08 08:46:16 +01:00
2022-08-21 15:16:16 +02:00
2023-10-10 21:53:38 +02:00
2022-08-31 17:15:17 +02:00
2023-12-13 18:26:57 +01:00
2023-06-05 09:07:02 +02:00
2023-06-28 10:28:08 +02:00
2023-09-23 11:01:05 +02:00
2023-01-14 10:15:11 +01:00
2023-11-28 16:54:53 +00:00
2023-09-19 12:20:23 +02:00
2023-09-23 11:01:05 +02:00
2023-10-10 21:53:33 +02:00
2023-09-19 12:20:28 +02:00
2022-03-11 12:11:52 +01:00
2022-10-26 13:25:35 +02:00
2022-04-08 14:40:44 +02:00
2022-07-29 17:19:25 +02:00
2022-08-21 15:15:45 +02:00
2022-04-08 14:39:55 +02:00
2023-05-17 11:47:32 +02:00
2022-01-27 10:54:08 +01:00
2022-08-21 15:15:36 +02:00
2023-03-11 16:40:15 +01:00
2022-11-16 09:57:09 +01:00
2023-07-27 08:43:37 +02:00
2023-10-10 21:53:37 +02:00
2023-10-10 21:53:35 +02:00
2022-09-15 11:32:02 +02:00
2022-07-21 21:20:00 +02:00
2023-10-10 21:53:33 +02:00
2024-01-25 14:37:49 -08:00
2023-08-30 16:23:19 +02:00
2022-01-27 10:54:05 +01:00
2022-10-15 07:55:51 +02:00
2022-10-15 07:55:51 +02:00
2022-10-15 07:55:51 +02:00
2022-04-08 14:40:45 +02:00
2023-08-16 18:21:00 +02:00
2023-12-13 18:26:56 +01:00
2023-08-30 16:23:17 +02:00
2023-12-20 15:44:30 +01:00
2023-01-14 10:15:19 +01:00
2023-01-14 10:16:31 +01:00
2023-12-08 08:46:15 +01:00
2023-05-30 12:57:45 +01:00
2024-01-25 14:37:50 -08:00
2022-05-25 09:17:55 +02:00
2022-10-26 13:25:34 +02:00
2023-01-14 10:16:50 +01:00
2023-01-04 11:39:22 +01:00
2023-01-04 11:39:18 +01:00
2023-07-27 08:43:39 +02:00
2023-09-19 12:20:06 +02:00
2022-07-12 16:32:18 +02:00
2023-01-04 11:39:17 +01:00
2023-01-04 11:39:18 +01:00
2022-06-09 10:20:49 +02:00
2022-01-20 09:17:49 +01:00
2023-12-08 08:46:15 +01:00
2022-11-10 18:14:25 +01:00
2022-02-01 17:25:48 +01:00
2023-04-20 12:10:23 +02:00
2023-12-08 08:46:08 +01:00
2023-01-14 10:16:42 +01:00
2023-12-13 18:26:56 +01:00
2023-02-22 12:55:56 +01:00
2022-05-30 09:33:36 +02:00
2023-01-14 10:16:13 +01:00
2023-11-20 11:06:56 +01:00
2023-09-19 12:20:22 +02:00
2023-10-10 21:53:28 +02:00
2023-12-20 15:44:28 +01:00
2023-03-11 16:40:00 +01:00
2023-07-27 08:43:37 +02:00
2022-09-28 11:10:35 +02:00
2023-01-14 10:15:58 +01:00
2023-01-04 11:39:23 +01:00
2023-08-26 15:26:43 +02:00
2023-10-25 11:54:20 +02:00
2022-10-26 13:25:42 +02:00
2023-10-25 11:54:14 +02:00
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:08 +01:00
2022-06-14 18:32:44 +02:00
2023-11-08 17:30:43 +01:00
2023-03-11 16:39:19 +01:00
2023-06-21 15:45:35 +02:00
2023-04-20 12:10:29 +02:00
2024-01-05 15:12:25 +01:00
2022-08-21 15:16:08 +02:00
2023-03-11 16:39:59 +01:00
2023-06-21 15:45:35 +02:00
2022-10-30 09:41:15 +01:00
2023-10-10 21:53:35 +02:00
2022-08-21 15:15:33 +02:00
2023-11-28 16:55:00 +00:00
2022-06-09 10:21:09 +02:00
2022-06-09 10:21:18 +02:00
2023-01-14 10:16:44 +01:00
2022-12-14 11:31:59 +01:00
2023-10-25 11:54:15 +02:00
2022-01-05 12:40:29 +01:00
2022-02-23 12:00:56 +01:00
2022-07-12 16:32:18 +02:00
2023-08-26 15:26:48 +02:00
2022-08-21 15:15:21 +02:00
2022-05-15 20:00:09 +02:00
2023-09-02 09:18:12 +02:00
2023-01-04 11:39:16 +01:00
2023-01-04 11:39:24 +01:00
2022-05-18 10:23:42 +02:00
2023-11-20 11:06:46 +01:00
2023-06-21 15:45:38 +02:00
2023-06-21 15:45:38 +02:00
2022-04-13 21:01:03 +02:00
2023-10-10 21:53:24 +02:00
2023-03-11 16:39:38 +01:00
2023-09-19 12:20:04 +02:00
2023-07-27 08:43:40 +02:00
2022-06-14 18:32:45 +02:00
2023-02-25 11:55:03 +01:00
2023-04-05 11:23:36 +02:00
2023-05-17 11:47:51 +02:00
2023-02-22 12:55:54 +01:00
2023-08-26 15:26:57 +02:00
2022-09-23 14:16:58 +02:00
2023-04-05 11:23:34 +02:00
2024-01-25 14:37:40 -08:00
2022-10-26 13:25:23 +02:00
2023-11-20 11:06:44 +01:00
2023-11-20 11:06:52 +01:00
2023-11-08 17:30:51 +01:00
2023-07-27 08:43:56 +02:00
2023-12-13 18:27:04 +01:00
2023-07-27 08:43:58 +02:00
2023-07-27 08:43:31 +02:00
2023-11-08 17:30:47 +01:00
2022-07-12 16:32:18 +02:00
2023-08-11 11:57:55 +02:00
2023-05-17 11:47:31 +02:00
2023-06-05 09:07:03 +02:00
2022-05-30 09:33:43 +02:00
2023-05-17 11:48:19 +02:00
2023-01-14 10:15:28 +01:00
2022-02-05 12:37:55 +01:00
2022-02-05 12:37:55 +01:00
2022-04-08 14:39:56 +02:00
2022-06-09 10:20:49 +02:00
2023-11-28 16:54:53 +00:00
2023-10-25 11:54:13 +02:00
2023-10-25 11:54:13 +02:00
2023-08-30 16:23:18 +02:00
2023-07-27 08:44:13 +02:00
2023-02-25 11:55:02 +01:00
2022-06-29 08:59:44 +02:00
2024-01-25 14:37:46 -08:00
2022-11-25 17:45:49 +01:00
2022-09-05 10:28:56 +02:00
2023-11-08 17:30:47 +01:00
2022-07-12 16:32:22 +02:00
2023-08-30 16:23:18 +02:00
2022-06-09 10:21:09 +02:00
2023-10-10 21:53:28 +02:00
2023-07-27 08:44:31 +02:00
2022-11-10 18:14:14 +01:00
2023-03-22 13:30:02 +01:00
2022-05-30 09:33:43 +02:00
2023-04-26 11:27:35 +02:00
2022-09-05 10:28:56 +02:00
2023-01-04 11:39:17 +01:00
2022-11-25 17:45:54 +01:00
2023-02-22 12:55:53 +01:00
2023-06-21 15:45:35 +02:00
2022-02-16 12:54:22 +01:00
2023-01-04 11:39:23 +01:00
2023-06-28 10:28:09 +02:00
2023-01-04 11:39:23 +01:00
2023-07-27 08:44:43 +02:00
2022-03-02 11:42:47 +01:00
2022-06-09 10:21:11 +02:00
2023-05-17 11:47:32 +02:00
2023-01-14 10:15:16 +01:00
2022-05-30 09:33:41 +02:00
2022-03-08 19:09:34 +01:00
2023-01-18 11:44:52 +01:00
2023-11-28 16:55:02 +00:00
2023-01-04 11:39:22 +01:00
2023-03-22 13:30:03 +01:00
2022-07-29 17:19:28 +02:00
2023-05-17 11:48:09 +02:00
2022-08-25 11:38:14 +02:00
2023-03-11 16:39:51 +01:00
2023-01-04 11:39:16 +01:00
2023-02-01 08:23:23 +01:00
2023-12-08 08:46:15 +01:00
2023-02-15 17:22:10 +01:00
2022-08-21 15:16:07 +02:00
2022-03-16 14:16:02 +01:00
2023-08-26 15:26:53 +02:00
2022-03-16 14:16:01 +01:00
2023-05-17 11:47:56 +02:00
2022-08-21 15:15:29 +02:00
2022-03-16 14:16:03 +01:00
2023-12-08 08:46:13 +01:00