From patchwork Tue Aug 1 07:14:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 709936 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57144C001DF for ; Tue, 1 Aug 2023 07:16:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230193AbjHAHP7 (ORCPT ); Tue, 1 Aug 2023 03:15:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230062AbjHAHP5 (ORCPT ); Tue, 1 Aug 2023 03:15:57 -0400 Received: from mgamail.intel.com (unknown [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28231173F for ; Tue, 1 Aug 2023 00:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690874157; x=1722410157; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=C7RocjlOO7HRdVv15FaWLBIcdaN3iWcPJbeCLxrTYZA=; b=m8rzpuH7XKl6LdPxuv8SPb0RjTkUtHbnLwYzEYQmRRl7Q/H6j1rzGrK4 3XhQsiRzr2aJXhMlY/xqM4sCDom/62/F8zznw/8l6DC5hpQ5oTLfDoaoG zimV8VEajIfhXfDoG5AvM7iojK0ErGfMhWtYNdENlAzPfkGlwKfp01X8x aGpL8TZEU+e20R5sm43Ab/klfnBmCpUbb60G3yMVuzuAcHxSuHu8RQo9d Zuq+PbnrE/IZGwe2kuSh1aaMUU5PD7v+9XXE6KCPkji0AOPi0QQqVlaKI H00ayYGR4G+3fTvfrH0JxVAAr1zsxCWeMeQsR4mmVaBASTjwF9nwNZ0/M Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="354150381" X-IronPort-AV: E=Sophos;i="6.01,246,1684825200"; d="scan'208";a="354150381" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 00:15:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="763647417" X-IronPort-AV: E=Sophos;i="6.01,246,1684825200"; d="scan'208";a="763647417" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 00:15:54 -0700 Received: from punajuuri.localdomain (punajuuri.localdomain [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id AD8BC11F863; Tue, 1 Aug 2023 10:15:51 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.96) (envelope-from ) id 1qQjaQ-00DrAX-09; Tue, 01 Aug 2023 10:14:30 +0300 From: Sakari Ailus To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl Subject: [PATCH 1/2] media: ccs-pll: Initialise best_div to avoid a compiler warning Date: Tue, 1 Aug 2023 10:14:29 +0300 Message-Id: <20230801071430.3302630-2-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230801071430.3302630-1-sakari.ailus@linux.intel.com> References: <20230801071430.3302630-1-sakari.ailus@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Initialise best_div local variable to avoid a compiler warning. The warning was harmless though. Reported-by: Hans Verkuil Signed-off-by: Sakari Ailus --- drivers/media/i2c/ccs-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/ccs-pll.c b/drivers/media/i2c/ccs-pll.c index fcc39360cc50..cf8858cb13d4 100644 --- a/drivers/media/i2c/ccs-pll.c +++ b/drivers/media/i2c/ccs-pll.c @@ -296,7 +296,7 @@ __ccs_pll_calculate_vt_tree(struct device *dev, struct ccs_pll_branch_fr *pll_fr = &pll->vt_fr; struct ccs_pll_branch_bk *pll_bk = &pll->vt_bk; u32 more_mul; - u16 best_pix_div = SHRT_MAX >> 1, best_div; + u16 best_pix_div = SHRT_MAX >> 1, best_div = lim_bk->max_sys_clk_div; u16 vt_div, min_sys_div, max_sys_div, sys_div; pll_fr->pll_ip_clk_freq_hz = From patchwork Tue Aug 1 07:14:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 709061 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86CFCC41513 for ; Tue, 1 Aug 2023 07:15:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230159AbjHAHP6 (ORCPT ); Tue, 1 Aug 2023 03:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjHAHP5 (ORCPT ); Tue, 1 Aug 2023 03:15:57 -0400 Received: from mgamail.intel.com (unknown [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE0E3173D for ; Tue, 1 Aug 2023 00:15:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690874156; x=1722410156; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=e1FsYnCQub5yUOF9m+JkrOk6M+bBYhYeUClfCR9nkDA=; b=XFGI9Zha6hn+WKoZOPj7kgaCofD0oQVU0KJNI9UxT0XUmb7onkrOvVex aKuGTIZmBfeAjQ0hGFPOulVaJKlBsnAdGmT9fH/VX7sMeA3iZL+/PlvdZ lPsG5aN9QG1cDR+ImfEr2qj6HcA2GWBUZyzkak1IrI1as6Azt3M6Y3N30 /c/M48rStP+btGVECzkdYsuHpko2RpIxDMVa1sHqeKPJoYkz6pFwnYlde s4Fu1n+0ZaFmQAwckBangR42YyRPqMqFCHb4tXeh4OpQYNB1BlBx4dopT iOAByYhxhHvp9w0+VmGDl5Q6C9xh8sfpEbehQId5ZlXamKIN3pDBcOLsQ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="354150379" X-IronPort-AV: E=Sophos;i="6.01,246,1684825200"; d="scan'208";a="354150379" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 00:15:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="763647416" X-IronPort-AV: E=Sophos;i="6.01,246,1684825200"; d="scan'208";a="763647416" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 00:15:54 -0700 Received: from punajuuri.localdomain (punajuuri.localdomain [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id B11F211F9B6; Tue, 1 Aug 2023 10:15:51 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.96) (envelope-from ) id 1qQjaQ-00DrAb-0E; Tue, 01 Aug 2023 10:14:30 +0300 From: Sakari Ailus To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl Subject: [PATCH 2/2] media: pci: ipu3-cio2: Initialise timing struct to avoid a compiler warning Date: Tue, 1 Aug 2023 10:14:30 +0300 Message-Id: <20230801071430.3302630-3-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230801071430.3302630-1-sakari.ailus@linux.intel.com> References: <20230801071430.3302630-1-sakari.ailus@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Initialise timing struct in cio2_hw_init() to zero in order to avoid a compiler warning. The warning was a false positive. Reported-by: Hans Verkuil Signed-off-by: Sakari Ailus --- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/intel/ipu3/ipu3-cio2.c b/drivers/media/pci/intel/ipu3/ipu3-cio2.c index 4ebab0a95f35..8df0304c991e 100644 --- a/drivers/media/pci/intel/ipu3/ipu3-cio2.c +++ b/drivers/media/pci/intel/ipu3/ipu3-cio2.c @@ -355,7 +355,7 @@ static int cio2_hw_init(struct cio2_device *cio2, struct cio2_queue *q) void __iomem *const base = cio2->base; u8 lanes, csi2bus = q->csi2.port; u8 sensor_vc = SENSOR_VIR_CH_DFLT; - struct cio2_csi2_timing timing; + struct cio2_csi2_timing timing = { 0 }; int i, r; fmt = cio2_find_format(NULL, &q->subdev_fmt.code);