Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp10112948ybl; Thu, 26 Dec 2019 11:04:21 -0800 (PST) X-Google-Smtp-Source: APXvYqy7scZR6K6NHVzRSlg8WEVHTV8RBfb8mlyxXjo0hnB51FVkXzc4M5IrX6DW7xJC0eTnlnEp X-Received: by 2002:a9d:708f:: with SMTP id l15mr38073742otj.229.1577387061655; Thu, 26 Dec 2019 11:04:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577387061; cv=none; d=google.com; s=arc-20160816; b=ZURipkfSDx0lc+QehEUIrhTJNLynTOZQCL2fIE/WM/tQkcQGL4qNPk3JcoWgN0Yd+3 9nh9gkfPm8qBcpSLIkyK/E5jb/dnmIn74phPCgzjr9x14GaDy/tTqqQC3/U9Ul7jj+59 Q3ommH2j39zcYLqefhevRcbvQM1BHfAzkki4eqt56KToteP0FKAI8JaH7aXryRaOkA+V MM/Y+mEW78lrE/GPwUT2F0GNosWa4KuoTmadZNIDRhnxli4y3SBg72DCZ0HxYua1wwlr ko0XTME5qJffcLZd8YdhCz46SWzIG+2BQaBom7ZTg1V/oCg/ZKI+oQpTtH7PgEqAWXcM yUnA== 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=1HRbjKd35Cia/8/yahM6SicmhvXLmAHSLQ8uWqh3y0o=; b=TOfoxsgzDbJmgeNWYxn/a2H2KsvSiGz2C4fl+lox9I5Uo6TwAdgvhXveYvhgRcqFAP XEpEskAZCb/PyfuuRUfY6UVUirBHKMFOKQCgn78Nut/EFoVGJ8asVDmGAF9o/FYqMYQ6 5ohkBrMg/SQCOS9wyWRmpfWm7oFibsMENNp+2iv41uFcWjdgueADb7VPhKCLKHSeGsIe YHbrVNezeTJmp8cEIZXG/v/eAPQUCrV6NOWk8yOENR5hg44aN8A8mN5bz6w4mq3niFFp vqIN7S5I6RJj8q9u9ORIyHibwo3HReNIVPXiR1vEXnZxYqisycRn6DXAHDKKGV4zO7/0 7v6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=e2RremBe; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13si8027280otd.186.2019.12.26.11.03.56; Thu, 26 Dec 2019 11:04:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-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=@chromium.org header.s=google header.b=e2RremBe; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726480AbfLZTDw (ORCPT + 99 others); Thu, 26 Dec 2019 14:03:52 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:40366 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726511AbfLZTDw (ORCPT ); Thu, 26 Dec 2019 14:03:52 -0500 Received: by mail-pl1-f193.google.com with SMTP id s21so8022432plr.7 for ; Thu, 26 Dec 2019 11:03:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1HRbjKd35Cia/8/yahM6SicmhvXLmAHSLQ8uWqh3y0o=; b=e2RremBeMKCiUD8Ab9pU1/MKomvHp+ebvMQWmzfptDJWx4eI50IQeThvO39NYD814S BNoljz3ka2GKLAeJSzDKRA2CgS7VZhV50ZhGguLdwkBz29NrEXF6UyvSlepm+6vePXJX tadTiNWQvjIaonCRoZvbPyG/Za1hPk1Cbd2os= 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=1HRbjKd35Cia/8/yahM6SicmhvXLmAHSLQ8uWqh3y0o=; b=L506sotisv42VMglSB2NHn+fD1AQ7tWj8twvaS5QADxQ/mfcup0TgiSt2TE2GIu5n+ c1NvslD/XayE0ZEPC8s/HhYrr7zOyIBnFWa03CCQ8cha4pr6ZHKKcdrtQ4GgG+3UUCIk TalQWkf+vDvuxxw+BpZK0dV+MO5sgT5YQ1orbVAObqg+0+5W+fwrzKQD1UJuUu9zixYw gyBUYYCGLBlh8jgphPjUAip+HACuhn7q9PD0wxx0W46jXa39zQTGxHANMUkFwvTLf+Qv Hz3X7G+NYehwfTcNYvvujTOS1voHlsHSgZOFfPsPqP+T2f9idcwobefmHxkPgVKbewxF oFUg== X-Gm-Message-State: APjAAAUr6uf3dlSd4/uKDyTcIa49c/6rqgEjfFk9qpuv1Xl3BMMwvJgk BD3f/x3V0WvbLtg1YD/OLiVRjdS+r2A= X-Received: by 2002:a17:902:6b8a:: with SMTP id p10mr33127202plk.47.1577387031318; Thu, 26 Dec 2019 11:03:51 -0800 (PST) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:e09a:8d06:a338:aafb]) by smtp.gmail.com with ESMTPSA id q64sm12086336pjb.1.2019.12.26.11.03.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2019 11:03:50 -0800 (PST) From: Abhishek Pandit-Subedi To: marcel@holtmann.org, linux-bluetooth@vger.kernel.org Cc: chromeos-bluetooth-upstreaming@chromium.org, Abhishek Pandit-Subedi , Johan Hedberg , linux-kernel@vger.kernel.org Subject: [PATCH] Bluetooth: btbcm: Add missing static inline in header Date: Thu, 26 Dec 2019 11:03:40 -0800 Message-Id: <20191226190340.116205-1-abhishekpandit@chromium.org> X-Mailer: git-send-email 2.24.1.735.g03f4e72817-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This fixes a double definition error when CONFIG_BT_BCM is not set. Signed-off-by: Abhishek Pandit-Subedi --- drivers/bluetooth/btbcm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bluetooth/btbcm.h b/drivers/bluetooth/btbcm.h index 3c7dd0765837..014ef847a486 100644 --- a/drivers/bluetooth/btbcm.h +++ b/drivers/bluetooth/btbcm.h @@ -78,13 +78,13 @@ static inline int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr) return -EOPNOTSUPP; } -int btbcm_read_pcm_int_params(struct hci_dev *hdev, +static inline int btbcm_read_pcm_int_params(struct hci_dev *hdev, struct bcm_set_pcm_int_params *params) { return -EOPNOTSUPP; } -int btbcm_write_pcm_int_params(struct hci_dev *hdev, +static inline int btbcm_write_pcm_int_params(struct hci_dev *hdev, const struct bcm_set_pcm_int_params *params) { return -EOPNOTSUPP; -- 2.24.1.735.g03f4e72817-goog