Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp750704ybf; Fri, 28 Feb 2020 07:01:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyYLbBq17b8D1kh4DP/cipbq9v3z1BE3Ksi1ZCikAPLYIFRfASNM4T+jOhbe7oMdv0+xpd8 X-Received: by 2002:a9d:740d:: with SMTP id n13mr3818858otk.140.1582902069654; Fri, 28 Feb 2020 07:01:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582902069; cv=none; d=google.com; s=arc-20160816; b=l//axwoXkLJiys5tVY7+O/YnslmXJxM8x/oX6MzuuYZDDCPYR2TnyrXUHI5bZt4pnv fBaWD9Iq7VUv+pkTmyAziL1H91yCx6z7N7fdxKtbSDE+BzyUlQTzP4oaivaykOJlImcf BvgR9EPWRpgCiSVhTBmKWDXuILv4kMp5E2HO5bdr6kgSS3QK0n7rIJMGPAj9Tfz9ra5J nOYniXFLH6VQtvvl1UIKtMZc+J95AQB+cAWs7HNVRBX1yU312HnmkzaLH9D9edaWbBWI Mw+jQktR4UAoeKQ/OI0u86F5qNpJSoUoT7VxEjrNFTS1B3VSV2ve95zlBYqLGZxrZW2X 5O3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=M5EizECLIpIUfC0QN1DsU3CZsuQMZC0Kr0ghGHK94gY=; b=qFZLhHYpZseiAZbiaxikdD/71v9kNZQFFlFHRkoDBp50BA7zTuZIMVlMpEm5q01ojP aBOysGk5+H0IgQpnOTYV35jkN4+BU4wtsbOpb29bZxlN589vQvbmQ1aZe2Czk81UqS2w LsB0txGm+u1iow9NMdOHxEzg4leNWf4HVxbAHEY2SDrwU0cvuN2bDZEZS3aNdYHitm3A /NzweyNNwWa3Vpp5X/cWZknzNFy8QnAY0q5q1pkSbtPUz5MWH30aFlKwa9cuiy4RWlFX FXidFX2rHnfJhuS90HGnWz/1OS6orRnvT+UGbn6Kl0TboR1prsc37ngEza9S2tdXPCzh fBZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dM53bfJA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g25si1800226otp.20.2020.02.28.07.00.55; Fri, 28 Feb 2020 07:01:09 -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; dkim=pass header.i=@linaro.org header.s=google header.b=dM53bfJA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727192AbgB1O7v (ORCPT + 99 others); Fri, 28 Feb 2020 09:59:51 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:55525 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727154AbgB1O7t (ORCPT ); Fri, 28 Feb 2020 09:59:49 -0500 Received: by mail-wm1-f66.google.com with SMTP id q9so3471288wmj.5 for ; Fri, 28 Feb 2020 06:59:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=M5EizECLIpIUfC0QN1DsU3CZsuQMZC0Kr0ghGHK94gY=; b=dM53bfJArZO9qb5NtLhcf9fc9MxXTPGgqO3tpgopcYReBgUho5eqi1N4rMXS9hsPIO bbkpxg0yo51Fvf4BwzAb4CfC2sD63X2WtvYWPLv7cWyQJCSog1KpwF/phVOuKjfH99JJ si+flQaseTvCB76w9gaIft838bkEKFINaKQPDPUJqbRvPBdgdGK4dq3u9k7rwTn2eefk +8h1z3G9nTC219sIi3SczvSOuhixetoUyuZS3is+6yOodcVIRq0cvQOlyKQkOqHjExts cesC9CkNqVWYffLyDEpvK9r+ytutG+WzBm0nWlZm9LOR53/lp5I+OvPt7g2WJhONK3WZ i+kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=M5EizECLIpIUfC0QN1DsU3CZsuQMZC0Kr0ghGHK94gY=; b=WNgT2pSYy9eJ5+lmkGDQ2/q+eQDfOQlrBo0gmP0khcLGZ0Vd0EwLKlV44KAG2qVG00 iUOvuTb4ckoz7cLswPYOVBlgafz0v77gTOZekKD6LdZ+Ty6YnjZ4VNyBGSCEa5gPvQKc 9FRn9TCNiTyRCLCyC+2AjCR3q0cA2GX6/Ht+u/+3c+RLgQYVTFmzBVnHbECdJRJayXpX WP0tIdob9J0g6+yD9QmlZYfrROHSmE8dPThTLm83DjjJrrsqMxUOi4n9d+YdcKrSQNg6 Gs5NoSjmA3f92oyTH+E4qDAzBEkTsVyP6G6y9HTpuQZkWRqtV4H8Ulq7WISqRd3v5LGP PByg== X-Gm-Message-State: APjAAAVGXRwj3CNQTKU10V6iHEethYnGbKbiJiYGQTcrHfKJKkclvaER nSYoDe4std74nfUMugNcqW07hNemU1g= X-Received: by 2002:a1c:1d06:: with SMTP id d6mr4888765wmd.99.1582901988027; Fri, 28 Feb 2020 06:59:48 -0800 (PST) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id n3sm2659348wmc.27.2020.02.28.06.59.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Feb 2020 06:59:47 -0800 (PST) From: Georgi Djakov To: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, georgi.djakov@linaro.org, evgreen@chromium.org, bjorn.andersson@linaro.org Subject: [PATCH] interconnect: Mark all dummy functions as static inline Date: Fri, 28 Feb 2020 16:59:45 +0200 Message-Id: <20200228145945.13579-1-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are a few dummy stub functions that are not marked as static inline yet. Currently this header file is not included in any other file outside of drivers/interconnect/, but that might not be the case in the future. If this file gets included and the framework is disabled, we will be see warnings. Let's fix this in advance. Signed-off-by: Georgi Djakov --- include/linux/interconnect-provider.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/interconnect-provider.h b/include/linux/interconnect-provider.h index 0c494534b4d3..5b64e267bfb3 100644 --- a/include/linux/interconnect-provider.h +++ b/include/linux/interconnect-provider.h @@ -117,7 +117,7 @@ static inline struct icc_node *icc_node_create(int id) return ERR_PTR(-ENOTSUPP); } -void icc_node_destroy(int id) +static inline void icc_node_destroy(int id) { } @@ -126,16 +126,16 @@ static inline int icc_link_create(struct icc_node *node, const int dst_id) return -ENOTSUPP; } -int icc_link_destroy(struct icc_node *src, struct icc_node *dst) +static inline int icc_link_destroy(struct icc_node *src, struct icc_node *dst) { return -ENOTSUPP; } -void icc_node_add(struct icc_node *node, struct icc_provider *provider) +static inline void icc_node_add(struct icc_node *node, struct icc_provider *provider) { } -void icc_node_del(struct icc_node *node) +static inline void icc_node_del(struct icc_node *node) { }