Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp859054yba; Fri, 3 May 2019 11:38:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzw4RuNZtNcaTrfhFwuG2qauPBGjjxd/H/Pa/ZKp/mVhcki6Tauxs628LmzKQ9L2/3bTWWf X-Received: by 2002:a63:f44f:: with SMTP id p15mr7246143pgk.65.1556908693032; Fri, 03 May 2019 11:38:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556908693; cv=none; d=google.com; s=arc-20160816; b=uEXtuFdAGZQB8165yjOnaFfIAUKYnQFFS+DQhgSNbYssYl8AYgCYISSIVCdBAUl5xR 5IFrr6691rrnUiy8sm51Z5FLIIt0PIeY5aYPdsx+IHqM5Ux37HxrVMimcof7qrEoyjo5 j4HFdfeIWzhvodbcTdeSwmkUlkX8oQ9+Nn+Pi91rz2+EAS4AmjaS1w1pujCp+i6dok7y lT89KUGyS2v+7RdKW+Gp+KA1bFKbF47f2LLW0AJJHO9mCGEzto/M19r8mfObZADb5w7O ZQbUsvJmj2ZKmNjou/kYs8apjz9XvxcuXlZGO5pQsl3LcGmmrsuPXDowS3vVoUw0Df+j SDtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:message-id:subject:from :cc:to:references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=O/xEJw24VT9Hb4jjpu49qih6nck5dQTHztbx3nttuQQ=; b=ytF5KCvH+zF+O5XbtoT1JkkHBa+ExgzgI9jUxVIqiPs9xeLu4deGhb3URiDOYGkoUR 7NS4FYL6wohY9HjYgH8Ul+um7ifC0iOHlMYBg9jer+JGJOjrODDyfAobQyVshSzFwoW0 8O8lMkVCGiAteOqfewkcsYTyuTqzCqXAQtwJogvPFAsVDOOUlmU0uJFSzC2x9worh5O4 PYST97Fjcgtw3UydxZCIJ5BxEhwRkYBeb2tkTzJJp6dd+l5z2MGMbFFI01gxgRzzqciE SeDiNCdLjhPFPX8PDiuCBrqqi2qaZsQ9bBGKB+9IgvIqVbbOlhz5yt1OTK8cFsylwSK4 ITdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lF3lhaV+; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si3349212plo.212.2019.05.03.11.37.57; Fri, 03 May 2019 11:38:13 -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=@kernel.org header.s=default header.b=lF3lhaV+; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728419AbfECQdW (ORCPT + 99 others); Fri, 3 May 2019 12:33:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:33656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726585AbfECQdW (ORCPT ); Fri, 3 May 2019 12:33:22 -0400 Received: from localhost (unknown [104.132.0.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D644F20651; Fri, 3 May 2019 16:33:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556901201; bh=O/xEJw24VT9Hb4jjpu49qih6nck5dQTHztbx3nttuQQ=; h=In-Reply-To:References:To:Cc:From:Subject:Date:From; b=lF3lhaV+ZwRGoMCbf2EH3F6q1J7furZeR5G0vyXJt/zrXk8OqY+TKfc03W9cWapWG QUihVJMlBpOMBwuRhQO3X5Hc/qSgv5n9QVAocTKUXvwSABkC42ETKcwWCFWAT82Qzl Lq09bK2Bb4HoycPz5MoEYTHIgnFZz4+onWOlOXKk= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: To: Jan Kiszka , Kieran Bingham , Leonard Crestez Cc: Andrew Morton , Michael Turquette , "linux-clk@vger.kernel.org" , "linux-kernel@vger.kernel.org" From: Stephen Boyd Subject: Re: [PATCH 1/2] scripts/gdb: Cleanup error handling in list helpers Message-ID: <155690120115.200842.4461891246222331678@swboyd.mtv.corp.google.com> User-Agent: alot/0.8 Date: Fri, 03 May 2019 09:33:21 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Leonard Crestez (2019-05-03 04:19:31) > An incorrect argument to list_for_each is an internal error in gdb > scripts so a TypeError should be raised. The gdb.GdbError exception type > is intended for user errors such as incorrect invocation. >=20 > Drop the type assertion in list_for_each_entry because list_for_each isn't > going to suddenly yield something else. >=20 > Applies to both list and hlist This should be done to other "type errors" in the gdb scripts too. >=20 > Signed-off-by: Leonard Crestez > --- Either way, Reviewed-by: Stephen Boyd