From owner-svn-src-head@freebsd.org Mon Nov 16 11:53:37 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6ECD12EC8BE; Mon, 16 Nov 2020 11:53:37 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CZSC52ksLz3H9f; Mon, 16 Nov 2020 11:53:37 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 50AEA58CB; Mon, 16 Nov 2020 11:53:37 +0000 (UTC) (envelope-from manu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0AGBrbv1002510; Mon, 16 Nov 2020 11:53:37 GMT (envelope-from manu@FreeBSD.org) Received: (from manu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0AGBrbft002509; Mon, 16 Nov 2020 11:53:37 GMT (envelope-from manu@FreeBSD.org) Message-Id: <202011161153.0AGBrbft002509@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: manu set sender to manu@FreeBSD.org using -f From: Emmanuel Vadot Date: Mon, 16 Nov 2020 11:53:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r367721 - head/sys/dev/mmc/host X-SVN-Group: head X-SVN-Commit-Author: manu X-SVN-Commit-Paths: head/sys/dev/mmc/host X-SVN-Commit-Revision: 367721 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2020 11:53:37 -0000 Author: manu Date: Mon Nov 16 11:53:36 2020 New Revision: 367721 URL: https://svnweb.freebsd.org/changeset/base/367721 Log: dwmmc: dwmmc_switch_vccq is only used in MMCCAM kernel Silence the build for non MMCCAM kernel Modified: head/sys/dev/mmc/host/dwmmc.c Modified: head/sys/dev/mmc/host/dwmmc.c ============================================================================== --- head/sys/dev/mmc/host/dwmmc.c Mon Nov 16 11:38:51 2020 (r367720) +++ head/sys/dev/mmc/host/dwmmc.c Mon Nov 16 11:53:36 2020 (r367721) @@ -143,8 +143,8 @@ static int dma_stop(struct dwmmc_softc *); static void pio_read(struct dwmmc_softc *, struct mmc_command *); static void pio_write(struct dwmmc_softc *, struct mmc_command *); static void dwmmc_handle_card_present(struct dwmmc_softc *sc, bool is_present); -static int dwmmc_switch_vccq(device_t, device_t); #ifdef MMCCAM +static int dwmmc_switch_vccq(device_t, device_t); static void dwmmc_cam_action(struct cam_sim *, union ccb *); static void dwmmc_cam_poll(struct cam_sim *); static int dwmmc_cam_settran_settings(struct dwmmc_softc *, union ccb *); @@ -1418,6 +1418,7 @@ dwmmc_write_ivar(device_t bus, device_t child, int whi return (0); } +#ifdef MMCCAM /* Note: this function likely belongs to the specific driver impl */ static int dwmmc_switch_vccq(device_t dev, device_t child) @@ -1426,7 +1427,6 @@ dwmmc_switch_vccq(device_t dev, device_t child) return EINVAL; } -#ifdef MMCCAM static void dwmmc_cam_handle_mmcio(struct cam_sim *sim, union ccb *ccb) {