Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp149824rdb; Sun, 21 Jan 2024 22:33:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHy9tJwJC2kSK+ptAdWudcK9Bn2hR6hh5d6p3Ju8n5GGNRfGDdV3fC0uqb41PO0T7/5I0MF X-Received: by 2002:a17:906:bc45:b0:a28:9546:f92a with SMTP id s5-20020a170906bc4500b00a289546f92amr3722378ejv.67.1705905234018; Sun, 21 Jan 2024 22:33:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705905233; cv=pass; d=google.com; s=arc-20160816; b=rGTcpJgKbpWYJjsfgYngI3JRPhxO6X7O9MkBV8axoYxgGNLEjIMTrH97l61dPdw7N1 /kR7/j84UM4x33EZuKJJrPxaOSiNil0pBa2c9VICqxiSbGoUb5zlIzInaawn/mNKiC7a QMvLomSszOP09dcRLNPJ+rJagg/K0qP2nSmk40ippQ43XSF3dgacXPxVdZDpzdBNDaB9 wU+cLVV/tMlgBSrnq/VgeScY2J73bq6k4goAmn7yP/Zwp2BKSsztszHTUutQbY7UH2LR oda5z0e6QjSbpTmtvUtxls4m50LMOv2zE+LEXVAGAj9IWtPQ20QKD3+NVz5JIwWBM2tN 15uA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=nseMvP+PR5N4h48ZxlM/LviieiNOXZd2CDGHxfRIQ38=; fh=91Vlw+UT9Ajh6776bI9zBmGAqzKidV6BDCGAscXv97c=; b=bvxv3iaCHKeWsyiqXgQXFahwieuWf9wM9cOhQPgk6KjOIoyh6nu+DyX3zO6COMYn5g dWc5v9OYqdzRbEQOweaRPX8c8n4bSQw/0RHk2N1Ra2BlqS7DL7i+Da5wnbZVU/yO1n8c F5ikYXqiQ23kbcFpavXfMrBgalqINe0riQkZ6cvEhF7eMVtCSVBZUn205f88zL26xA4T y3Ben2pho78xQKcrjN24eTJOxxTzsWae118cBODHqARznwQZOzAbilgPHwoG+YihYLxN BMI7HRiwHkHCWM3oEGgY1+CHfSoYkTDtxyJk9BlfL916qZCTLYe/Dpa9Ytot6EfrVFy+ bWKA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=XeCbHbFw; arc=pass (i=1 spf=pass spfdomain=inria.fr dkim=pass dkdomain=inria.fr dmarc=pass fromdomain=inria.fr); spf=pass (google.com: domain of linux-kernel+bounces-32389-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32389-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v21-20020a170906339500b00a26e48e0a53si10340251eja.827.2024.01.21.22.33.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 22:33:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32389-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=XeCbHbFw; arc=pass (i=1 spf=pass spfdomain=inria.fr dkim=pass dkdomain=inria.fr dmarc=pass fromdomain=inria.fr); spf=pass (google.com: domain of linux-kernel+bounces-32389-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32389-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BC7521F2105D for ; Mon, 22 Jan 2024 06:33:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75513EAFC; Mon, 22 Jan 2024 06:33:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b="XeCbHbFw" Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13EF0E544 for ; Mon, 22 Jan 2024 06:33:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.134.164.83 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705905225; cv=none; b=AFZ/pn8y4PmCQzBLIpL2yB2nBaJ+0TI/bJan15ePQRXHosayrpJT6HaM6Gy0QX6CiwwjbrbKrpgsTSiX6bgXai1NS5zFxUIRKPt5x2yxotpAkNaINL7SXSOwKqoq6i5qR1j+gek9cxbXJU0DktjXcfv2tLV05R0fQ42+K27UgiY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705905225; c=relaxed/simple; bh=URm7XNtebHDVin5MzCs9Rd9Gaj5B8wqpTs6Eg3ZkQBs=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=t+wjwmVayXmWWeuBbSUqzLlwQT5n1diHVT0oRkiuFw7vFdHJtARV9sQsbPA90BJR7VFTH76B+sDmJcpvT8AEnIPuoGsn0+Ru1oIZQItTKhcQ9XyK1HOUY1lGpvUU/LqiaNY7+XTNEiNvJoqFGJ3wIjr6jdY8qW0vN3jsI5BgfyA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr; spf=pass smtp.mailfrom=inria.fr; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b=XeCbHbFw; arc=none smtp.client-ip=192.134.164.83 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=nseMvP+PR5N4h48ZxlM/LviieiNOXZd2CDGHxfRIQ38=; b=XeCbHbFwZutEiqKfoV5iqy/y3Ru4pIvvAuPvroGFbOe6fnV/FCtBusSz Ks+vv9riwnbpV0w6p8vJHW3tLBF282/YGTE4jge3tr3jHcHogIGhhSZ/6 kEDWVPLcdRqTXNp7ZrN3mNwz2Oi4hgH1fWgw9icxIuq1z/EwdHIaGlu2Q 4=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.05,211,1701126000"; d="scan'208";a="147837845" Received: from 231.85.89.92.rev.sfr.net (HELO hadrien) ([92.89.85.231]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 07:33:39 +0100 Date: Mon, 22 Jan 2024 07:33:38 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Li Zhijian cc: linux-kernel@vger.kernel.org, Nicolas Palix , cocci@inria.fr Subject: Re: [PATCH] coccinelle: device_attr_show: Remove useless expression STR In-Reply-To: <20240122032800.33026-1-lizhijian@fujitsu.com> Message-ID: References: <20240122032800.33026-1-lizhijian@fujitsu.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Mon, 22 Jan 2024, Li Zhijian wrote: > Commit ff82e84e80fc ("coccinelle: device_attr_show: simplify patch case") > simplifies the patch case, as a result, STR is no longer needed. Oops, yeah... thanks, julia > > CC: Julia Lawall > CC: Nicolas Palix > CC: cocci@inria.fr > Signed-off-by: Li Zhijian > --- > scripts/coccinelle/api/device_attr_show.cocci | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/coccinelle/api/device_attr_show.cocci b/scripts/coccinelle/api/device_attr_show.cocci > index 550d1d2fc02a..dfcf9304195f 100644 > --- a/scripts/coccinelle/api/device_attr_show.cocci > +++ b/scripts/coccinelle/api/device_attr_show.cocci > @@ -28,7 +28,7 @@ ssize_t show(struct device *dev, struct device_attribute *attr, char *buf) > > @rp depends on patch@ > identifier show, dev, attr, buf; > -expression BUF, SZ, FORMAT, STR; > +expression BUF, SZ, FORMAT; > @@ > > ssize_t show(struct device *dev, struct device_attribute *attr, char *buf) > -- > 2.29.2 > >