Received: by 10.223.164.202 with SMTP id h10csp2984419wrb; Tue, 28 Nov 2017 04:36:07 -0800 (PST) X-Google-Smtp-Source: AGs4zMYa5VY8HcvSkLbAomzrhFw/cRvKhLNvUWtnWJKSWEfsy3Viz0dA/2a/TkhQv2p96QqeKKlw X-Received: by 10.98.64.153 with SMTP id f25mr24885189pfd.213.1511872566995; Tue, 28 Nov 2017 04:36:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511872566; cv=none; d=google.com; s=arc-20160816; b=A/JDqWqRGhrjTwWX9EoUH0mqzNSrfctSBjeHZRkKaMXCACQZYk7iPAPVmrICs0ZhoI HEvDPeApIrT3y1W6//FFe+s0mwSJNPZjN6x6VO40ojPjwXAwsM83iT/ph6v3AfRTrlNM QbmwOG5o9VFWJ58hBy7p32uIW4caCKslqoaG/wz+HG6s1Zg3MjIpMHAzZtBiwBpQLm4x /MDiMVcGW61UxgY980IxBTbK/vGf9SfoWS/v3dffn3wADeNBQRUYMGCPQg3pz7TfBvBQ mKQRQziFq0hOEHRZEUtZFaXM5l/rQDWdUsSgWgo1Kb59SWddaOfGDgpWo6W4XbPg/ktA 6GzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references:cc :user-agent:date:subject:to:from:dkim-signature :arc-authentication-results; bh=sRDstebWmKD+cy6+xCD5+xtEgr6q1zTLhepDMxvitaw=; b=pxZl1D8niRth1iPtN3gCDd87enb5q6guZtg2xKeXrLktoQuPxqDttW5/yYp6N8AbfA c/6oc0rLrOecScVWSmdDrsGTELiS83PjaFQpifMAoBxqFIXNt/oEGDQfaDBqtzo6nOCS iXULKhp0qqEHCf01eAoEFijaExzJDeBR2sFshC7TRY6MgDPmKZklPeawe4uEKohf1YHY 1vL6a/D+Wbd/JD80zmztYvnokaBPaUCIxawFlHw74HAOgfxk3tcO+gKpKiTenMDur4Yp pQUwj/ZIT9dOM6Hjdxviza/NPU0zR7xgI5G+mNqNx6qZqeAGNAl8aWDqln4AId0Wu6jj yqzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@rainbow-software.org header.s=atlsmtp header.b=BucX5dPT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si14281443pgf.550.2017.11.28.04.35.55; Tue, 28 Nov 2017 04:36:06 -0800 (PST) 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=temperror (no key for signature) header.i=@rainbow-software.org header.s=atlsmtp header.b=BucX5dPT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753080AbdK1MdV (ORCPT + 77 others); Tue, 28 Nov 2017 07:33:21 -0500 Received: from smtp-1b.atlantis.sk ([80.94.52.26]:39595 "EHLO smtp-1b.atlantis.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752715AbdK1MdT (ORCPT ); Tue, 28 Nov 2017 07:33:19 -0500 Received: from [192.168.1.3] (ns.gsystem.sk [62.176.172.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-1b.atlantis.sk (Postfix) with ESMTPSA id 95311834428D; Tue, 28 Nov 2017 13:33:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rainbow-software.org; s=atlsmtp; t=1511872397; bh=sRDstebWmKD+cy6+xCD5+xtEgr6q1zTLhepDMxvitaw=; h=From:To:Subject:Date:Cc:References:In-Reply-To; b=BucX5dPTfJqwWqLL/lSb+3RIFeBj8uNNhxv5iSuDIFiqBtsT6X1w/idtdGUK1wr6Y epyl12f4MVRv2E7Vf8svYyBnKv94OZGOx5B5hsZ9j/wCmpXFsAosoMohO6OxxzDBFG nzUJOzrBf7bTHluVs9Tb3/ISEkf//gFmD65o5Wjw= From: Ondrej Zary To: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] ALSA: nm256: Fine-tuning for three function implementations Date: Tue, 28 Nov 2017 13:33:14 +0100 User-Agent: KMail/1.9.10 (enterprise35 0.20100827.1168748) Cc: SF Markus Elfring , Takashi Iwai , Arvind Yadav , Takashi Sakamoto , kernel-janitors@vger.kernel.org, LKML References: <2cbef557-5f89-c630-e108-14ef2ce6b41a@users.sourceforge.net> In-Reply-To: <2cbef557-5f89-c630-e108-14ef2ce6b41a@users.sourceforge.net> X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201711281333.15131.linux@rainbow-software.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 28 November 2017, SF Markus Elfring wrote: > >>>> There is a general source code transformation pattern involved. > >>>> So I find that it is systematic. > >>>> > >>>> But I did not dare to develop a script variant for the semantic patch > >>>> language (Coccinelle software) which can handle all special use cases > >>>> as a few of them are already demonstrated in this tiny patch series. > >>> > >>> Then you're doing everything by hands, > >> > >> I am navigating through possible changes around the pattern > >> =E2=80=9CUse common error handling code=E2=80=9D mostly manually so fa= r. > >> > >>> and can be wrong > >> > >> Such a possibility remains as usual. > > > > "As usual" doesn't suffice. > > There can be additional means be used to reduce the probability > of undesired side effects. > > > It must be "almost perfect" for such a code refactoring. > > Can you get the impression that the shown transformation patterns were > correctly applied for the source file =E2=80=9Csound/pci/nm256/nm256.c=E2= =80=9D? Have you tested the driver? Probably not. Please don't "improve" working=20 drivers unless you have the hardware to test your changes. Patches like thi= s=20 are known to cause regressions. If the hardware is rare (like the NM256), t= he=20 regression can hit years later when someone with such HW upgrades distro=20 (e.g. Debian stable). =2D-=20 Ondrej Zary From 1585309694092547221@xxx Tue Nov 28 11:38:58 +0000 2017 X-GM-THRID: 1584245629127139242 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread