Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp457807rwd; Wed, 14 Jun 2023 19:25:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6l31FITXv/ItYEO4pP0nEOAy4ZSPGVGr5dN29GZtiMCUQBm86YB+GVDn+DL1SXRtpR223W X-Received: by 2002:a17:906:ef03:b0:94a:35d1:59a with SMTP id f3-20020a170906ef0300b0094a35d1059amr18526275ejs.14.1686795907070; Wed, 14 Jun 2023 19:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686795907; cv=none; d=google.com; s=arc-20160816; b=0lz2mqpU1B55dJyq2o6dgKJ7naUp/o8BC/ydMpOFmLQ0WEfvFBGZqNg/vvj8nbqdIe Xhl2vJF5M383wzxvAJlG2WxMh0Ye2YEBoK+z7Ii7cwbYs5NadRfC/QAvIfDzwqsnN17f Th+1yb80PZG+6Aw4UULZUDOsjpJX7PxCTYpDMq4+c4ytVfw0CAuDJ55Z7pZRiCuI5IYi fgdjOwI+UWarv+CN41uVD14OYR9RFw9EjceghCjIJMOllboCdnONScjKLZKO7p+fUkMX h5+5nXOdr4lxt4MPn4gFQP9CXCcmv6k7VRsRIJ7sWs8sbpRS/jxH61RRpkRA81HHHoEm lOZQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AdkWYI7NNESNqwM1JoBBeU02ine8N/+vT2OqCf2mekg=; b=onsgAT4OIhR5/tx6osWoglf5igLb5/8jS5HEJjZD1pQHlrNz8Ofpl/O6ry94H4S04a Ena5g3Qfwv1QbcqS7uEGs15kgFbds0bslgy52OKS7JVTP6fWYywVrryGXpNE7bDpk0pF vXCCZNpcBobASWYx3zAyJZqjPjHUdUn8TEm7j0GgCeL9QbxhkVtlvJj9lcMM8MjzbNfa INnfno/jU7BvxOk4CVisajonAYbnReD+jW1dULZuTLehYw8FFYh0q4t8AOBh3qB6FwLG 0YbylqjKWVo0VmS8wP+suzajFPrw9uoONe7wfIHHxzaXLXRXqDzab7N9wrRapn9h2SGV IhQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b="yUEt/TYY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ce17-20020a170906b25100b00965be3494fcsi8280672ejb.60.2023.06.14.19.24.42; Wed, 14 Jun 2023 19:25:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b="yUEt/TYY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241054AbjFOCQl (ORCPT + 99 others); Wed, 14 Jun 2023 22:16:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238317AbjFOCQg (ORCPT ); Wed, 14 Jun 2023 22:16:36 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D8E11BE8; Wed, 14 Jun 2023 19:16:35 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35EKJ3Jo021119; Thu, 15 Jun 2023 02:16:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2023-03-30; bh=AdkWYI7NNESNqwM1JoBBeU02ine8N/+vT2OqCf2mekg=; b=yUEt/TYY9EvVM1apDd3VFbtZpNR1LIvzy87NlI/UH+XNsDpdxlP7YeYxHMEOHYSfnCO7 eD0lVhsQ4PhGn1qkAUlQH5sWEmrUhIpKkrCzpg20E63s9qdmrB8dikyechFEqpjKKqsp Ch6jTVmGwsq/RBML79JPOyB8PSXsO5TqUaVTmdw800jPFJoKMGSRNmFX5PFpmqNCsxvZ N5mZHFgQjK6pxVtqPkCi13vlwFWpKEaSYleRddUopTxixwvrC53RSGSCi+xcwFaoL1Dm +9GCYkcfoPWTA+eRUK/bIBURBOHVuPziislyt18B+I+d5Wma1G6Bw8Vc5GWR2w3ndOBx cQ== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r4fkdrsq6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Jun 2023 02:16:29 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35ENrXI7016344; Thu, 15 Jun 2023 02:16:29 GMT Received: from pps.reinject (localhost [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3r4fm6bnxe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Jun 2023 02:16:29 +0000 Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 35F2EE7H027953; Thu, 15 Jun 2023 02:16:28 GMT Received: from ca-mkp2.ca.oracle.com.com (mpeterse-ol9.allregionaliads.osdevelopmeniad.oraclevcn.com [100.100.251.135]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTP id 3r4fm6bnx8-2; Thu, 15 Jun 2023 02:16:28 +0000 From: "Martin K. Petersen" To: Nilesh Javali , "James E.J. Bottomley" , "Gustavo A. R. Silva" Cc: "Martin K . Petersen" , GR-QLogic-Storage-Upstream@marvell.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [RESEND][PATCH][next] Replace one-element array with DECLARE_FLEX_ARRAY() helper Date: Wed, 14 Jun 2023 22:16:21 -0400 Message-Id: <168679535179.3778526.8210116739672829202.b4-ty@oracle.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-14_14,2023-06-14_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=957 bulkscore=0 mlxscore=0 spamscore=0 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306150017 X-Proofpoint-ORIG-GUID: -aMQgYbIVKTx5uXcCiyAFp25AY7k3SIV X-Proofpoint-GUID: -aMQgYbIVKTx5uXcCiyAFp25AY7k3SIV X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 06 Jun 2023 17:22:21 -0600, Gustavo A. R. Silva wrote: > One-element arrays as fake flex arrays are deprecated and we are moving > towards adopting C99 flexible-array members, instead. So, replace > one-element array declaration in struct ct_sns_gpnft_rsp, which is > ultimately being used inside a union: > > drivers/scsi/qla2xxx/qla_def.h: > 3240 struct ct_sns_gpnft_pkt { > 3241 union { > 3242 struct ct_sns_req req; > 3243 struct ct_sns_gpnft_rsp rsp; > 3244 } p; > 3245 }; > > [...] Applied to 6.5/scsi-queue, thanks! [1/1] Replace one-element array with DECLARE_FLEX_ARRAY() helper https://git.kernel.org/mkp/scsi/c/512a365368c7 -- Martin K. Petersen Oracle Linux Engineering