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=-5.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 85A26C433E0 for ; Tue, 9 Mar 2021 15:49:22 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2107F64FB8 for ; Tue, 9 Mar 2021 15:49:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2107F64FB8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:CC:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=W6u4oK51yIi5V9sQTOYuTkGXVSzyoMORB5FT1f+aiQg=; b=BYznfLu1OZCUp9VZnscb35SkB sQMLZ5I5wPcvVgKFU3jjg3B0Ka4wZtvN9WLAc/3KcB6NCR4fT75jFrZvZqQ6d/SRYVvqBAlDP3+yD G47LSJu1kdFlN0DRPLUq2QvDqNIH3qF6jrmQWOwd42PYffYcgG7RsDkGTrh76QF1DD9rKintL5DQw 1TRpyUQwdxTbtKy75SC29D43ZNu102itHn5OnbK0ggWQKzj28nRaFGQHsnorpNcYLRNA97vpNyOwb b0SUTDGCPVPWIaZP+hzI1X66UucKpGUaVIDBpWZyoI+Bzkj0CwVSyMKvq41BIO9XamV+bEeOcJydl bv6mbgvwQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lJeaU-004zg7-Ox; Tue, 09 Mar 2021 15:47:58 +0000 Received: from szxga06-in.huawei.com ([45.249.212.32]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lJeaP-004zfI-8E for linux-arm-kernel@lists.infradead.org; Tue, 09 Mar 2021 15:47:56 +0000 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Dw01S1LbhzkWMV; Tue, 9 Mar 2021 23:46:20 +0800 (CST) Received: from [10.174.178.48] (10.174.178.48) by smtp.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.498.0; Tue, 9 Mar 2021 23:47:39 +0800 Subject: Re: [PATCH -next] usb: cdns3: imx: mark cdns_imx_resume as __maybe_unused To: Sergei Shtylyov , Peter Chen , Pawel Laszczak , "Greg Kroah-Hartman" , Shawn Guo , Sascha Hauer , Frank Li CC: , , , Hulk Robot References: <20210309131457.1884112-1-weiyongjun1@huawei.com> <03c23018-f26d-0aa2-e319-efb2683d633d@gmail.com> From: "weiyongjun (A)" Message-ID: Date: Tue, 9 Mar 2021 23:47:38 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <03c23018-f26d-0aa2-e319-efb2683d633d@gmail.com> X-Originating-IP: [10.174.178.48] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210309_154753_683946_E23B7607 X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > Hello! > > On 3/9/21 4:14 PM, 'Wei Yongjun wrote: > >> From: Wei Yongjun >> >> The function cdns_imx_resume() may have no callers depending >> on configuration, so it must be marked __maybe_unused to avoid >> harmless warning: >> >> drivers/usb/cdns3/cdns3-imx.c:378:12: warning: >> 'cdns_imx_system_resume' defined but not used [-Wunused-function] >> 378 | static int cdns_imx_system_resume(struct device *dev) >> | ^~~~~~~~~~~~~~~~~~ > Looks like that warning was copied from another kernel, where this function > was named differently? Sorry, it seems I post the wrong patch. I will send v2. Thanks. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel