* [PATCH 1/2] media: atomisp: get rid of a left-over wrapper function @ 2020-05-31 9:40 Mauro Carvalho Chehab 2020-05-31 9:40 ` [PATCH 2/2] media: atomisp comment an unused code Mauro Carvalho Chehab 0 siblings, 1 reply; 2+ messages in thread From: Mauro Carvalho Chehab @ 2020-05-31 9:40 UTC (permalink / raw) Cc: Mauro Carvalho Chehab, Sakari Ailus, Greg Kroah-Hartman, linux-media, devel, linux-kernel, kbuild test robot The abstraction layer for kvfree() was removed, but there is still a left-over code there. Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> --- drivers/staging/media/atomisp/pci/sh_css.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/sh_css.c b/drivers/staging/media/atomisp/pci/sh_css.c index 9c754e29fa00..9f3e421cd717 100644 --- a/drivers/staging/media/atomisp/pci/sh_css.c +++ b/drivers/staging/media/atomisp/pci/sh_css.c @@ -1861,14 +1861,6 @@ ia_css_enable_isys_event_queue(bool enable) { return 0; } -void sh_css_free(void *ptr) -{ - if (is_vmalloc_addr(ptr)) - vfree(ptr); - else - kfree(ptr); -} - /* For Acceleration API: Flush FW (shared buffer pointer) arguments */ void sh_css_flush(struct ia_css_acc_fw *fw) -- 2.26.2 ^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2/2] media: atomisp comment an unused code 2020-05-31 9:40 [PATCH 1/2] media: atomisp: get rid of a left-over wrapper function Mauro Carvalho Chehab @ 2020-05-31 9:40 ` Mauro Carvalho Chehab 0 siblings, 0 replies; 2+ messages in thread From: Mauro Carvalho Chehab @ 2020-05-31 9:40 UTC (permalink / raw) Cc: Mauro Carvalho Chehab, Sakari Ailus, Greg Kroah-Hartman, linux-media, devel, linux-kernel, clang-built-linux, kbuild test robot There's a different table for some BYT variants that depend on something inside a FIXME ifdef. Place this also inside it, just to shut up a clang-11 warning. Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> --- drivers/staging/media/atomisp/pci/atomisp_v4l2.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c index 094a2886bd62..5ac63c77570a 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c +++ b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c @@ -392,6 +392,13 @@ static const struct atomisp_freq_scaling_rule dfs_rules_byt_cr[] = { }, }; +#ifdef FIXME +/* + * Disable this, as it is used only when this is true: + * INTEL_MID_BOARD(3, TABLET, BYT, BLK, PRO, CRV2) || + * INTEL_MID_BOARD(3, TABLET, BYT, BLK, ENG, CRV2)) + * However, the original code is commented + */ static const struct atomisp_dfs_config dfs_config_byt_cr = { .lowest_freq = ISP_FREQ_200MHZ, .max_freq_at_vmin = ISP_FREQ_320MHZ, @@ -399,6 +406,7 @@ static const struct atomisp_dfs_config dfs_config_byt_cr = { .dfs_table = dfs_rules_byt_cr, .dfs_table_size = ARRAY_SIZE(dfs_rules_byt_cr), }; +#endif static const struct atomisp_freq_scaling_rule dfs_rules_cht[] = { { -- 2.26.2 ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-31 9:40 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-05-31 9:40 [PATCH 1/2] media: atomisp: get rid of a left-over wrapper function Mauro Carvalho Chehab 2020-05-31 9:40 ` [PATCH 2/2] media: atomisp comment an unused code Mauro Carvalho Chehab
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®