From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19F66ECE588 for ; Tue, 15 Oct 2019 12:25:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E91A82067B for ; Tue, 15 Oct 2019 12:25:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729042AbfJOMZk (ORCPT ); Tue, 15 Oct 2019 08:25:40 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:45826 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726441AbfJOMZk (ORCPT ); Tue, 15 Oct 2019 08:25:40 -0400 Received: from [167.98.27.226] (helo=rainbowdash.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1iKLtR-0001Vn-7s; Tue, 15 Oct 2019 13:25:37 +0100 Received: from ben by rainbowdash.codethink.co.uk with local (Exim 4.92.2) (envelope-from ) id 1iKLtQ-0001QU-JP; Tue, 15 Oct 2019 13:25:36 +0100 From: Ben Dooks To: linux-kernel@lists.codethink.co.uk Cc: Ben Dooks , Marek Behun , linux-kernel@vger.kernel.org Subject: [PATCH] bus: moxtet: declare moxtet_bus_type Date: Tue, 15 Oct 2019 13:25:35 +0100 Message-Id: <20191015122535.5439-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.23.0 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 The moxtet_bus_type object is exported from the bus driver, but not declared. Add a declaration for use and to silence the following warning: drivers/bus/moxtet.c:105:17: warning: symbol 'moxtet_bus_type' was not declared. Should it be static? Signed-off-by: Ben Dooks --- Cc: Marek Behun Cc: linux-kernel@vger.kernel.org --- include/linux/moxtet.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/moxtet.h b/include/linux/moxtet.h index 490db6886dcc..b76231cb60e4 100644 --- a/include/linux/moxtet.h +++ b/include/linux/moxtet.h @@ -94,6 +94,8 @@ struct moxtet_device { unsigned int idx; }; +extern struct bus_type moxtet_bus_type; + extern int moxtet_device_read(struct device *dev); extern int moxtet_device_write(struct device *dev, u8 val); extern int moxtet_device_written(struct device *dev); -- 2.23.0