Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1603174ybf; Thu, 27 Feb 2020 14:20:27 -0800 (PST) X-Google-Smtp-Source: APXvYqww1YE0/YeIMT1LgJx/kDJoAYSMYsnYOBEjRnqlywCu01+BrExOjCxvrRRucTC/LnPZ0Wc4 X-Received: by 2002:a05:6808:244:: with SMTP id m4mr925962oie.125.1582842027095; Thu, 27 Feb 2020 14:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582842027; cv=none; d=google.com; s=arc-20160816; b=P8AtvD0K5quWY0aGxiMo3sfrNzSrq5iL+ZlIezy0i3Xt9QELIwk3Hh+kHkRaj83hJr /k1a82tUgAwq2YhKIubmnA7W0m8OtbpiUhUEs3v5++fGx/NRrv4LaWvvuIQGpWxxvefM lApcO9t4hIGi0mWCw90jxOBuB9qufnCOqT0mC+U3RXZQggPcNMGhUIdqgQqykmcxfnGn 99PoxqUoqNV1qaYGKV9IWEtUhq1zq93AI2LVw/4pLy3uBZadi/lVMfNmu+u6ytbOkXRW lNtr/yA6Jyt27NVLlfluoIItwk85rq6wNezxhidviZLoDMZQF3Nd+/1SqtXmMN3ROaGk qQaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date; bh=dxggvCvtvNUx4O37YhlFcCO9Cgr7aaX2GVJomvG5w1Q=; b=NhfKYj2poVyEP/xcSvP8IoRzsMHJIfMyiHXe/m0NZ/XZYEtbekjSvtZRYzItuDdnil zneoBpqWjmAJ12uQP7bK37R4UkDtTwK90S7TnhXOiuB20oBG5Jt9i+vLnEIFOBYUpukr R4ydGdM8zQ43cJ0GB8eDcAFDm+O5MT2dry3/CXObASwry2zFHRrdgiYpbjTB3IAi3klb oBoaM2F5Bc2tb8RLpw8pQGYq6SLqaJ4aBOeUMg1+T9fxxZGb8tciSYdAdY+06fyZFMS+ vFLxhaXiAogHHlrF5hI7Yhbw0mayFOsg5Jo9e86QimF5X8po81jiW5xMH8cPMtkCxPZA 5Khw== ARC-Authentication-Results: i=1; mx.google.com; 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 w24si588651oic.260.2020.02.27.14.20.13; Thu, 27 Feb 2020 14:20:27 -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; 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 S1729893AbgB0WUL (ORCPT + 99 others); Thu, 27 Feb 2020 17:20:11 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:32996 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729728AbgB0WUK (ORCPT ); Thu, 27 Feb 2020 17:20:10 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id C9BB02A160; Thu, 27 Feb 2020 17:20:07 -0500 (EST) Date: Fri, 28 Feb 2020 09:19:29 +1100 (AEDT) From: Finn Thain To: Greg Ungerer cc: afzal mohammed , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Geert Uytterhoeven Subject: Re: [PATCH v2 06/18] m68k: Replace setup_irq() by request_irq() In-Reply-To: <1a16c680-2bbe-eb24-6ea3-4b50d0c3e377@linux-m68k.org> Message-ID: References: <00b0bf964278dd0bb3e093283994399ff796cca5.1582471508.git.afzal.mohd.ma@gmail.com> <73c3ad08-963d-fea2-91d7-b06e4ef8d3ef@linux-m68k.org> <1a16c680-2bbe-eb24-6ea3-4b50d0c3e377@linux-m68k.org> 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, 27 Feb 2020, Greg Ungerer wrote: > On 27/2/20 8:31 am, Finn Thain wrote: > > >>> > >>> BTW, one of the benefits of "%s: request_irq failed" is that a > >>> compilation unit with multiple request_irq calls permits the > >>> compiler to coalesce all duplicated format strings. Whereas, that's > >>> not possible with "foo: request_irq failed" and "bar: request_irq > >>> failed". > >> > >> Given the wide variety of message text used with failed request_irq() > >> calls it would be shear luck that this matched anything else. A quick > >> grep shows that "%s: request_irq() failed\n" has no other exact > >> matches in the current kernel source. > > > > You are overlooking the patches in this series that produce multiple > > identical format strings. > > No I didn't :-) None of these will end up compiled in at the same time. > The various ColdFire SoC parts have a single timer hardware module - and > only the required one will be compiled in, not all of them. > I was referring to e.g. [PATCH v2 08/18] MIPS: Replace setup_irq() by request_irq(), in which you can find this: @@ -116,8 +110,16 @@ static void __init ar7_irq_init(int base) handle_level_irq); } - setup_irq(2, &ar7_cascade_action); - setup_irq(ar7_irq_base, &ar7_cascade_action); + if (request_irq(2, no_action, IRQF_NO_THREAD, "AR7 cascade interrupt", + NULL)) { + pr_err("%s: request_irq() failed\n", + "AR7 cascade interrupt"); + } + if (request_irq(ar7_irq_base, no_action, IRQF_NO_THREAD, + "AR7 cascade interrupt", NULL)) { + pr_err("%s: request_irq() failed\n", + "AR7 cascade interrupt"); + } set_c0_status(IE_IRQ0); } BTW, I think that deduplication of string constants can happen during LTO, so the benefit of consistency need not be confined to a compilation unit. I don't think this is relevant to kernel builds.