Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp219663imm; Tue, 24 Jul 2018 17:38:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeUC/okxLGqPlK/xZF0d8/rKZEMDJJer1NU2L+BikH4MZOc+vIRWjUaVMdvsE0JF+BLxoXf X-Received: by 2002:a62:8389:: with SMTP id h131-v6mr19753105pfe.105.1532479121716; Tue, 24 Jul 2018 17:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532479121; cv=none; d=google.com; s=arc-20160816; b=xvrLiaT26yW5FHYM9PKum+ha46UgpJX4ccimQylkWvMKD3How7NEgK2Y99/avcjD0p O3ygdfY3w/B7dsxo+kTf53DQjZmqCBvfyjwNKW5RSndxJUJ/17nlvWM8B6J401k3FXME iO8qXt8+gwgVqCNaGVhM/2f22OgG2bp7aOPoMddo1UfC0Ji/JGgPuNpkaTWNy7CcHUXw AbkC25GVS4YSuL/eux+cGShl7ArYuCJOy1lsmPxgQRa8mwLgKLewyOyinFLnERhui8vy +KRKprgRQaIz3ewL2Kok5oarsKNb3K1SNoP3TeJbmz3dLucDgM9w9p3nfbhQOHH/gLFI X2RA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=oPgJZl4y9Of/Z/PzjVVkchUsAvpXd7VFB85l24ABxRs=; b=1FCMku+zYLtRLUaD+zA5Mw7IfC7lsiwyDrKtiGyT4pNnC74qgwPBxWunXpcEw66fuP Gb0dycC2qq5Cm5q2bHFsZVTtqTz4EfAgFTCHOQrwGyxU6Kw8Ua7lNx/lpBc+jT/8LxYr cnEc2Lu5T4T/F7U8gVrXKN4Mi8gOvQ/scOWiKodILHAJNWuGPB7G5jEb8uEQY9kLo9JX uUUAhMgOPvo/Qs30zrjqT6sMW+T/IhPqw0CRRH8NExt0CXusnyyglc8I6f5s53aa/JI8 mdrgbhER0YEybBsJ3OrjE/QbBENqmM59ISr3w4FVuG0DXeWCS+/IawJ9VuKlDMtQ1UsT bIIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=iRYFiLEk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a62-v6si12391171pge.262.2018.07.24.17.38.27; Tue, 24 Jul 2018 17:38:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=iRYFiLEk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388569AbeGYBql (ORCPT + 99 others); Tue, 24 Jul 2018 21:46:41 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:40704 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388472AbeGYBql (ORCPT ); Tue, 24 Jul 2018 21:46:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oPgJZl4y9Of/Z/PzjVVkchUsAvpXd7VFB85l24ABxRs=; b=iRYFiLEk+OHEIdfCxp1Kt3ArG 3bGz0PnHuaWE78i6WeB0FgMudmYE6jBcuyiVk15ECf/ea7iYvCJFp8uuj3HVnjRzp1YrroSJuT/bK X/EKWto09UMafvN+wYOkJkGmQL+aVMoTovfBplJWWgeLroz0of/qcquLeUpP/ZeyvZcGSv/q6AcGa oAUtgtpZAmlNQ11hi9FwJV2gT0dcUiuC1UjHFBrIT3hsNnPGonsjwAFxFKgedegBzL+YslJxABOuD Ci0WTL+C/LFrj4pYUy4J/s9Kl3LrCkcdkH6LLrXgV4KiQmXW44JJ32yxG5PTYkc2weySWtSikouaq wfU/wp2Rg==; Received: from 177.41.135.13.dynamic.adsl.gvt.net.br ([177.41.135.13] helo=coco.lan) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fi7o9-00047Q-9d; Wed, 25 Jul 2018 00:37:37 +0000 Date: Tue, 24 Jul 2018 21:37:33 -0300 From: Mauro Carvalho Chehab To: Dmitry Osipenko Cc: Hans Verkuil , Mauro Carvalho Chehab , linux-tegra@vger.kernel.org, linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] media: staging: tegra-vde: Replace debug messages with trace points Message-ID: <20180724213733.6c8b6b4b@coco.lan> In-Reply-To: <3929419.8vW2TRoUPb@dimapc> References: <20180707162049.20407-1-digetx@gmail.com> <20180724190652.2befcaf6@coco.lan> <3929419.8vW2TRoUPb@dimapc> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, 25 Jul 2018 01:38:37 +0300 Dmitry Osipenko escreveu: > On Wednesday, 25 July 2018 01:06:52 MSK Mauro Carvalho Chehab wrote: > > Em Sat, 7 Jul 2018 19:20:49 +0300 > > > > Dmitry Osipenko escreveu: > > > Trace points are much more efficient than debug messages for extensive > > > tracing and could be conveniently enabled / disabled dynamically, hence > > > let's replace debug messages with the trace points. > > > > This patch require some work: > > > > $ make ARCH=i386 CF=-D__CHECK_ENDIAN__ CONFIG_DEBUG_SECTION_MISMATCH=y C=1 > > W=1 CHECK='compile_checks' M=drivers/staging/media > > > > ./include/linux/slab.h:631:13: error: undefined identifier > > '__builtin_mul_overflow' ./include/linux/slab.h:631:13: warning: call with > > no type! > > fixdep: error opening file: drivers/staging/media/tegra-vde/trace.h: No such > > file or directory > > CHECK drivers/staging/media/tegra-vde/tegra-vde.c > /bin/sh: compile_checks: command not found > > Upstream kernel doesn't have "compile_checks" script and I can't find it > anywhere else. This is just a call for smatch/sparse: #!/bin/bash /devel/smatch/smatch -p=kernel $@ # This is too pedantic and produce lots of false-positives #/devel/smatch/smatch --two-passes -- -p=kernel $@ /devel/sparse/sparse $@ However, the problem here is that you're doing a 64 bits division. That causes compilation to break with 32 bits. you need to use do_div & friends. Thanks, Mauro