Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2557938ybt; Mon, 22 Jun 2020 01:07:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPyX9SRBPvXr/FMFN+nzPW9nGpOgY0y2IyAYDbYsdMh9lNcaDMnK631hc010WnOVdK90QO X-Received: by 2002:a50:8425:: with SMTP id 34mr16032091edp.314.1592813277119; Mon, 22 Jun 2020 01:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592813277; cv=none; d=google.com; s=arc-20160816; b=RQX53RPv/pS+82sO8mlo0GeYX+yEmJmo/K4bi/cYKz0DnI1dDJtk9ST1fg5TdzLOc1 dsGgPC4cRnUxDnZIYOHaBl7abscjzNxvIuwC5EG0s24vSdr49mDyiaoyVvef5+UjqKyZ nHto751BRh8FY+zWCSK1+LifUyNgoC2FI2gZJIb2GjYtFpKWvEbqDlFMHYVmiHHGFlwa jRvWFBNrJFDVrkj/qGqvnAbwLaOYrH6Qfn93hZmTdnbrqQAheysLIbHlRW9RFamCCQZ9 Lmaec17ezhfhHsDZW+Fwx2ngASCuQWuK9ZCsK+sir/uYtACqSYX49v0yPRe/HUXPkZvu 2a3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ywxvkE6q0cbrbXTJPKV3+AgmecGjcEiMLhxzggDoG6o=; b=xuTJNlRKbfn78giGZso301gI3Jns9kTWkjOLuc5TSjWUp5tDYPr1bwPVKyxHxM6CnE hYZTTcrOXnN1f3Bu8+4epX1VOlVj7rKio90X5XSWVNYiWlYBLkOTTG7bVXcjr6xXEuVt YlLPZ9Eo6gTSZmZTQNbbJiQ6JW3Lg1gPL3XVqFmzd4iP6Mi1LrPEC22m5COKGUlIHCBX D77PJEmN1HPE8lJBEEfEO3IBrZG2CPP0fM9gVkE+ahndnYp2lPw7c5yY5IKiHCt3/7fs vfmlVgeQtXCdc92xDJTFxfAewDKlOFutTnWnDj1TMgDyzGvYx1rFE5OGYvsuhOb/laH/ KAeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=B05aJafb; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si9429609edq.596.2020.06.22.01.07.34; Mon, 22 Jun 2020 01:07:57 -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=@google.com header.s=20161025 header.b=B05aJafb; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725833AbgFVIDt (ORCPT + 99 others); Mon, 22 Jun 2020 04:03:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725777AbgFVIDs (ORCPT ); Mon, 22 Jun 2020 04:03:48 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 715CEC061795 for ; Mon, 22 Jun 2020 01:03:48 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id r9so13911067wmh.2 for ; Mon, 22 Jun 2020 01:03:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ywxvkE6q0cbrbXTJPKV3+AgmecGjcEiMLhxzggDoG6o=; b=B05aJafbS6ANDvwzCVLuomo34ddofnlUEe/dzFaae8H9n6l2rKJI6IrZm/zCfUTcG4 OCLkNzJtVemG5dLrAysL/t/jVfGhLyhQTy382vmEjbizP4S+UajTShxqcx/D3Ekis/sx xjlHvyulEEeWN0OSkG4fYkV3K3HMQaRIBA0DdfA8Kz931INPhBaszFpcn02RhVs+MHbT UejiUNIdu5uDqXrb0p/vZjjA1o51htumX5Jv2W2cDFrlcJUf6NNfdCjp1NGj6emOae9i q4hwpXDA6BEg0uXpq9feIG9z6QgYtR0NfoQn0C5RgzJRgi4p8FemcfwKSmYpVKug8pAe Ky5Q== 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; bh=ywxvkE6q0cbrbXTJPKV3+AgmecGjcEiMLhxzggDoG6o=; b=i8sdnkLYh0MBk/jextVWd+H8FHI/ffAjfix+wtiHW3s0yEFIV6BwCN805YZxc1VQ0G FJ3GBD6R1z06dKyPNxLHuasP8f/3sLpYmkHI0hIOJ3m+U7UGYQGEqaAjru9ZUsC2wXTt /fLaBvFiEI48p5JprCz75p2CTKNpRMRrnQS5UmSFnoG0u8ZmAWnG8xTN+vG0buQV9sAk gXIO2VWW4jHJsdhCiydqdb6xPcMGfVi1v81sYUJtMGJnulrjQNc6wB9ekYbEbcCOjYzG q4Eebt4GG19Hr3GMF6ZD3NPVS6vkyMiDsO/0ANoKtUPfF/DA28HKAjoPCOMZDNKTu9Yz PnVg== X-Gm-Message-State: AOAM532vsyVud4mh0suNU2yZaM5PDkcZ0JoCWpuId/4nzZy+EVhFQZ51 6gn/4ukM28Hnc4Qi93GAAFO/wZKgsek= X-Received: by 2002:a1c:2c45:: with SMTP id s66mr17990066wms.40.1592813026778; Mon, 22 Jun 2020 01:03:46 -0700 (PDT) Received: from google.com ([2a00:79e0:d:110:673c:7143:200f:54b7]) by smtp.gmail.com with ESMTPSA id k16sm16791759wrp.66.2020.06.22.01.03.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 01:03:46 -0700 (PDT) Date: Mon, 22 Jun 2020 10:03:45 +0200 From: Matthias Maennich To: Shuah Khan Cc: Julia Lawall , linux-kernel@vger.kernel.org, kernel-team@android.com, YueHaibing , jeyu@kernel.org, cocci@systeme.lip6.fr, stable@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH] scripts: add dummy report mode to add_namespace.cocci Message-ID: <20200622080345.GD260206@google.com> References: <20200604164145.173925-1-maennich@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 04, 2020 at 02:39:18PM -0600, Shuah Khan wrote: >On 6/4/20 1:31 PM, Julia Lawall wrote: >> >> >>On Thu, 4 Jun 2020, Matthias Maennich wrote: >> >>>When running `make coccicheck` in report mode using the >>>add_namespace.cocci file, it will fail for files that contain >>>MODULE_LICENSE. Those match the replacement precondition, but spatch >>>errors out as virtual.ns is not set. >>> >>>In order to fix that, add the virtual rule nsdeps and only do search and >>>replace if that rule has been explicitly requested. >>> >>>In order to make spatch happy in report mode, we also need a dummy rule, >>>as otherwise it errors out with "No rules apply". Using a script:python >>>rule appears unrelated and odd, but this is the shortest I could come up >>>with. >>> >>>Adjust scripts/nsdeps accordingly to set the nsdeps rule when run trough >>>`make nsdeps`. >>> >>>Suggested-by: Julia Lawall >>>Fixes: c7c4e29fb5a4 ("scripts: add_namespace: Fix coccicheck failed") >>>Cc: YueHaibing >>>Cc: jeyu@kernel.org >>>Cc: cocci@systeme.lip6.fr >>>Cc: stable@vger.kernel.org >>>Signed-off-by: Matthias Maennich >> >>Acked-by: Julia Lawall >> >>Shuah reported the problem to me, so you could add >> >>Reported-by: Shuah Khan >> > >Very cool. No errors with this patch. Thanks for fixing it >quickly. I am happy I could fix that and thanks for confirming. I assume your Tested-by could be added? Is somebody willing to take this patch through their tree? Cheers, Matthias > >thanks, >-- Shuah > > >