From patchwork Thu Jun 4 20:09:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1303716 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=konsulko.com Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49dH1Y0C9lz9sSd for ; Fri, 5 Jun 2020 06:09:36 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A757F808E0; Thu, 4 Jun 2020 22:09:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 4F47E813B3; Thu, 4 Jun 2020 22:09:32 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 566D88047E for ; Thu, 4 Jun 2020 22:09:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qt1-f194.google.com with SMTP id y1so6394531qtv.12 for ; Thu, 04 Jun 2020 13:09:29 -0700 (PDT) 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; bh=oYWqSlxeYKeFubp176RwbOwCKlzeeJ/JbGuGaeK2cwA=; b=D+rIkWMg5V8tbD2cIWiuyVH03BIyBmSXg61JBeRV3V50r8op2Onwov8zBX3j8JFi4Q Uhhtc6MRDdz/tLm6deChFbJMSzF3ZPhsww69ehuMA/dO4ZzWI4rlynOFr2wrcfqoMkmb 1S3N/8OYNI5R+AR7l9i4iu/U/ihNpXYzuhUMz6vUuhe7GvH84wc+9c8sTl2TNUr8S7Pq KUSQIa6H48WdgS0T/a13/90rYeQSA/nUwA1N/1SXDpalP9NDCnkEoPf0m5Y8mTJW16pk T4snGE08yKzdM/9PI0qiAnAEFqstkAnQWfV/arkJW3ebIcA4r40S4TWhHJd2x1a13Arg IR0A== X-Gm-Message-State: AOAM530f/FdLFKFXwBtrFVAgQo0BBwAzjdZLT5EzQs/n5zEUgTdegVpD FAgDYELi1zC1IQ9nUgzEaruuae+A+w== X-Google-Smtp-Source: ABdhPJywtAyGjpBXZSsx4Es1jlxoRxcwL4dlQ11zLZxayX6ZGoA3hWQOVVoDV/o3jQmPtLUJ5HaPqg== X-Received: by 2002:aed:2063:: with SMTP id 90mr6547525qta.48.1591301367846; Thu, 04 Jun 2020 13:09:27 -0700 (PDT) Received: from bill-the-cat.local (2606-a000-1401-826f-79c7-9e70-bb1f-ea59.inf6.spectrum.com. [2606:a000:1401:826f:79c7:9e70:bb1f:ea59]) by smtp.gmail.com with ESMTPSA id l8sm5953186qtb.57.2020.06.04.13.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 13:09:27 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: Marek Vasut Subject: [PATCH] usb: musb-new: Fix unused function warnings from clang Date: Thu, 4 Jun 2020 16:09:24 -0400 Message-Id: <20200604200924.5998-1-trini@konsulko.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean The functions dsps_readb and dsps_writeb are only used by code that is under a !__UBOOT__ guard today. Add that guard around these functions as well to avoid the warning. Cc: Marek Vasut Signed-off-by: Tom Rini Reviewed-by: Marek Vasut --- drivers/usb/musb-new/musb_dsps.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/musb-new/musb_dsps.c b/drivers/usb/musb-new/musb_dsps.c index eb590885bc53..1d94249c092e 100644 --- a/drivers/usb/musb-new/musb_dsps.c +++ b/drivers/usb/musb-new/musb_dsps.c @@ -42,14 +42,18 @@ * avoid using musb_readx()/musb_writex() as glue layer should not be * dependent on musb core layer symbols. */ +#ifndef __UBOOT__ static inline u8 dsps_readb(const void __iomem *addr, unsigned offset) { return __raw_readb(addr + offset); } +#endif static inline u32 dsps_readl(const void __iomem *addr, unsigned offset) { return __raw_readl(addr + offset); } +#ifndef __UBOOT__ static inline void dsps_writeb(void __iomem *addr, unsigned offset, u8 data) { __raw_writeb(data, addr + offset); } +#endif static inline void dsps_writel(void __iomem *addr, unsigned offset, u32 data) { __raw_writel(data, addr + offset); }