Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp135154rwi; Wed, 19 Oct 2022 18:41:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Q0RSzaks3I0VxynM7zW5gXZge4Xwynv0lpBADB23WPqsjOth0OI1bZusnotH+vz7eIOoZ X-Received: by 2002:a17:906:fe46:b0:730:ca2b:cb7b with SMTP id wz6-20020a170906fe4600b00730ca2bcb7bmr9275484ejb.703.1666230102032; Wed, 19 Oct 2022 18:41:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666230102; cv=none; d=google.com; s=arc-20160816; b=sE1uA6XDZnhLanKUxjp6+JVPRp7hy8tmjv/u4zezo0vPp9jhwtbS0JUy+tC9vGM4m7 o8WRYe38F+GjBQDC/WWYFoAItbzzt+jag4rVomAdcWzZPgNfWf1/FdePsX/vnTrgVVdu HsfkWORFFTh2Hedty3zAuIeJFsjc1vMNgAhl+tRRDHJE2PkKjFjj3NO0lns6BdbmlCan npxpO+sDiC6R6ruPpF186YcQA4rTDnJL7YCMxKNdIySL3Crqfo19mBmq0tfVW1CX6yHt 3juhSxN5MC4fzbtp5ksgOmwK7o7CSrJ9hzu3UrJ6rc/C+HNfAYGjqzmIrqWNEQKnjJ0B z7Dg== 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:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=5BDKoCuiX9gLdyLhtKOYiwtgCSx3wnswv+GarFhOTZU=; b=kFQLW3PbkgAaMNlkDFyFBZ0h/3XgFKwBfSJ7tw8B+uZhOASiAtUciRG7wnl0jtanXW Rq3wnmBOr/L7O4WmB5N0YLFYq/sMQkgh32OHR3u5TzcQ8oN4RfvZ0c993xXL3jmROzxi 1veEFvM/iUG7i0Nm922hJN+GQZefr+Wnb+6bFFHnXIZhyfLt9/TOIYaaL6S08FVuXq09 kHcKDGJTbxLKpSUoVppW0p+0fP0pV6SYV8YD0loS6KLSqmasHWCRgGjJTL7fr1+NTkQF 7/TitdsZAd/o7SXMlyQXSTa4JyGuf+qrQ/O7DwfGd0rkqJNGyt21EZYX++eakbVeq+Mn XU+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=JHS0tpXq; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kx10-20020a170907774a00b007832270e88fsi14053603ejc.681.2022.10.19.18.41.09; Wed, 19 Oct 2022 18:41:42 -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=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=JHS0tpXq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231453AbiJTBbR (ORCPT + 99 others); Wed, 19 Oct 2022 21:31:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231294AbiJTBbK (ORCPT ); Wed, 19 Oct 2022 21:31:10 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6A18FF243 for ; Wed, 19 Oct 2022 18:30:38 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id pq16so18437698pjb.2 for ; Wed, 19 Oct 2022 18:30:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5BDKoCuiX9gLdyLhtKOYiwtgCSx3wnswv+GarFhOTZU=; b=JHS0tpXqLX5GdsoQR5MFjpSHLMbrcGQDL5yQISyBkWOTUWPO0WuLbO2XI4+GI76j4i p8YfWzmnFz32jjnoZqPPRsAtgOlNrcCWhOqSXINc49JKDAa9chl7qBcw66j6ZkQL1a+U SEWjGiRmPD2p+N+wS4HHHOXafEtOkdYUa53PSGWZJGKQX3Aw4Lzv/HftVgCc1NhnZ7yk kVLuSxoL0iGQOq+yVx+lP3Zpn9dGGgFUxt4HtIrbhTlsUPHS5D7FJFSmz61fKZ5BWwKu e/Cz0w9imbnAvZv/rua2FppYhGCTHHJ2iDwrCiciBcElkVm8X6WzCgQmko9CyCI8cQ/C dwHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5BDKoCuiX9gLdyLhtKOYiwtgCSx3wnswv+GarFhOTZU=; b=LilquEJwIBpgBfym1YmWVOdF/rI1bkdeMVZgRz5VgiV7IQO9Z9zaEfgAlQBRqgYkzi RB4uCzJavO+eDOk/OoGnujC+tpYELIgPUfBXAnvykldRK6SvhSIyMtFmESlz+Cotna3L 60SnO+TRC3m7JNhpmLUWvLMUpGsHb+WQBrTjonypgXnr7cbHXk39FvEdYIh+PJSv8H7X YB9sIUW227O+67wkGAbM2XLssEXsMspN2gQh1BIpTZQ0FfREAlycnxh/8o0vp1zC9ryx nvshQXsMoQ3/CHALhzJngf64vkSM2ndr4joMV6NdI8bA8WuKZ89j466HZWg3aSJ8Xgg7 X3/w== X-Gm-Message-State: ACrzQf3gzJQ/czrNW2YWTC7Hxd0THrEJq0Y1ieyjzZL4H6aAC7qXAyWK mtkFhfbIOHdfPGfbDYKA3DO5BtvJRbKIlv7o X-Received: by 2002:a17:902:bf46:b0:179:eba5:90ba with SMTP id u6-20020a170902bf4600b00179eba590bamr11376463pls.16.1666229275351; Wed, 19 Oct 2022 18:27:55 -0700 (PDT) Received: from [127.0.0.1] (cpe-72-132-29-68.dc.res.rr.com. [72.132.29.68]) by smtp.gmail.com with ESMTPSA id u11-20020a17090a2b8b00b0020ada6ed6c7sm521379pjd.41.2022.10.19.18.27.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 18:27:54 -0700 (PDT) From: Jens Axboe To: ming.lei@redhat.com, zys.zljxml@gmail.com Cc: Yushan Zhou , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org In-Reply-To: <20221018100132.355393-1-zys.zljxml@gmail.com> References: <20221018100132.355393-1-zys.zljxml@gmail.com> Subject: Re: [PATCH] ublk_drv: use flexible-array member instead of zero-length array Message-Id: <166622927442.148655.12986325074372768712.b4-ty@kernel.dk> Date: Wed, 19 Oct 2022 18:27:54 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.11.0-dev-d9ed3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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, 18 Oct 2022 18:01:32 +0800, zys.zljxml@gmail.com wrote: > From: Yushan Zhou > > Eliminate the following coccicheck warning: > ./drivers/block/ublk_drv.c:127:16-19: WARNING use flexible-array member instead > > Applied, thanks! [1/1] ublk_drv: use flexible-array member instead of zero-length array commit: 72495b5ab456ec9f05d587238d1e2fa8e9ea63ec Best regards, -- Jens Axboe