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=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 EE4F8C3A59C for ; Fri, 16 Aug 2019 17:33:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C55882171F for ; Fri, 16 Aug 2019 17:33:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565976828; bh=iTWDKy7i46AGTrrCkTa1IC9HRZoGPU9Ot5ficdX+Qe4=; h=In-Reply-To:References:Subject:From:Cc:To:Date:List-ID:From; b=0O8qLhWlezNwY7pZc/NkJebCt0pXE987ApHsQSLHjFscXTz8Go5XuDV/hfwtceyi7 sFJbn1SIfbCzc8e6BW5Ul1aaefx9mms26AluGlyduICgDFKlA6fU1rYOnqaMNF81aP KDfdgtw/niOBGFMGidNlxzNaxP73pRNc4mJdN18U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727561AbfHPRds (ORCPT ); Fri, 16 Aug 2019 13:33:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:53992 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726654AbfHPRdq (ORCPT ); Fri, 16 Aug 2019 13:33:46 -0400 Received: from kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 766E82086C; Fri, 16 Aug 2019 17:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565976825; bh=iTWDKy7i46AGTrrCkTa1IC9HRZoGPU9Ot5ficdX+Qe4=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=yQH2QSy2LVGYJfDgQnhKokR0BbtvYvrDV32d8I/eO7p423knqPRQmxBrtTVo5O7Ta RUsyrh7tBGeHnTHwn3OtWwga8a23vZ7geqX9sOLQQtXu7xn+E7S/zXMLfHrI8y8Isw iaBItVGnikwPApprJjYpt96Z/JSlVePWEzuSxdTA= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190816141132.55060-1-yuehaibing@huawei.com> References: <20190816141132.55060-1-yuehaibing@huawei.com> Subject: Re: [PATCH -next] clk: npcm7xx: remove unused code From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, openbmc@lists.ozlabs.org, YueHaibing To: YueHaibing , avifishman70@gmail.com, benjaminfair@google.com, mturquette@baylibre.com, tali.perry1@gmail.com, tmaimon77@gmail.com, venture@google.com, yuenn@google.com User-Agent: alot/0.8.1 Date: Fri, 16 Aug 2019 10:33:44 -0700 Message-Id: <20190816173345.766E82086C@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting YueHaibing (2019-08-16 07:11:32) > drivers/clk/clk-npcm7xx.c:365:48: warning: > npcm7xx_divs_fx defined but not used [-Wunused-const-variable=3D] > drivers/clk/clk-npcm7xx.c:438:43: warning: > npcm7xx_gates defined but not used [-Wunused-const-variable=3D] >=20 > The two variables are never used, so remove them, > also remove related type declarations. >=20 > Reported-by: Hulk Robot > Signed-off-by: YueHaibing > --- Maybe we should register the gates?