Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp856096pxu; Thu, 3 Dec 2020 14:34:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlE9H46fONY1Hy7vB3iEP38XaMhQr+Mm7NWKnXe6+wHQAsbgimspZlO+PAJ7XVoAJ9qlDC X-Received: by 2002:a17:906:7f0b:: with SMTP id d11mr4596600ejr.7.1607034853083; Thu, 03 Dec 2020 14:34:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607034853; cv=none; d=google.com; s=arc-20160816; b=OqEc3NWNgCLZHuAZ86aVHMvMqL3JwfoChGRkOIwpA2pBpWOlYN8rGqP0L2zJqxVadi 1QT0fJEsCUzLCX/b1C7jAjeMiXMcsYjt4x8wvuPJklStVY7usVH1J+MKPxJVfdvfvY/O UA5xl/mlj/6dN5+GsveJqAzwmMzcHcFTlUo3E84JSGgZe3M+lGG+StYCk/Wn5DynDh4v FwPaN1hGKNPZyaFmdfg3oPHi8SnoLiZ1RGkh7mrX9hYsqe65nhGbF70/rKDH/ccL+Hj/ /MyQTCrxXVf89xsaq8VuA9cD2+f9EZ5ufrgy7UnF5tyWagpU3q3PcAWQh7kIZiNxg4Y9 nqtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ORNFvTGg9HuE94eArJFvOC7OqeHCrGdbbMpKwRrfdFI=; b=mFAeuvKOgN2bWq/pt4HACTXUqFKkV85/Xefl+LUzJt3BPhPHVz7Pf9tIFb/J7N6/h5 2FfyKpA0ruM1wdIsNPj16d64y1RcvYBhxutyH4NL+Qk68kCVNxGVp5eHJm+iO1ML1uMq A8JjOLmqyB/ymN/xk26WmcQn/viY7RrZzzj8lW2Rc8SO2owSaPPOr5ElXZltjGCz30ow PfBGvkmDZnczHVw17QpRGixEKoz8eVw17f7tBMrGR/kuuMaJOE2M3SxGb8kfwXR2bIrj 3CX5AMhuqEg7qOSuJ2zQqSEfTH5tPQ6da5PoWcSuOl+KLZZo6mvmpT/PqP3rA23R5nEb 7X5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si1968049edv.139.2020.12.03.14.33.50; Thu, 03 Dec 2020 14:34:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729313AbgLCWbv (ORCPT + 99 others); Thu, 3 Dec 2020 17:31:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:55324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727725AbgLCWbv (ORCPT ); Thu, 3 Dec 2020 17:31:51 -0500 From: Arnd Bergmann Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: Vadim Pasternak , Hans de Goede , Mark Gross , Nathan Chancellor , Nick Desaulniers Cc: Arnd Bergmann , Andy Shevchenko , Michael Shych , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: [PATCH] platform/x86: mlx-platform: remove an unused variable Date: Thu, 3 Dec 2020 23:30:56 +0100 Message-Id: <20201203223105.1195709-1-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann The only reference to the mlxplat_mlxcpld_psu[] array got removed, so there is now a warning from clang: drivers/platform/x86/mlx-platform.c:322:30: error: variable 'mlxplat_mlxcpld_psu' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration] static struct i2c_board_info mlxplat_mlxcpld_psu[] = { Remove the array as well and adapt the ARRAY_SIZE() call accordingly. Fixes: 912b341585e3 ("platform/x86: mlx-platform: Remove PSU EEPROM from MSN274x platform configuration") Signed-off-by: Arnd Bergmann --- drivers/platform/x86/mlx-platform.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c index 598f44558764..6a634b72bfc2 100644 --- a/drivers/platform/x86/mlx-platform.c +++ b/drivers/platform/x86/mlx-platform.c @@ -319,15 +319,6 @@ static struct i2c_mux_reg_platform_data mlxplat_extended_mux_data[] = { }; /* Platform hotplug devices */ -static struct i2c_board_info mlxplat_mlxcpld_psu[] = { - { - I2C_BOARD_INFO("24c02", 0x51), - }, - { - I2C_BOARD_INFO("24c02", 0x50), - }, -}; - static struct i2c_board_info mlxplat_mlxcpld_pwr[] = { { I2C_BOARD_INFO("dps460", 0x59), @@ -456,7 +447,7 @@ static struct mlxreg_core_item mlxplat_mlxcpld_default_items[] = { .aggr_mask = MLXPLAT_CPLD_AGGR_PSU_MASK_DEF, .reg = MLXPLAT_CPLD_LPC_REG_PSU_OFFSET, .mask = MLXPLAT_CPLD_PSU_MASK, - .count = ARRAY_SIZE(mlxplat_mlxcpld_psu), + .count = ARRAY_SIZE(mlxplat_mlxcpld_default_psu_items_data), .inversed = 1, .health = false, }, @@ -495,7 +486,7 @@ static struct mlxreg_core_item mlxplat_mlxcpld_comex_items[] = { .aggr_mask = MLXPLAT_CPLD_AGGR_MASK_CARRIER, .reg = MLXPLAT_CPLD_LPC_REG_PSU_OFFSET, .mask = MLXPLAT_CPLD_PSU_MASK, - .count = ARRAY_SIZE(mlxplat_mlxcpld_psu), + .count = ARRAY_SIZE(mlxplat_mlxcpld_default_psu_items_data), .inversed = 1, .health = false, }, -- 2.27.0