All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: atomisp: fix `-Werror=return-type`
@ 2021-10-02 23:17 Ammar Faizi
  2021-10-03 16:19 ` Pavel Skripkin
  2021-10-04  9:05 ` Dan Carpenter
  0 siblings, 2 replies; 8+ messages in thread
From: Ammar Faizi @ 2021-10-02 23:17 UTC (permalink / raw)
  To: Mauro Carvalho Chehab
  Cc: Ammar Faizi, Pavel Skripkin, Sakari Ailus, linux-media,
	linux-staging, linux-kernel, Bedirhan KURT

Bedirhan reported build error:
```
  drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c: In function ‘input_system_configure_channel_sensor’:
  drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c:1649:1: error: control reaches end of non-void function [-Werror=return-type]
   1649 | }
        | ^
  cc1: some warnings being treated as errors
  make[4]: *** [scripts/Makefile.build:277: drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.o] Error 1
  make[3]: *** [scripts/Makefile.build:540: drivers/staging/media/atomisp] Error 2
  make[2]: *** [scripts/Makefile.build:540: drivers/staging/media] Error 2
  make[1]: *** [scripts/Makefile.build:540: drivers/staging] Error 2
  make: *** [Makefile:1868: drivers] Error 2
```

Commit 264f590899146baa19e0ab5689e55fadbc292333 ("media: atomisp:
remove useless returns") incorrectly removed a required return results
in the above build error. Reinstate it.

Cc: Pavel Skripkin <paskripkin@gmail.com>
Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: linux-media@vger.kernel.org
Cc: linux-staging@lists.linux.dev
Cc: linux-kernel@vger.kernel.org
Reported-by: Bedirhan KURT <windowz414@gnuweeb.org>
Fixes: 264f590899146baa19e0ab5689e55fadbc292333 ("media: atomisp: remove useless returns")
Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id>
---
 .../media/atomisp/pci/hive_isp_css_common/host/input_system.c    | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c
index 8e085dda0c18..1bd917e81743 100644
--- a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c
+++ b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c
@@ -1646,6 +1646,7 @@ static input_system_err_t input_system_configure_channel_sensor(
 	default:
 		return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED;
 	}
+	return INPUT_SYSTEM_ERR_NO_ERROR;
 }
 
 // Test flags and set structure.
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-10-04 14:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-02 23:17 [PATCH] media: atomisp: fix `-Werror=return-type` Ammar Faizi
2021-10-03 16:19 ` Pavel Skripkin
2021-10-03 23:24   ` Ammar Faizi
2021-10-03 23:24     ` Ammar Faizi
2021-10-04  9:05 ` Dan Carpenter
2021-10-04 14:11   ` Ammar Faizi
2021-10-04 14:11     ` Ammar Faizi
2021-10-04 14:41     ` Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.