Received: by 10.213.65.68 with SMTP id h4csp1420683imn; Wed, 14 Mar 2018 21:41:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELs+FoGUnA4bknCKRccEgtlwolSdjUy2/imInOaXaRC2YlzInClaie2ee1++bxJz9OdRNmXW X-Received: by 10.98.78.68 with SMTP id c65mr6551844pfb.65.1521088918897; Wed, 14 Mar 2018 21:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521088918; cv=none; d=google.com; s=arc-20160816; b=DQtE/SuHw4oxsqtfhRTTJHiDhSIXbEP4gitKx8hIovwrpJ+X17DXi1uB+ghj4aSDhy XshsV2ctxz6wLgKJ4kkSNCx6rGdl9Y5Heu6Mpa4QJNZ6QCcLNel8hBh8uwY3AdK0WQyo H3ifs4kNBcbNjcIkKQsuDqU139njEJuR5OH4ThC5/m4cuyxk+8fBjCFCafcvr69LPdEK YsPcoxOtlVsbdos6NrpwXjdhLOzeJFD4eyLHn5qLFb6KWYPifRQfmDmAR8DgxJg+WKl9 wQ3k+PUs9DL5bl2iSJ3sS1YHq6xj9R9WzmbEpk7hvBc0u+7YTRkhZOQIDz0WK+4pqp/K b52w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:from:subject:cc:to :dkim-signature:arc-authentication-results; bh=+c/cOUfLutdLkJeulA0fvT6KKWcwcVM8NGtVn4GwIM8=; b=BlDmn7sp4yyzhfquyoep75eHXbnDARgi9oNgXSDdXcyvh2Gz2sjeHe6tfb+QhjTbpc AfRLGypcT/N7XNJm7B9lkRmqbO04i3PqX/LCEvT+dBN6iT8J/08d9ghaghUPT9CG/Hfd IfQ6W2Wq+3Kec8RCq2ai/4NU+Bz/nafFHMl5MkuHaIk6cVzt1tIArfVlq0Cr+iw1hGwp c0rz08Jd0ii61jRamWjMJRzNWwrVH3bJhppCgEfB/Rdpy9qE+Ko93veakZsuAzwQ7I9T klfq/Wj6bQmn82mHpG4sAzuY2/d4dTHziQ4qzLgE8ilw/RaemnL4JBfYNtpelG7noH+f 6AgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=I36EV8uM; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b17si2832520pgu.407.2018.03.14.21.41.44; Wed, 14 Mar 2018 21:41:58 -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=@oracle.com header.s=corp-2017-10-26 header.b=I36EV8uM; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751467AbeCOEkt (ORCPT + 99 others); Thu, 15 Mar 2018 00:40:49 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:32930 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750715AbeCOEkr (ORCPT ); Thu, 15 Mar 2018 00:40:47 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2F4bxwd135781; Thu, 15 Mar 2018 04:40:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : references : date : in-reply-to : message-id : mime-version : content-type; s=corp-2017-10-26; bh=+c/cOUfLutdLkJeulA0fvT6KKWcwcVM8NGtVn4GwIM8=; b=I36EV8uMZnB1rgXduK9k1ZAQledgwbd9l9kmWvnnJtbBXahwT965LmuLBYGZpru/tIVc sZXjOb5ZAWYOTkPOuQ8NYQGknQFPg3/qNMIGlUEEyk6eVroXX39Yl7I9hhIoyVJE/dq9 PXkkoFqzQYQ0AFp6Qf1NL6amQnMIdCQt/aoeXavi6j2EKRicwTP1B+RCgdoHU41miS6C XPxa6bT25P5ZZPl07ywKlR5seTW5Qz9cxty9ulGCnV83Wx0++8W9ofz6AfBACA3UOCar Yfk/9U50iYjg3BJESFco7S4wNHvHGZdyz/WgNYsrOkHTy/LiMqd6E7Do+v7poeYuyilj Fg== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2gqgdb19bp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Mar 2018 04:40:23 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w2F4ZLnH005463 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Mar 2018 04:35:21 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w2F4ZKZm022606; Thu, 15 Mar 2018 04:35:21 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 14 Mar 2018 21:35:18 -0700 To: Stephen Kitt Cc: hare@suse.com, keescook@chromium.org, linux-scsi@vger.kernel.org, kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] aic7xxx/aic79xx: remove VLAs From: "Martin K. Petersen" Organization: Oracle Corporation References: <20180308205158.5130-1-steve@sk2.org> Date: Thu, 15 Mar 2018 00:35:16 -0400 In-Reply-To: <20180308205158.5130-1-steve@sk2.org> (Stephen Kitt's message of "Thu, 8 Mar 2018 21:51:58 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8832 signatures=668690 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=511 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803150053 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stephen, > In preparation to enabling -Wvla, remove VLAs and replace them with > fixed-length arrays instead. > > The arrays fixed here, using the number of constant sections, aren't > really VLAs, but they appear so to the compiler. Replace the array > sizes with a pre-processor-level constant instead using ARRAY_SIZE. Applied to 4.17/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering