From patchwork Wed Dec 20 23:54:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Hasemeyer X-Patchwork-Id: 181918 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp85786dyi; Wed, 20 Dec 2023 16:01:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHH2AQN99xM8f5D3m/wr6tfBg6qEKXdRm3bbobohGFUOPBuC23Zc2r25E44aVBYZUH6icVK X-Received: by 2002:a05:622a:14d2:b0:427:7f35:1c29 with SMTP id u18-20020a05622a14d200b004277f351c29mr3797169qtx.84.1703116869004; Wed, 20 Dec 2023 16:01:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703116868; cv=none; d=google.com; s=arc-20160816; b=DO8lZvhb6jXXRyBVwpZfNRP4RmHLh20kDmy0jNSHT98JOUCBa3qFnvzwQfwNIwIKRf oyo2gqrrV+NpF8Hx5jXhWVKX8uD7UvPTbk0vJxFmjjH4RkYmHVPVnzXKE9tWl9mbwWqk 4JVUTApdggMQOmlprbmnbmQE8HDlMV+kBpd0MuMeoCpOT/4UFoBDfvfdrzOm+VYe2QRt Gl7nE/iaLg/uv19Z93Xw4dAzuJz49tgWrvODjvhuUhXfIGTzNdJsD3/6Zl79aufz3Ala nVzb0Cpoj0tiE6QE16/P1iw0hAo1PagdH+KOZ2hU0YUKNvKlR7FAx5yYM3nmnutoQ0mL 57KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=/4vyd1tF7LY6LenXuoft53vwvHTu14aLUC8wddaElsk=; fh=v2Ht5y747k1l/Ai2xsaBh2LNlmR666WlTsnQ09U8XlM=; b=MQQ8PWyhOuZCk+BSj3B0SJikhOhvhv5/5Uz5lgGpf5+UPKE6kDvrWYtIgpc0lq31N/ p1O41glSyhvMlBIt2ex6HILfGzkXoZbdaaOHQfxkx+XV7UODZl+xBmLqBBtZgpGU0SUj emzmGT0ZGBKCoh8K3371yBK5vM8ICDQLkTYpnZwaqZCofhb297oyleRR+trKHfnjOE0W GElUId4uKwEMFHOkmgm6QANCDO8M+/IVjErYb3sijUWukUMab9zJ5IxBAGvE0C9z7toj YXPdm33wMocUcHMJBYFWcv6vXTkT4UfVHnr4EYa8R/hebkHjb2HZeXruzkKssTRcBexk TXbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="YsCoH7/Z"; spf=pass (google.com: domain of linux-kernel+bounces-7672-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7672-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b10-20020ac87fca000000b0042577976e8dsi868280qtk.456.2023.12.20.16.01.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 16:01:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7672-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="YsCoH7/Z"; spf=pass (google.com: domain of linux-kernel+bounces-7672-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7672-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id ACBA21C23CFF for ; Thu, 21 Dec 2023 00:01:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 422EA51C53; Wed, 20 Dec 2023 23:55:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="YsCoH7/Z" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A9DD4FF65 for ; Wed, 20 Dec 2023 23:55:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-io1-f42.google.com with SMTP id ca18e2360f4ac-7b35d476d61so9610539f.0 for ; Wed, 20 Dec 2023 15:55:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1703116525; x=1703721325; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/4vyd1tF7LY6LenXuoft53vwvHTu14aLUC8wddaElsk=; b=YsCoH7/ZbO+dsTFo1Nao4y3nEV+9+WrVNB+fkuNvqRrbjSylGI032V+UsAi2cdEJQw UVoxKCISQfLg7+tk0Qn9pb9oCKrImqgPzxdNjSi+ARpivTBNAYT1rx777OR5LaGAaFgD h6dtebRO0A199MwX/xATjW3l63rVBO2B/0lDc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703116525; x=1703721325; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/4vyd1tF7LY6LenXuoft53vwvHTu14aLUC8wddaElsk=; b=kadc8A4obHdCTweJ9l7H5XHsQS/f6dSfXArqu5G5byp4AF/rlbr8N0adQzQC1zNP0z IzhIKnMOSrmcs9ftmHfaM6yaXuonq5fU+crLBtpaj96UvI5vZMTU5NdK+ytps0wyqnRw Qa1fC+pXJORQOrHu3+Ug/DTUO0HiUfKeVPCIR/qL7bGtRiU3MN9FDgPIH9PCVyxMZiCQ 3kdIi471y65qa6O+qyr16huawwim3sPb04lj8FQ70MAvfKYR6VEUhfErrrU1uXyYwmG2 j7OF9XSO8T6uZK5/6OkK+OrjSReTo6BulqrdjD5BwIh9trac9fe6MN4xAgewiTxNOun1 h+qw== X-Gm-Message-State: AOJu0YyAB8GtTEdsLTy2VRtQfHDWOBtN5kZ55IRGtnVi/yzf1XYc70JM GyFNhOBWUtRrFY3cmPSuJC/sU1bqbHW3c02aEAI= X-Received: by 2002:a05:6e02:1a66:b0:35f:87ac:10d4 with SMTP id w6-20020a056e021a6600b0035f87ac10d4mr12175155ilv.5.1703116525358; Wed, 20 Dec 2023 15:55:25 -0800 (PST) Received: from markhas1.lan (71-218-50-136.hlrn.qwest.net. [71.218.50.136]) by smtp.gmail.com with ESMTPSA id bp22-20020a056638441600b0046b39a6f404sm177805jab.17.2023.12.20.15.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 15:55:24 -0800 (PST) From: Mark Hasemeyer To: LKML Cc: AngeloGioacchino Del Regno , Krzysztof Kozlowski , Tzung-Bi Shih , Raul Rangel , Konrad Dybcio , Andy Shevchenko , Rob Herring , Sudeep Holla , Mark Hasemeyer , Frank Rowand , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH v2 19/22] of: irq: Remove extern from function declarations Date: Wed, 20 Dec 2023 16:54:33 -0700 Message-ID: <20231220165423.v2.19.I319e781c11e6352eb5b6c408dc20bd54a720edbf@changeid> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231220235459.2965548-1-markhas@chromium.org> References: <20231220235459.2965548-1-markhas@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785847473697341690 X-GMAIL-MSGID: 1785847473697341690 The extern keyword is implicit for function declarations. Remove it where possible and adjust the line wrapping accordingly. Signed-off-by: Mark Hasemeyer Acked-by: Rob Herring --- Changes in v2: -New patch include/linux/of_irq.h | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/include/linux/of_irq.h b/include/linux/of_irq.h index 0d73b2ca92d31..a130dcbc4bb45 100644 --- a/include/linux/of_irq.h +++ b/include/linux/of_irq.h @@ -32,27 +32,26 @@ static inline int of_irq_parse_oldworld(const struct device_node *device, int in } #endif /* CONFIG_PPC32 && CONFIG_PPC_PMAC */ -extern int of_irq_parse_raw(const __be32 *addr, struct of_phandle_args *out_irq); -extern unsigned int irq_create_of_mapping(struct of_phandle_args *irq_data); +int of_irq_parse_raw(const __be32 *addr, struct of_phandle_args *out_irq); +unsigned int irq_create_of_mapping(struct of_phandle_args *irq_data); #ifdef CONFIG_OF_IRQ -extern void of_irq_init(const struct of_device_id *matches); -extern int of_irq_parse_one(struct device_node *device, int index, - struct of_phandle_args *out_irq); -extern int of_irq_count(struct device_node *dev); -extern int of_irq_get(struct device_node *dev, int index); -extern int of_irq_get_byname(struct device_node *dev, const char *name); -extern int of_irq_to_resource(struct device_node *dev, int index, struct resource *r); -extern int of_irq_to_resource_table(struct device_node *dev, - struct resource *res, int nr_irqs); -extern struct device_node *of_irq_find_parent(struct device_node *child); -extern struct irq_domain *of_msi_get_domain(struct device *dev, +void of_irq_init(const struct of_device_id *matches); +int of_irq_parse_one(struct device_node *device, int index, + struct of_phandle_args *out_irq); +int of_irq_count(struct device_node *dev); +int of_irq_get(struct device_node *dev, int index); +int of_irq_get_byname(struct device_node *dev, const char *name); +int of_irq_to_resource(struct device_node *dev, int index, struct resource *r); +int of_irq_to_resource_table(struct device_node *dev, struct resource *res, + int nr_irqs); +struct device_node *of_irq_find_parent(struct device_node *child); +struct irq_domain *of_msi_get_domain(struct device *dev, struct device_node *np, enum irq_domain_bus_token token); -extern struct irq_domain *of_msi_map_get_device_domain(struct device *dev, - u32 id, - u32 bus_token); -extern void of_msi_configure(struct device *dev, struct device_node *np); +struct irq_domain *of_msi_map_get_device_domain(struct device *dev, u32 id, + u32 bus_token); +void of_msi_configure(struct device *dev, struct device_node *np); u32 of_msi_map_id(struct device *dev, struct device_node *msi_np, u32 id_in); #else static inline void of_irq_init(const struct of_device_id *matches) @@ -117,7 +116,7 @@ static inline u32 of_msi_map_id(struct device *dev, * implements it differently. However, the prototype is the same for all, * so declare it here regardless of the CONFIG_OF_IRQ setting. */ -extern unsigned int irq_of_parse_and_map(struct device_node *node, int index); +unsigned int irq_of_parse_and_map(struct device_node *node, int index); #else /* !CONFIG_OF && !CONFIG_SPARC */ static inline unsigned int irq_of_parse_and_map(struct device_node *dev,