From patchwork Thu May 20 09:22:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 443218 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp2174486jac; Thu, 20 May 2021 03:56:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzQYleGJ6UtPlXKs75EmqAO6uuHxPGqTO+1iJy2VZtUDdMv6OzhIB3IkJCxnffSipNH0tQ X-Received: by 2002:a05:6e02:1985:: with SMTP id g5mr4367421ilf.103.1621508217494; Thu, 20 May 2021 03:56:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621508217; cv=none; d=google.com; s=arc-20160816; b=PHKQ3UAQVGne9ZoMKcDqOs7F8BRbwdF06nLm75MJ5waBinQuQQjkYXofWG9eJHuNTj wGFuXm763AQTZm6rIFUT5K/GKyBKH9LFxKvZaXr8gzWAN7ejTzNwuho/0GObmzZWXKb6 qXP+jneOrmV6sKB+d/F8YW247LATka6uR7RkNVSShECHbna1LXiv98Y+8j3XynwwMxr0 iVFAVG7ORT0lDRDfxg3cta6rKcp2LDqAJjR9zKNqkWVzHVWRX1y2RQHL7n3cDRe6EvRh 7Kc/FPYj4RLJ6SgLjfijI5q+N1hSTPIwhsyKZJVzss0GIgH+IMYIfzbsEQC4Pr02dGrl 8+wg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bvP2nyPgO4lHXwTh3sCDbCR887dv6EMsnR3tIgpv3p4=; b=nmeX3dGXIsKB+A9S6Wk8szqSa06SHu/l6hgDiH5rK2miQ9oDquGnEqFlm+H8tiOrsd y7HYU2w4JDs7YUjtl5MxnIOCWyJyuTa+JHcddXSC/2KaBV+de+mOug/GLgvl0DR1/9wt DWO0afA+yDdcv77FShjixCyhLAMHxXwJIraO+6pkZJwgX6Pm4PUE/7n18odeoP9m+tS1 xyBWfqwrm3c5zSzpTWU/CAVIUJ710cjyOv04st/2Tznrg8QhDm+VRFCrLbgaC2zC4u0t l4Qw/rjqvmDxtFksn2IpZVDLPULTqCrdNDfVNrkmXXdmNFieIwdcQRNjapACpWMU+TI1 7lVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bajhpbXS; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g9si2132846ild.113.2021.05.20.03.56.57; Thu, 20 May 2021 03:56:57 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bajhpbXS; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239168AbhETK6H (ORCPT + 12 others); Thu, 20 May 2021 06:58:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:52232 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238218AbhETK4A (ORCPT ); Thu, 20 May 2021 06:56:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AB56E61CE6; Thu, 20 May 2021 10:01:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504895; bh=wEos7WXOMHm+jSsREr1wT7HK3fZ2ULV1lTmouuYlNw4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bajhpbXSMLkGEfDOhRJsHR9xdUuNKeEM++NwteVIwN9tHqrNGFA+qkYOv8PG6OLKS aGatFO8FSpoJkKtrqLGooSMLeHeIdewdJmsZb57tln/nM92XhgXkv8xEUKZawvGlEC p/y8hmo3Nbo4HyvRAJbBO5Sg9WpSk74XyiDAuRpM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.9 129/240] scsi: fcoe: Fix mismatched fcoe_wwn_from_mac declaration Date: Thu, 20 May 2021 11:22:01 +0200 Message-Id: <20210520092112.993458670@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092108.587553970@linuxfoundation.org> References: <20210520092108.587553970@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann [ Upstream commit 5b11c9d80bde81f6896cc85b23aeaa9502a704ed ] An old cleanup changed the array size from MAX_ADDR_LEN to unspecified in the declaration, but now gcc-11 warns about this: drivers/scsi/fcoe/fcoe_ctlr.c:1972:37: error: argument 1 of type ‘unsigned char[32]’ with mismatched bound [-Werror=array-parameter=] 1972 | u64 fcoe_wwn_from_mac(unsigned char mac[MAX_ADDR_LEN], | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from /git/arm-soc/drivers/scsi/fcoe/fcoe_ctlr.c:33: include/scsi/libfcoe.h:252:37: note: previously declared as ‘unsigned char[]’ 252 | u64 fcoe_wwn_from_mac(unsigned char mac[], unsigned int, unsigned int); | ~~~~~~~~~~~~~~^~~~~ Change the type back to what the function definition uses. Link: https://lore.kernel.org/r/20210322164702.957810-1-arnd@kernel.org Fixes: fdd78027fd47 ("[SCSI] fcoe: cleans up libfcoe.h and adds fcoe.h for fcoe module") Signed-off-by: Arnd Bergmann Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- include/scsi/libfcoe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.30.2 diff --git a/include/scsi/libfcoe.h b/include/scsi/libfcoe.h index 6be92eede5c0..a911f993219d 100644 --- a/include/scsi/libfcoe.h +++ b/include/scsi/libfcoe.h @@ -261,7 +261,7 @@ int fcoe_ctlr_recv_flogi(struct fcoe_ctlr *, struct fc_lport *, struct fc_frame *); /* libfcoe funcs */ -u64 fcoe_wwn_from_mac(unsigned char mac[], unsigned int, unsigned int); +u64 fcoe_wwn_from_mac(unsigned char mac[MAX_ADDR_LEN], unsigned int, unsigned int); int fcoe_libfc_config(struct fc_lport *, struct fcoe_ctlr *, const struct libfc_function_template *, int init_fcp); u32 fcoe_fc_crc(struct fc_frame *fp);