Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5547097rdb; Wed, 13 Dec 2023 11:46:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEeEyJAzoE+TF9OoOkTHBA6FAqe2hIC8H1BxEeuLF2zdfhavDsaVTu7rySc1oUVnjE9p8hs X-Received: by 2002:a05:6a00:390c:b0:6d0:d864:e357 with SMTP id fh12-20020a056a00390c00b006d0d864e357mr694056pfb.40.1702496782420; Wed, 13 Dec 2023 11:46:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702496782; cv=none; d=google.com; s=arc-20160816; b=c21al/J6emB/Mx+wh17KdtRbixmsA1jTwyNORHtFwGf4HnlrfeOIcJJ72cELDFfkha 6jyF73dmSEXfSdrUGxPsHxlR+8RTR5ae4bT6H/2XkCdE33E7zo46qdYTiglXOc61YbmM 0IcRScpZk13RhBfu2Kg6O5ZVfFBfO/yv147OtSaj2I5GpGWvfPKTfxMhWhdKAeaJ92wt bhSh38ZNGC6Iq/604jJZ6EQB0XbAy/efdt+HHYNFt9AvtacDZ0pgzj7RUwbGbCmRELxM qgBupxZRIaRiqCDfM0WfYTG2e1sM9G/cQxYKtsDBQSz4xAwKT/GTxvIVjGmeWqkpxbLy svVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=rsWqd+DBJ1il7rOkfgYh/jNyjoSdSSIs6GaoN33Ns58=; fh=wYNpw20RJfjtHmh2BR1r0AKV2z70iSSaS3jNFHnIH1M=; b=B//KjwAMBDm7PJTp2wktkjA7SyMTe8SdEOI61hXtl1IHdyuTpG63VQfnHtjEfRSE/6 HjliJ0vqzY9Y/kJQre2Y933vSmpkiAxek452a5dsxDgY05AEmrjV7+8F/QleV9jKYUai jd1xtaG6PJkcjOUmCz14U7b9oEjLmLtr7mB2NKUjXzS1HHb69F9WbRyI2fU2dRfRCrZJ D4e4J4YOeWeBCFO5qS4FlLlFE/qAt39YNH1eoq2cMutETfqcOyIHxyl8pdCMjL6x+Fro Aeh7KUCS0jN3KyKovQ0R6a3xUuQV0uGadEYPGNx5rhExJ7ZsQ2hUeJe3QFCsvU8OBMdG HOiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JdmOvEPt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id o1-20020a634101000000b005c5e2118e11si9630877pga.70.2023.12.13.11.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 11:46:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JdmOvEPt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B144E8032371; Wed, 13 Dec 2023 11:46:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377913AbjLMTqE (ORCPT + 99 others); Wed, 13 Dec 2023 14:46:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235369AbjLMTpv (ORCPT ); Wed, 13 Dec 2023 14:45:51 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92DC9D4B; Wed, 13 Dec 2023 11:45:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702496756; x=1734032756; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=NkInTmywTVeWZDXhb8Nql959C4qM12kBZjmIfc1IU9o=; b=JdmOvEPt3V1lJlMt5Unkc9dLgjraP+394ASeJ07ySW+MVwEFi2FLVGtK IQ1fOKMRC0+kdMxu7U9SgBOBSd162qz/mDeS52oEp8Zv/J9cvPm0xbncs Mt1d6N5lRxPuGz+1T2DopMsm91yG71lZidkqek2DR/Ey+CmH1Q0fmzAF/ EFUdQSAOueGHCNKmo2tNUWZkdsCceucPRFhKhWYlK0PriNq5cirns3CdG 14uxAtfIX3+Y1mw3H+wh1KZNci789+/8rg9+zqVBqXaVh9L/HkqAci+55 NyuGNnjywJtttP4t5/kwRqvxJ1Ld5aSwB3ep/66ZHP/4xswrsPUXhc+zh g==; X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="16568780" X-IronPort-AV: E=Sophos;i="6.04,273,1695711600"; d="scan'208";a="16568780" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 11:45:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="947292068" X-IronPort-AV: E=Sophos;i="6.04,273,1695711600"; d="scan'208";a="947292068" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 11:45:52 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rDVB0-00000005d1h-0bhM; Wed, 13 Dec 2023 21:45:50 +0200 Date: Wed, 13 Dec 2023 21:45:49 +0200 From: Andy Shevchenko To: Mark Hasemeyer Cc: LKML , Raul Rangel , Frank Rowand , Rob Herring , devicetree@vger.kernel.org Subject: Re: [PATCH v1 4/6] of: irq: Add default implementation for of_irq_to_resource() Message-ID: References: <20231213110009.v1.1.Ifd0903f1c351e84376d71dbdadbd43931197f5ea@changeid> <20231213110009.v1.4.I31d4dd6a7e5a3e5eee05c87b358e63cd1aa0e467@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231213110009.v1.4.I31d4dd6a7e5a3e5eee05c87b358e63cd1aa0e467@changeid> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Dec 2023 11:46:18 -0800 (PST) On Wed, Dec 13, 2023 at 11:00:22AM -0700, Mark Hasemeyer wrote: > Similar to of_irq_to_resource_table(), add a default implementation of > of_irq_to_resource() for systems that don't have CONFIG_OF_IRQ defined. ... > +extern int of_irq_to_resource(struct device_node *dev, int index, > + struct resource *r); It looks like you may put this on a single line as this file has longer lines. Note you do not need "extern" for function. You may even update the header to drop all of them at once. -- With Best Regards, Andy Shevchenko