Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3065972imm; Fri, 19 Oct 2018 04:39:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV63CslH/CwqHziNtdlNnsZYNGGQCbJIz+NHHv5Njm5PnCl1/6Wx4QFTkEbBcr4sLqXR29XNU X-Received: by 2002:a63:a043:: with SMTP id u3-v6mr5507224pgn.145.1539949148854; Fri, 19 Oct 2018 04:39:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539949148; cv=none; d=google.com; s=arc-20160816; b=fBz6/As+7Dnea9wzEseAyuQ/YqTBm8Abi38v+Grcer5dcZ6L5cRczq1cHJsj5YrdRu LDyqgdqXLCa8pFGAXZ638hNWq3cpo5FVky56afrbAyyZD+NYOYntYl2R5BHMa5NI2d6+ Vm6Jugw7EiNWw6tmXlB0qoHawggB+IHeIkTFbOFFHoDgaX3hHYAh2eVmBahdX3SMs1G6 l/BvzspEh6BOxUw8rCttz9hKT0oclMD8OWOTz8f40bmJ3YOFP7EO3m+gZBK1yC+EDNlL Lj7wJZ6fYpInSwNxUAXZ1sMjcdgvLpILXiRyOiDUmDWtcXQlJq43+6BWMLU69i0esqfM 29Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bMp2uAnUhfM01Hv5BXda1P5I6vge9AFG4+PbEOl9n4I=; b=i7diAzoQSuuP1TaeMaPC7TPT5RVEPDPCurDOFZu4Hh/cbq1ba9Pi9WI4tp23ov2CvG 8Ns3Ye5h0n1iz51bMQCV6UU1OKYhke52BMKPbCswLIXOg12A1C4b2IrYzmjI5eV/MDox O7SI7WRbwi4n56SxZ1lSbIimx4w5Zl4D2eZ/NH3YiDRtoSehiV8v7wzYPImJcuX0pFuB Nx0MzrNrJ8mqNksefDuVBktzctSWRYcPcKb3P8KCWRxjTGZQq/Nl1yRYY/qAAMc3/LRt z2Le0GqxftcELq7BrWxGzUrbkXXDC0GZK2+5ZojBzMPIuvmPiHbMIwQS9PZZnlNrN6Ud HoVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dePuGJ48; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68-v6si23452651pld.314.2018.10.19.04.38.53; Fri, 19 Oct 2018 04:39:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dePuGJ48; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727459AbeJSToL (ORCPT + 99 others); Fri, 19 Oct 2018 15:44:11 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:40985 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727004AbeJSToL (ORCPT ); Fri, 19 Oct 2018 15:44:11 -0400 Received: by mail-qk1-f194.google.com with SMTP id g13-v6so1141069qke.8; Fri, 19 Oct 2018 04:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bMp2uAnUhfM01Hv5BXda1P5I6vge9AFG4+PbEOl9n4I=; b=dePuGJ481WNaJtIvzhmER7VLX1AU31u9rTCOILESfD7QN7En6Rh2CrKD1lbym5xj6I Dpdm3AfqGX2GU6UhvKnBLLso8F4UVO0eqONJBzDc2sfynHG0BXeKgHtYFXird+QGULgJ TXDdytoHxlSNVVdu7+t5I5MroJFj0rhRlDpSYpzoKT8u3bh3fPiD2ijaIBtJ11Z6J/qU Gac7G6z4b/tk3y6oY3/qa1xcoBcCaB9qV322aSeE0ChwPtM+TexoqqAShI1oTrms2gLf /sqti+Ht8uQgvRmqysAxH9k/dlgJfXPp6shksZCEgQoJU2dxRsFwvXLMHfqpX3KDrgK1 wC6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bMp2uAnUhfM01Hv5BXda1P5I6vge9AFG4+PbEOl9n4I=; b=ZUL+Mut06/1n4U4bvVOO5pVt+s706Mn3gBcfDC1ejJ1aOjEUMaz9E/SBe6AWW4nY/E RUTKfaIBGtf6DmCWeMJyBSpclWWBpODV5gcp/wBWPzyWas3hhjHUwaLmMkAbMMt5tTx0 nO04hAxlv0vMhBGe3utPK7fGF3/ys0zIpCk2uo0qWBoo2mbjELARy4OPfstnoEy4lEm6 +4mF/6pP3JblX9R8ndvsEYnJXfEgA4VSSppcZTrDf8LHBLOpy2PDeyNihG+1yxuYtNcv EvluYccWGqNKpOtE8SMO3EOZDxbbiOprr6d0aRquGMH9206tdpT+ksyeRLgSpDfJKQYw Xg5Q== X-Gm-Message-State: ABuFfogRbQRaf7+BOM30wMUm4Kcy0DD4MBgv8f248qRj0koRT1dXHJyE NmDDHnkbmWXpkInNVPqF7BhkFIczyoqGADvIAwI= X-Received: by 2002:ae9:c307:: with SMTP id n7-v6mr32357016qkg.70.1539949108770; Fri, 19 Oct 2018 04:38:28 -0700 (PDT) MIME-Version: 1.0 References: <20180926052115.21223-1-natechancellor@gmail.com> In-Reply-To: From: Andy Shevchenko Date: Fri, 19 Oct 2018 14:38:17 +0300 Message-ID: Subject: Re: [PATCH] platform/x86: mlx-platform: Properly use mlxplat_mlxcpld_msn201x_items To: Vadim Pasternak Cc: natechancellor@gmail.com, Darren Hart , Andy Shevchenko , Platform Driver , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 26, 2018 at 10:43 AM Vadim Pasternak wrote: > > > > > -----Original Message----- > > From: Nathan Chancellor > > Sent: Wednesday, September 26, 2018 8:21 AM > > To: Vadim Pasternak ; Darren Hart > > ; Andy Shevchenko > > Cc: platform-driver-x86@vger.kernel.org; linux-kernel@vger.kernel.org; Nathan > > Chancellor > > Subject: [PATCH] platform/x86: mlx-platform: Properly use > > mlxplat_mlxcpld_msn201x_items > > > > Clang warns that mlxplat_mlxcpld_msn201x_items is not going to be emitted in > > the final assembly because it's only used in ARRAY_SIZE right now, which is a > > compile time evaluation since the array's size is known. > > > > drivers/platform/x86/mlx-platform.c:555:32: warning: variable > > 'mlxplat_mlxcpld_msn201x_items' is not needed and will not be emitted [- > > Wunneeded-internal-declaration] static struct mlxreg_core_item > > mlxplat_mlxcpld_msn201x_items[] = { > > ^ > > 1 warning generated. > > > > It appears this was a copy and paste mistake from when this item was first > > added. Use the definition in mlxplat_mlxcpld_msn201x_data so that Clang no > > longer warns. > > Pushed and applied, thanks! > > Link: https://github.com/ClangBuiltLinux/linux/issues/141 > > Fixes: a49a41482f61 ("platform/x86: mlx-platform: Add support for new > > msn201x system type") > > Signed-off-by: Nathan Chancellor > > --- > > Acked-by: Vadim Pasternak > > > drivers/platform/x86/mlx-platform.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx- > > platform.c > > index d89936c93ba0..c2c3a1a19879 100644 > > --- a/drivers/platform/x86/mlx-platform.c > > +++ b/drivers/platform/x86/mlx-platform.c > > @@ -575,7 +575,7 @@ static struct mlxreg_core_item > > mlxplat_mlxcpld_msn201x_items[] = { > > > > static > > struct mlxreg_core_hotplug_platform_data mlxplat_mlxcpld_msn201x_data = { > > - .items = mlxplat_mlxcpld_msn21xx_items, > > + .items = mlxplat_mlxcpld_msn201x_items, > > .counter = ARRAY_SIZE(mlxplat_mlxcpld_msn201x_items), > > .cell = MLXPLAT_CPLD_LPC_REG_AGGR_OFFSET, > > .mask = MLXPLAT_CPLD_AGGR_MASK_DEF, > > -- > > 2.19.0 > -- With Best Regards, Andy Shevchenko