Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2388637ybg; Thu, 24 Oct 2019 09:00:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHEK77jS3t0rcG2cW0uwpbKmY8nBKAKvU+MfF5e8ZXG0qQJeAFd2JWyQpri36A7pwAmhYn X-Received: by 2002:a17:906:bfc6:: with SMTP id us6mr8101392ejb.51.1571932840254; Thu, 24 Oct 2019 09:00:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571932840; cv=none; d=google.com; s=arc-20160816; b=dgb6ENFIB/RXY9/HLiMiw4qSKbWz+4BCoTDe9rvm1kpUV5meBxE8jniNeHgXH87nn9 RMBpH+yRZxwwZFZhAdIbeMjwD2mcQXwurDh2mzbf9WHJIsAX3gB8Gp6pgkAqAqpgeSKf nC8NkNmK6PQmDRZcTG/BCRm5NzrP4fLK63BXXyiHM5YyCCwfBMsalnS5dvqaFZsClO+H Jg6FCCxyMgAk4rPBN791eLHSS4sdk0ciXg9NqYh7nB1GcuuwjxlkrBPdenJJim6iw+vV dwdYI5pf6kJTTu5mu870bfq7f4kMOIz7wqyXlRYjuLYv0PcUoPA5w3ZQBD4EXNXjMtLO hGHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=6nNENVA+itqkpIQzusrAU/yenbBYQKj6dV7c1bpwXz0=; b=ZuHytKA7KzuyHz6z7OhbpqsPSzqTMEqNuN+COAVEuCFvA4ngCv0fm5ZvFYL7kGR6ZT DxM88/3iA1Czzg7XwLErp6vPzThKb4htEI/fIPpbYT2UfFEQkhpome8Qgcv9L3Uq9JD0 SxN9ItLnKQW0nKdh9ca2o+oEiDLmDClawAR+YNpTr7EVu/tm1zWm8h2go4JyO6zylne2 1q2EMFNa9bKGthrFS7vOcrh57EQRJZqutP/Ytck48173AuCwBr/a3stsXD0eD8lBgJ4r F56a3TeS4Acp8iA3fwGxV+p5VcwTvbPoJGn4GBl0HvsCeBTELusJ+2UDuHKkuJQjDWe5 xgGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=CvPPc+ni; 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 s21si15933738ejm.122.2019.10.24.09.00.15; Thu, 24 Oct 2019 09:00:40 -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=@sifive.com header.s=google header.b=CvPPc+ni; 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 S2436667AbfJWWFf (ORCPT + 99 others); Wed, 23 Oct 2019 18:05:35 -0400 Received: from mail-il1-f193.google.com ([209.85.166.193]:35893 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731301AbfJWWFf (ORCPT ); Wed, 23 Oct 2019 18:05:35 -0400 Received: by mail-il1-f193.google.com with SMTP id s75so10680352ilc.3 for ; Wed, 23 Oct 2019 15:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=6nNENVA+itqkpIQzusrAU/yenbBYQKj6dV7c1bpwXz0=; b=CvPPc+ni++8l/tgBZsJga/63Afatp4dAhBpkHiaekonYGAecYw9T+FrpwLyAKbMYvr dnuorpGtZ+7lXI5RuZ/15abvyX51iXf9ZgLmu0AFhVW2tdYjzn0uw80DXlANBcSZn1hC rqQioWQsnDVncQhMDIYUJDzAuYb4xBdRMOOReiaRWSKOp0dlc3hHV/W3gAwL9GgvLCXN Hk0wI8BtHEuhqHHpZWpJ65iR9TJ2uaC2K/atx2qowegeUp0X0o+MG0Mvs2Nyw9N5pfOx AxC7H+4jCU2zfM0NvdLkZyK12X8oJ/F536QdB/y/lTrDjJfTk3QeKyXsZkPcY4I91pQe jy8g== 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:in-reply-to:message-id :references:user-agent:mime-version; bh=6nNENVA+itqkpIQzusrAU/yenbBYQKj6dV7c1bpwXz0=; b=WUiFUNQNGTIyclWKFmx95GnENhqX802XTC5jQprayQuSFqe4DbTjp+/H4o4jz8ilrX l520xHqeVt0bpsndyO1KP8xoi+ZqjoqkeCgZ7hEv8py2wy1++fIFZhm0he7L0N6A9Cs7 bJv16V8LsNVwei3OQpfYQlvJca07o19CXCNjBth8IYbg4GdlAiAIK8FcHwAT8Irz658P gN2Dygxh8X/zl73DbMN76o6sR5M26G0BSi0LaTG4g2/JKkezVWK86iCTizorTJMRvCeD RdFUUSRrkj4kuvpvnJcEAEuELVriVNAwPziDBC7mjNT82Qrdf46Fbu5m12HzX9ZAUrZZ Gm3g== X-Gm-Message-State: APjAAAUk0E0MB6GFqdRJPqMc1+YiDvAMnnqDEUuk3EamHcj24GYrfbMx Dwu1YELNga91kbyI0pfuyTtuCg== X-Received: by 2002:a92:d3c9:: with SMTP id c9mr24486179ilh.259.1571868333002; Wed, 23 Oct 2019 15:05:33 -0700 (PDT) Received: from localhost ([64.62.168.194]) by smtp.gmail.com with ESMTPSA id j21sm4998581ioj.86.2019.10.23.15.05.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 15:05:32 -0700 (PDT) Date: Wed, 23 Oct 2019 15:05:30 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Christoph Hellwig cc: Palmer Dabbelt , Damien Le Moal , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/15] riscv: cleanup do_trap_break In-Reply-To: <20191017173743.5430-3-hch@lst.de> Message-ID: References: <20191017173743.5430-1-hch@lst.de> <20191017173743.5430-3-hch@lst.de> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 17 Oct 2019, Christoph Hellwig wrote: > If we always compile the get_break_insn_length inline function we can > remove the ifdefs and let dead code elimination take care of the warn > branch that is now unreadable because the report_bug stub always > returns BUG_TRAP_TYPE_BUG. > > Signed-off-by: Christoph Hellwig Thanks, queued for v5.4-rc. - Paul