Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5293615imm; Tue, 31 Jul 2018 08:33:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc9Si1+Hpveh2ioRynGDET17TJUBPwUAfkKdFvHr90iOxWDOxYNBXh93pfV4xBbeMMjc5u8 X-Received: by 2002:a17:902:7106:: with SMTP id a6-v6mr21454837pll.28.1533051238682; Tue, 31 Jul 2018 08:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533051238; cv=none; d=google.com; s=arc-20160816; b=aDJrhRKCKCBZSQvr6vfV3NVzCccZz6lTgVKzZNKJqXm8i1kkh8OUWGK/zlDMOd3VJR 6Gl1vOsFKOoi7FfYaxMRETw3YA7P+4OnNTMHtXI1XQCwN0BmigTPWAtJCVVnkGSeKNFc VFnwVXFnHxllTypqXMj+/Lr6/n8COU428bqxf8ncMC4oQamaKw3iH61jbDqv+65aq9I+ tm8DGnfnaA8UdWyFXdabOPTpCuUjKhEnE+tIl8lQJy9Q9Wf4QG5/emD6LC3wKw/WTPBp nrNX1t7aiX89ACOZo6Ma9MEyF7jPc6jqq0yB5wPNOQ/fy+T5U8poNEnFMI7NhP9sICib KXeQ== 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:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=/dgRG+yFP0KMGios3G0rp8jmG803soLS1lB3z+Hq8Tc=; b=eMejbNXC+o6q4d9X19Ar+WEt/WbhwySsDRRCKdh0vwgm50Oc0Faojh4dpoNJZJGWPL XuiiskWCWPvMxPe5sUOqqfXDnmiDabcgCMqDPvTF8C1vUOd8Ve6R8IPdx4ODCPLLenFP fGZYJ8nRyDQepwxEPGJb233N/Jac7TjZChGXVAvi+nuV8VyLILbsTOlELnbbv9zkW/NI F3mdjrmYyDY9RioKl6LpZB484rmBCDXL9UiZ4fBQo2hg8tZ60/0B0GAle3Nc/lJ+pAko IqHmV0Eun7rD8yV8hkX5d18P9bbP9yyXWQTsADfaLn0B0nDbYWvnoTwgLxxxVxRLYElf fZAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ufczw9ZV; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9-v6si7901347pll.138.2018.07.31.08.33.43; Tue, 31 Jul 2018 08:33:58 -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=pass header.i=@gmail.com header.s=20161025 header.b=ufczw9ZV; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732485AbeGaRNe (ORCPT + 99 others); Tue, 31 Jul 2018 13:13:34 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:39018 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732448AbeGaRNd (ORCPT ); Tue, 31 Jul 2018 13:13:33 -0400 Received: by mail-ed1-f67.google.com with SMTP id h4-v6so5530690edi.6; Tue, 31 Jul 2018 08:32:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/dgRG+yFP0KMGios3G0rp8jmG803soLS1lB3z+Hq8Tc=; b=ufczw9ZVHKw5M2IOZdWRmBLZ01rB0+E8Pk+eEJg6A8c2j4KuSeRlQZd7/a27NQI9hf /OeeQ03p0z7cm7IUD5NvUrUM0eFpa1jYXMUh/zrPUoPhYZRKbjfHaL7ae+nH5eillwJL SyFoOTv0vuLLbI7ke+4+3DrnvpkzTStyZNJqlxnsnGNsY+0zQHi9pgKjt8TAmaiIuHNs U+IwNRIH6ci33mNOnuDHkmVlSUwaqM5EPh9KRLCZpNNyYjmR/JsFxl0sj0UwqjxW0LyF BJCABw6xLv7JvOl7j4ElDguAXEJM0BKZiyQALLgChGFIDOcTiM5kFfTxwJp0VX8xNyCC Kx0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/dgRG+yFP0KMGios3G0rp8jmG803soLS1lB3z+Hq8Tc=; b=I29ftsO6yz/E2w/xYyMT4RDb9+xzdmCuVM9oR3XQ4x20lZhtPtQv2fRaE1v7FvbzH/ tsdcIPu97yU1Swv6zu+VyF6fekiog8GLn6s/IHF5v84+iNleW/MoqVGU0+3q7t1+DMNQ XW8k3DYnLszLeKWbC3DWA/iL09cJIGjXuS2EzpoHzd/E8FntGnH0ex+jwdCQi1hp1raJ x0lcUAXkKLZ6xzNCvf0lrZW5RO52swiFYp8LupDVH4s4mlASFrPjaJWZD+1tHovxp6iT 0T363ohImu5sg8dBL0jjQkX9+MTTbFktoMAG/7zk4WtlOLZ50ch/vmHuwDHkDDq1BTHb RnqQ== X-Gm-Message-State: AOUpUlFjo3qMXyFFjJGE610BUQschvFDV8Lntyl++TD18Kzo4uvTKCUw v+DmVlU9n6qZEQAa6VvdaBE= X-Received: by 2002:a50:b6e3:: with SMTP id f32-v6mr156223ede.147.1533051160991; Tue, 31 Jul 2018 08:32:40 -0700 (PDT) Received: from dimapc.localnet (109-252-90-13.nat.spd-mgts.ru. [109.252.90.13]) by smtp.gmail.com with ESMTPSA id s41-v6sm7878210edd.61.2018.07.31.08.32.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 08:32:40 -0700 (PDT) From: Dmitry Osipenko To: Mauro Carvalho Chehab , Hans Verkuil Cc: 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 Date: Tue, 31 Jul 2018 18:32:38 +0300 Message-ID: <5286387.GJUI5Hs7VI@dimapc> In-Reply-To: <1779889.gZoAajBteF@dimapc> References: <20180707162049.20407-1-digetx@gmail.com> <20180724213733.6c8b6b4b@coco.lan> <1779889.gZoAajBteF@dimapc> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, 25 July 2018 04:20:29 MSK Dmitry Osipenko wrote: > On Wednesday, 25 July 2018 03:37:33 MSK Mauro Carvalho Chehab wrote: > > 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. > > The tegra-vde driver code is fine, it is a known issue with the kernels > checker [0]. Unfortunately the patch for the checker haven't been applied > yet. > > [0] https://www.spinics.net/lists/kernel/msg2824058.html Mauro, are you going to un-reject patch [0] and apply it or there is some action needed from my side now? [0] https://patchwork.linuxtv.org/patch/51002/