Received: by 2002:a05:6a10:8a4f:0:0:0:0 with SMTP id dn15csp2600671pxb; Mon, 31 Jan 2022 03:40:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwD2NS6K4T3coC1N7MWc9ZyXHu5sLsCs2EPT7zkprwth1Dv52Tds+iEpZwoZ3PpsYPT8H78 X-Received: by 2002:a05:6a00:1828:: with SMTP id y40mr19494470pfa.15.1643629245958; Mon, 31 Jan 2022 03:40:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643629245; cv=none; d=google.com; s=arc-20160816; b=U+eggXEsQEUTG9ztrs3cf0ojiVN6zSECdhhZxcMUnfSmrpyX6KdBV2La625dzZ7ORc 8B4mauq3uyKkdhPsFJmTarnsMB6yrflXZro8p2exEekG0S/fpeHV4tjFelIc6tjRqey9 e2bStZPj35SHUaYQuBhxrHS7dUH4dcst+wybD4BT31sWVGEsRcgRnhgJIcSG6Twzms6k qpKcwIWL4L1uKdSSnY11rxJpgMlGsQ+dPrhNqgZsEdg8yuAHwicewRNiZt2pXksg/4OB 01SAAPNJkKPF3QgCMrNbBHv7b4c0lj+8scfLlaf9el/u5AGIsqgxrek9/IRTAi0cD4PK 0baA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=CLn4dVIf8oQFhMUcR3qRnh+h3fRoze9Se7ApqMqbc1w=; b=nimcPE7Ufe2CmLh+z0cgEH2YSBgwS/TcIGEGgfLwdatsdgHuk3jQZEwEJmaRvtG8JY yOF/QNL8ZxUf1Gx7f1Ps1lENEjs5qOjxnuw4hGeiapx3tb8u3s0KrXO//ChFZE6u5GkI cGc1zJYg2ClPyYnzKznw4qdS2703isvcxc8DDIxKYA7wJxXTZoMu1GPe/16Nep+ufo1p CscXTRtxbR67dnItNAB7KThkZ/nlrauduOX1W7HLIvXdElqchyUu1LQsHnqfa9EV3HyS ib7voOtBkYDk5E04bQppkwUe7DNn6ev5zBti9PHNlXAVtMrjkelKTF4pyds0H5jAqphH vTsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U8ayN15F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si11580019plz.49.2022.01.31.03.40.35; Mon, 31 Jan 2022 03:40:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U8ayN15F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351419AbiA1Vg6 (ORCPT + 99 others); Fri, 28 Jan 2022 16:36:58 -0500 Received: from mga01.intel.com ([192.55.52.88]:49477 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351339AbiA1Vg5 (ORCPT ); Fri, 28 Jan 2022 16:36:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643405817; x=1674941817; h=message-id:date:mime-version:to:cc:references:from: subject:in-reply-to:content-transfer-encoding; bh=O8+qYYMChKDPm5y7l8O6pu2vDB8trFOrTiRzdfkKn6E=; b=U8ayN15FKvmbFj6t10Jw+XcOc1vdG7vW5bHxnQ0JniD7yMxR10q7rc24 VP89Ry/SyJTV5WNkj3QmbJ1qBlP8y1Lk/bw1x1Xxyf9FWVCI5OsIeuTXp zm3+5BIIabuOToOnkwuVXNB2GT8PC00PtwTY5IdfyivA/JxXsHFFp4Gj6 l8tgIg8CB+mA/Wmd3AMaFpqrXvGIWetlBDUKeypcCDGLKZPCQaWLlopFA ROeeGgbLTcmiTnpJ4eOf/Ckkc2SBCR12rxhBxH22/bDo4Zk8dB/YBNySr TDTMztddjXh3Ig9OKs8+CwoLYBkZCCTJd5NXQDspiHaEqZqI5yeWXz+7R A==; X-IronPort-AV: E=McAfee;i="6200,9189,10241"; a="271663561" X-IronPort-AV: E=Sophos;i="5.88,325,1635231600"; d="scan'208";a="271663561" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2022 13:36:57 -0800 X-IronPort-AV: E=Sophos;i="5.88,325,1635231600"; d="scan'208";a="697225168" Received: from zhenkuny-mobl2.amr.corp.intel.com (HELO [10.209.84.59]) ([10.209.84.59]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2022 13:36:56 -0800 Message-ID: <8f820849-6940-4271-e678-1ae037cdfb64@intel.com> Date: Fri, 28 Jan 2022 13:36:53 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.2 Content-Language: en-US To: Brent Spillner Cc: bhelgaas@google.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Dave Hansen Subject: Re: [PATCH] arch:x86:pci:irq.c: Improve log message when IRQ cannot be identified In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/28/22 12:48, Brent Spillner wrote: > It seems like the multiline string literal is your main pain point--- would > > +#ifdef CONFIG_ACPI > + if (acpi_noirq) > + msg = "; consider removing acpi=noirq"; > + else > + msg = "; recommend verifying UEFI/BIOS > IRQ options"; > +#else > + msg = "; recommend verifying UEFI/BIOS IRQ > options or enabling ACPI"; > +#endif > > be OK without going to IS_ENABLED()? (Personally, I think the #ifdef > style is more readable.) I think that's _better_ than what was in the patch. But, even with it, I still think the #ifdef mess borders on unreadable. But, if Bjorn likes it, then go for it. :)