Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2762766pxv; Sun, 25 Jul 2021 04:51:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqGQVY4amGA6W1xjf0ioWaoqg2tT9cGxCi6MoA4COBrkcweege+A4ahXUSsUyEQFViJNbo X-Received: by 2002:a6b:ef19:: with SMTP id k25mr3553839ioh.42.1627213915337; Sun, 25 Jul 2021 04:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627213915; cv=none; d=google.com; s=arc-20160816; b=liL41yJ10UoAVmHhOrurCfXCw5JLMq0OtTT2reXdNR725oxK38XlUcciKQnlPfCP1R G1dcogeB/KWPUrmFv0gQ+SQ31kiTJyJDbhOcg2eq1mM8VUV1ZUBrGgKjaGIO9ztA7NMM 8yUUw0ACM+Dq1vKSX9ULnHchAFlhiR9L0f7ZYpbkr7JqewIouNjHskbi8/BIu4kbpl0/ RxYFhBZ78wSMsKNwm2atOGuybFk4VLVEcilOG6IM2vnOtQqoS0NrgJY/rUjRYwrAzMY6 ZBFMkRo5JCEO4eV+6IyYHm+D+IYCXLSfp7qgfhBv4iAxrOjldbiR3zvwoTPTj1P1Qy47 3YIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=4bsJHCDmDh2MLKgv8Kwe4Fjj1ivOjmIJSIAwlKwlLkI=; b=RFfn4qfOpg8uY/ABS7nWi1yTBH4r89RYEdz6H+SKWvS1Et5OxqnFX5gAeXqknJz2Q8 n23z5FqzYbJVj0yTJCqRugn6nSTIXlukcgS0pfwDl02uOit2/l6zEn/2s948tPGdQK9R V2b1GEBJZtEpVdkslP9vKKZE8JyZZ8wjZlbFHne65Y5aP3U2JfgSYKsTj2lThsvLmVXO taaGYyGYAZkOZh6+cHgbFBMYW42xQEwFKHMLDTDqUiDX/Jb9GKoUkmVzw79kfj7SiJh6 CYf0w3jgyHFWY569b+t1jSW+S9FcINF9Q3PkvlUHGRNm7VHCWSA7Jmwx++XJgd4Oxfkx uAoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=WoW4LcGx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h41si18009341jaa.50.2021.07.25.04.51.09; Sun, 25 Jul 2021 04:51:55 -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; dkim=pass header.i=@chrisdown.name header.s=google header.b=WoW4LcGx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230075AbhGYLD2 (ORCPT + 99 others); Sun, 25 Jul 2021 07:03:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbhGYLD2 (ORCPT ); Sun, 25 Jul 2021 07:03:28 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BD87C061757 for ; Sun, 25 Jul 2021 04:43:57 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id h24-20020a1ccc180000b029022e0571d1a0so4408852wmb.5 for ; Sun, 25 Jul 2021 04:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4bsJHCDmDh2MLKgv8Kwe4Fjj1ivOjmIJSIAwlKwlLkI=; b=WoW4LcGxpUFcaRqv+uBN+5ANNeK5KZ4D5aqz+SglUxUqCZiL8L7HLll5B95YufnrXO 7/Zi8/ULjqzAmgYIgjJb3JCqaLnVpz6H0imjzyw7Gkt4VEb8w8cr+/yxvh21z4+Toedw YE9vfnhKCiTyJXP9bBgeD2bUSTk2XFeqJ8XNw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=4bsJHCDmDh2MLKgv8Kwe4Fjj1ivOjmIJSIAwlKwlLkI=; b=dJxYZPYyVFb2Et8PKtdyFshNPLmRN5vFA+V5LnwhX6Pv/oAeCdvRWUkNMq1nDQzOYq wnEpbcByf46eery6moCnFSnsVf4Za4eLDRoLOc1JDHei+/jHAjOzl3npl68n5h6132SS iJ9I9TJWC11uP8Xi2t+Hu3C3D5cELtan4dNAHz34Dqf67VSVtel9pGqausyyDZ7OcZ7W pP9xE6g2iTFer8O/+ghobNFwlFXPRR9Gl8FQ6NgbYTcAMHMOFtkZxljZ1Hdy66jPdoh7 cX8CwYmCV/NA/ktL5Oiwy3VKT6R6dYwEsd1lj9KgqvqZHsqtjgk0vVic1/xFR5EvEB+E 4naA== X-Gm-Message-State: AOAM531zKdspkmQeBb9A6XRYIvEWeIRWkapqa9cUtiQNDvauXx5lBWmi GNbR+16VFek5GSRfn0NRs9gpgQ== X-Received: by 2002:a1c:1bd0:: with SMTP id b199mr12562635wmb.108.1627213435630; Sun, 25 Jul 2021 04:43:55 -0700 (PDT) Received: from localhost ([2620:10d:c093:400::5:d571]) by smtp.gmail.com with ESMTPSA id x15sm175461wrs.57.2021.07.25.04.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jul 2021 04:43:54 -0700 (PDT) Date: Sun, 25 Jul 2021 12:43:54 +0100 From: Chris Down To: Ma Feng Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Petr Mladek Subject: Re: [printk:for-5.15-printk-index 4/8] drivers/media/usb/pvrusb2/pvrusb2-encoder.c:288 pvr2_encoder_cmd() warn: inconsistent indenting Message-ID: References: <202107250913.OiKJhpRZ-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <202107250913.OiKJhpRZ-lkp@intel.com> User-Agent: Mutt/2.1 (4b100969) (2021-06-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey there, kernel test robot writes: >smatch warnings: >drivers/media/usb/pvrusb2/pvrusb2-encoder.c:288 pvr2_encoder_cmd() warn: inconsistent indenting >drivers/media/usb/pvrusb2/pvrusb2-hdw.c:1730 pvr2_hdw_set_streaming() warn: inconsistent indenting >drivers/media/usb/pvrusb2/pvrusb2-hdw.c:3461 pvr2_hdw_cpufw_set_enabled() warn: inconsistent indenting >drivers/media/usb/pvrusb2/pvrusb2-hdw.c:3501 pvr2_hdw_cpufw_get() warn: inconsistent indenting > >vim +288 drivers/media/usb/pvrusb2/pvrusb2-encoder.c > >[...] >1ad371deb9b0be drivers/media/usb/pvrusb2/pvrusb2-encoder.c Mauro Carvalho Chehab 2017-06-26 191 LOCK_TAKE(hdw->ctl_lock); while (1) { >[...] >11c48e41d5fcc5 drivers/media/usb/pvrusb2/pvrusb2-encoder.c Ma Feng 2019-12-19 287 } >11c48e41d5fcc5 drivers/media/usb/pvrusb2/pvrusb2-encoder.c Ma Feng 2019-12-19 @288 LOCK_GIVE(hdw->ctl_lock); Ok, so it looks like it's complaining that LOCK_TAKE and LOCK_GIVE are somewhat unbalanced in indenting. Which... they are. I don't really see what this has to do with the printk indexing patchset. I tried to reproduce myself, but spatch just segfaults when trying to read drivers/media/usb/pvrusb2/pvrusb2-encoder.c under CHECK=, before _and_ after... There is a pr_info user in here, pvr2_trace, which may be related, but honestly I'm not seeing how the printk indexing patchset could materially change this, and not having a repro is frustrating. All of the reported places are just LOCK_GIVE, which is just a mutex unlock, nothing to do with printk: % sed -n 288p drivers/media/usb/pvrusb2/pvrusb2-encoder.c LOCK_GIVE(hdw->ctl_lock); % sed -n '1730p;3461p;3501p' drivers/media/usb/pvrusb2/pvrusb2-hdw.c } while (0); LOCK_GIVE(hdw->big_lock); } while (0); LOCK_GIVE(hdw->big_lock); } while (0); LOCK_GIVE(hdw->big_lock); ...where... #define LOCK_TAKE(x) do { mutex_lock(&x##_mutex); x##_held = !0; } while (0) #define LOCK_GIVE(x) do { x##_held = 0; mutex_unlock(&x##_mutex); } while (0) Ma Feng, looks like you were already cleaning this up, judging by 11c48e41d5 ("media: pvrusb2: Remove unneeded semicolon and add newline"), maybe you have some suggestions? I really don't see what it has to do with the printk indexing patchset, although if I had a local repro it would help. Thanks, Chris >:::::: The code at line 288 was first introduced by commit >:::::: 11c48e41d5fcc5b4cf17aa74388be128ca5444f8 media: pvrusb2: Remove unneeded semicolon and add newline > >:::::: TO: Ma Feng >:::::: CC: Mauro Carvalho Chehab > >--- >0-DAY CI Kernel Test Service, Intel Corporation >https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org