Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp420356pxk; Wed, 9 Sep 2020 08:44:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZ1FnfZDxXrGb2BLRz3LXAxUcFAVxvLiZzQGdjNTu/SxB3Elu/yR6wZMuE69eHF0dnfFiv X-Received: by 2002:a17:906:f897:: with SMTP id lg23mr4538643ejb.89.1599666240181; Wed, 09 Sep 2020 08:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599666240; cv=none; d=google.com; s=arc-20160816; b=sEAiVFxA1I+Gf6wu+GmvK0pMcOzSUStshu++djO9EqhGgHwL16MV46KgsGf7ovcH0B CUnTB1WsKcWUcNVdZGHz9b3E6WTxbZeyizdwx/fgklA8gl4mR/bAQKF2l99HqUp6MUZK BBogODAsQNcpt7vzsLsv8Eftpc+PTory7l/MfYww8xDAXiD+sU8KyLqutSn7+r8k6OxG vXALRXlDk84sIFVO9yf0GlQuPHrRhU1PLf/AzcwEj5xqccT0/r9oHxJe0EUxrDQlRnXj XCJq1Nc3N+UruelvwMjPqTVua8lvPfS2Elmz32VUy2gX7oYpcphLSU9VAfhX9d3L0zPC kvTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=g8egoIz2ZUmaeE65Jxm0f9W5idg8Q5BtXcI+RBXWMU4=; b=BvR2iqaJPvzfm8p0A/n0YvPL088t1lC950mobEy9zVcLlhZBPV4fdz4YHaaVHjTBN5 XZKVmdXXECK3jZLKJ0sU3Rs1urOfpJONkZ+KqkR/8+o8M+Vcf2yk4Dls/tvXMAGsFiRM Pq+fG2g30qrLLWs91nw9TkNZn2Mu221fX7OAEeSIz2PL6puYIfa+wcqhX2WLi7l0SPWz YhS0h3dBB8ZHbqInzxpMrQj9bZK+iyEFDsvUBrGDlPZ8MNIEjhV8P07iUw0vhg8NZJbr gFrhmaiA4pIm9DAmdlO9hmOWAX3AqYNoIwHiBgEiaETzH9SFOZ2lsFEWMf3ySWe4EpQT EZkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a5si1775098edx.243.2020.09.09.08.43.35; Wed, 09 Sep 2020 08:44:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730243AbgIIPmN (ORCPT + 99 others); Wed, 9 Sep 2020 11:42:13 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:50114 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730338AbgIIPlS (ORCPT ); Wed, 9 Sep 2020 11:41:18 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id C12855395AE5A1A21A3C; Wed, 9 Sep 2020 21:39:38 +0800 (CST) Received: from localhost (10.174.179.108) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Wed, 9 Sep 2020 21:39:30 +0800 From: YueHaibing To: CC: , , YueHaibing Subject: [PATCH -next] media: av7110_v4l: Fix build error Date: Wed, 9 Sep 2020 21:38:44 +0800 Message-ID: <20200909133844.6812-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.108] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drivers/media/pci/ttpci/av7110_v4l.c: In function ‘vidioc_s_frequency’: drivers/media/pci/ttpci/av7110_v4l.c:163:11: error: SSE register return with SSE disabled if (freq < 16U * 168.25) ~~~~~^~~~~~~~~~~~~~ Get rid of float pointing math to fix this. Fixes: 13c129066845 ("media: av7110_v4l: avoid a typecast") Signed-off-by: YueHaibing --- drivers/media/pci/ttpci/av7110_v4l.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/pci/ttpci/av7110_v4l.c b/drivers/media/pci/ttpci/av7110_v4l.c index 6d9c908be713..ba745b161cba 100644 --- a/drivers/media/pci/ttpci/av7110_v4l.c +++ b/drivers/media/pci/ttpci/av7110_v4l.c @@ -160,9 +160,9 @@ static int ves1820_set_tv_freq(struct saa7146_dev *dev, u32 freq) buf[1] = div & 0xff; buf[2] = 0x8e; - if (freq < 16U * 168.25) + if (freq < (16 * 16825) / 100) config = 0xa0; - else if (freq < 16U * 447.25) + else if (freq < (16 * 44725) / 100) config = 0x90; else config = 0x30; -- 2.17.1