Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0CDBC7618A for ; Mon, 20 Mar 2023 11:59:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230024AbjCTL7X (ORCPT ); Mon, 20 Mar 2023 07:59:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230114AbjCTL7V (ORCPT ); Mon, 20 Mar 2023 07:59:21 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 622EB44B6; Mon, 20 Mar 2023 04:59:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679313560; x=1710849560; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ae9Y8B1H3DR2CpwT8EmI0bUU2kuCt5ev5+Cua1MKlY4=; b=jHC6iK+OFy2z0Z76f4N17DCVIT79E+wkRoicV3lM/39El1C+fZ1K/vnH wvlBY4mjEu0nD/Gy8OCnhGk54O0ggWB5rUT54ya3eho0/c8cMEgAenKm6 5+8N69/sbcpsJrQFaDrPSZGnl7H7Lzmyd6dAd++Qcd8uOGaq7jui2Fdjt YdRH2bv/XWEg8RuDYXJMPaeJsv/e2VRJT+XNA9OqcmhkyS+kZUml8/3xy TOUE/d3cnoXGVgMe2xpRM4qBWzHhNiU9mQxmzrn105AL763INPwTn28gb 1Jk0Z6+Mp1ju+2ChmUud2dg8Bo8ovroMKmW9a81cHCGr2OslsoT4qzlwZ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10654"; a="403511842" X-IronPort-AV: E=Sophos;i="5.98,274,1673942400"; d="scan'208";a="403511842" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2023 04:59:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10654"; a="824451370" X-IronPort-AV: E=Sophos;i="5.98,274,1673942400"; d="scan'208";a="824451370" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 20 Mar 2023 04:59:15 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 20 Mar 2023 13:59:14 +0200 Date: Mon, 20 Mar 2023 13:59:14 +0200 From: Heikki Krogerus To: Tom Rix Cc: linux@roeck-us.net, gregkh@linuxfoundation.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, nathan@kernel.org, ndesaulniers@google.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, llvm@lists.linux.dev Subject: Re: [PATCH] usb: typec: tcpci_mt6360: remove unused mt6360_tcpc_read16 function Message-ID: References: <20230319141053.1703937-1-trix@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230319141053.1703937-1-trix@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 19, 2023 at 10:10:53AM -0400, Tom Rix wrote: > clang with W=1 reports > drivers/usb/typec/tcpm/tcpci_mt6360.c:46:19: error: unused function > 'mt6360_tcpc_read16' [-Werror,-Wunused-function] > static inline int mt6360_tcpc_read16(struct regmap *regmap, > ^ > This function is not used, so remove it. > > Signed-off-by: Tom Rix Reviewed-by: Heikki Krogerus > --- > drivers/usb/typec/tcpm/tcpci_mt6360.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/usb/typec/tcpm/tcpci_mt6360.c b/drivers/usb/typec/tcpm/tcpci_mt6360.c > index 1b7c31278ebb..6fa8fd5c8041 100644 > --- a/drivers/usb/typec/tcpm/tcpci_mt6360.c > +++ b/drivers/usb/typec/tcpm/tcpci_mt6360.c > @@ -43,12 +43,6 @@ struct mt6360_tcpc_info { > int irq; > }; > > -static inline int mt6360_tcpc_read16(struct regmap *regmap, > - unsigned int reg, u16 *val) > -{ > - return regmap_raw_read(regmap, reg, val, sizeof(u16)); > -} > - > static inline int mt6360_tcpc_write16(struct regmap *regmap, > unsigned int reg, u16 val) > { > -- > 2.27.0 -- heikki