Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp439447rwr; Wed, 3 May 2023 00:27:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Atcet5grzA2U9HjJf8t5zRFQwsMDiENXyLktzHwjNLWEpL9RbtMHROI5Dz9ZjHohiNOTz X-Received: by 2002:a17:902:f7c5:b0:1ab:17fe:5930 with SMTP id h5-20020a170902f7c500b001ab17fe5930mr1078642plw.50.1683098844147; Wed, 03 May 2023 00:27:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683098844; cv=pass; d=google.com; s=arc-20160816; b=YjsoY9JwUGLavToGtJJyNiCvmiwjkJAlIcd/qv3a3PEiB+IYVA/TXfIx86uct2Cu5v nFy/779lEyyJ0LprFhcYLNw7EMxm5hYpQgHV26FBAJmkhLs3LEgbNiHD6uVqAQAL281r Cdvx7Ysq9eM+h4m7OmX+2hGQMVQ8IlznHDL3KV9LF1u/w9a9OsRo92yFUFasK5WFoQWm evFkGjFUydsdfcxDrjNmtCmjvaoTpVNXWurjEpQJ4AK7Peyj2dfPTTWgSmxPy9Qr5yV7 vvJ3Xcibk2sCWGVgdm144y0EEH2BuBsRalQS1v4OSoO1vALZryV6Q+l/AZeKvmblRnHu dsGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zqwul4Pv+n2by0CX8OtKH2PVhTTeAQ7Qmh+FfV2rJvc=; b=RvRrsZnlgMxOARWLztrobg22kKS9g3klYf1vMWAVSw3IwLjUUwLXTX7x007xuwO36O vRGzoG5X/WHmeRwVOwoL9KVbjxrPfPHbowbx1GfgnmrtX/KQg0i6gwAzqJZ9VLBqltGe yMvDhqG/UFo8m8NFmM3hh7RKnvMviR55seDFE1DD/fmzfC8+RgZT+jRqvYWpKgRSUjLA cIgMg75+m5xxJS/AowjiQ5/ufEpTksBhNoiYchFJdC50kIoGxyq8D5hRqbHESyXNQEAy izx2lyw/hgvx2HYOqO/05ShWyrfEMOlUB4tkOzcyRT6cIf1GcmX6EZfrxfmhXwhOULLq letw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=IVEB6z0r; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s22-20020a170902b19600b001aadba392b7si9014916plr.517.2023.05.03.00.27.09; Wed, 03 May 2023 00:27:24 -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=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=IVEB6z0r; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229564AbjECHRo (ORCPT + 99 others); Wed, 3 May 2023 03:17:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbjECHRl (ORCPT ); Wed, 3 May 2023 03:17:41 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2070a.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e88::70a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A080422C; Wed, 3 May 2023 00:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NUNNbZZzE6wl8R2/dThxxzOQYTmnda5A0zZXgh/YcNXdlLBm6J6qnzpYiYlEPmQGhwLOi3l9hhf10qRpcTy0a8nThOn7FCzxMsigoJAN0RAjbbsb73mNZp9wLYI/pavqFKsJ0Sb5Su3OvC89+Oa3aCGhiRG/htTo3NnQnYeMtFmOB7ffe6l4A6u4+cFt0IGM4L8BW1ZUrO2OGibV1yZLLb8ryKJNqZJU1Kmn76OCBVqI4hjda4scB9TIO3lxXV0CyBcI7WS7b+nED6MzB4gy/jOn1wO/rmOjikI7uaJXGFvAFu4zB1VfXU0OLDeYhSU5OuDptz6Ya980JkFLGFjEag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zqwul4Pv+n2by0CX8OtKH2PVhTTeAQ7Qmh+FfV2rJvc=; b=f+b+NmG3zGBmTRGx0djARQ+62lpmS5CrNut96ygEz7hIfibu0983oDuCnn6tK24Me5DkGQQkuyAnLz09swYJndLk9N79u/bGkWl9u98Q+/0Z1toVM5IeGOnPQG+sEhDWKAonQwIlBhKvkf1GATRSdSi+8Rrgd/lP34cFihNrSMf2ELuql4Gma9xFrLupabx9Kr0x/ZGOo+Ng53GqIJLtac453FhHsAEK7K0jEbhZquBPX7RrIxSwOopLm3peJ8BRsuqlf583KR9QIEDYblzCWUq4xPL8SsAEfl/8SUoMEPeiS7VXIsXvMnrV0302peR6ZA29FMu7p8kkXjNg6/dfhA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zqwul4Pv+n2by0CX8OtKH2PVhTTeAQ7Qmh+FfV2rJvc=; b=IVEB6z0rkftXuVM4w9aYQUMs9cnodh6whDDrxMmGJAHwYxzoTjRy02QNdYkS41Mi4zts0kc5nb6GLJWKfzAfZ89ap0aSUSAi4XjzDO4lEU2YcXs4ko4XPfqw88dIv8lkBaYezvkd/xyaRAtzaRm7fWFFv2cOZ/HJVFfn65o9ZSY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) by MW5PR13MB5972.namprd13.prod.outlook.com (2603:10b6:303:1cd::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31; Wed, 3 May 2023 07:17:35 +0000 Received: from PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::f416:544d:18b7:bb34]) by PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::f416:544d:18b7:bb34%5]) with mapi id 15.20.6340.031; Wed, 3 May 2023 07:17:35 +0000 Date: Wed, 3 May 2023 09:17:28 +0200 From: Simon Horman To: Dominique Martinet Cc: Eric Van Hensbergen , Latchesar Ionkov , Christian Schoenebeck , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , v9fs@lists.linux.dev, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 1/5] 9p: fix ignored return value in v9fs_dir_release Message-ID: References: <20230427-scan-build-v1-0-efa05d65e2da@codewreck.org> <20230427-scan-build-v1-1-efa05d65e2da@codewreck.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: AM4PR0101CA0060.eurprd01.prod.exchangelabs.com (2603:10a6:200:41::28) To PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR13MB4842:EE_|MW5PR13MB5972:EE_ X-MS-Office365-Filtering-Correlation-Id: 6d3ff749-f42b-4a6d-3c46-08db4ba677b3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K+pR8saCZeOIybje6yfk/bYLEgy/gn5SSlOJl6uDyHLYMVcijqWmaTeKFLpuXd98No7/GetYX4yEW3L0fkWaR2wCw/R/Q+IvEf7bELgXBNXm56s3Df7I3fQYJDBwBbjldZLLBxsbtoqk5xI8I/xIpVodZqnUumcv2YxHZ3fVLek2FROCsO7ZajA4rLllVyQ7cF/WSMQUsFWkDepJqogo2nZR39uECEXRwHleYvz5xP3DvX+ZX0Mts+kKSkKiG7afjQdF4LeQKgVgW2SSTB10PgTq8QHLf3QerxwJuZ1w0pxPvJXSYHyAFBwqeY4EXypIJ7W1YnP9Sjn5lbc9SsGLxDZWH8O1epEmnVF1b5/MZ9CkGtTpSyiIyhtmw+6XSDQXdt8NfpvxbgPA571LIFhwe1X6cqCZ/3JIM8wOyW57chQPaek77ha+owugCK+mHPncXL8C2TMoNvNb+Y2bqfePe4UUTkt+MXCs2TelTHJJ7AAbI7LUdDgH9sVpdT7Z/+ZQvQv9BI7xf8o6iuap9AOglnXK5tRf8DHW4y5+12qFU7PmdHJSRpaiopBt3xJWiQ7h X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR13MB4842.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(346002)(136003)(396003)(39840400004)(376002)(451199021)(478600001)(54906003)(83380400001)(36756003)(6512007)(6486002)(186003)(6506007)(86362001)(38100700002)(2616005)(6666004)(66946007)(316002)(4326008)(6916009)(66556008)(66476007)(8676002)(41300700001)(8936002)(7416002)(4744005)(44832011)(2906002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?+mZUB9CcoB8ZaoyVB4PtMPNpu2lJZ0695WnczzDjGAE6RA9qIRTD8jFcm+NS?= =?us-ascii?Q?Gr2w9pMcZnAfb9xiXP+aGFFDjtvOJBh2kZq0vjV0iYbR9wdlJfMfkw3Js6dT?= =?us-ascii?Q?3yGFuYj9Wjj4mRRUnK1pcNyI0RJZB5ZFUyDsXU4MneUAC0yjfJifdT5xQqNn?= =?us-ascii?Q?FBWLeuK5m+tfBNfd9e5lr/pJvzn8biAn8PooU8d8Hp+N8RfymKadDJjpHQLl?= =?us-ascii?Q?S4Y/DxPQSOIFifi7IFr7jU7vGsFT/qQNiqCmSFuVW+6gECIwOrsrx00zOYrf?= =?us-ascii?Q?ZSukoU1LWUSn504wI8Lfq3AaqIVnMp5lgaSLKIYB7bQrLcCw+acYawC2RmnM?= =?us-ascii?Q?hdpWRXKIPJYtG7fBtbjHDaoY5fF6pOtPX9FppVCe0DQ4J8FLWQhiDOrm2Fi0?= =?us-ascii?Q?ILvrxEPTrj6ov5wBhDQayLBaj6FFlZKkiACNnajsXf23/+uOPkhc6JnntT8l?= =?us-ascii?Q?pfndtFq7Tae+PY1mneVYjq+a/HYtlcVTQOnexzavXxvw0pgAA/mX7ZGYfEow?= =?us-ascii?Q?DTEvSQh7d6sl8aMbTYDdrSvxGuB/71yZ05MlRygpBojTioXNIlWEktgtn3Ge?= =?us-ascii?Q?sNeXpw3rvY3yj/XX5oCra0+u53UDfPG7u/+U8GAHewhvYnCBNpSKa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F+1G8/NpaOdCE/HCk59K3urg4F4Iv?= =?us-ascii?Q?SnZgdTvoU+JKJVcP0eKoQ8Is4GrvlnJ1mP+5K/laSGLRgZsmn0FJb0cR9iKm?= =?us-ascii?Q?z+KFrVETTls495Zc2eiTRQKLnF7A7Ez3TFbtJcv25bRn7ZvCbDguorUQd+2D?= =?us-ascii?Q?Owaezw=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6d3ff749-f42b-4a6d-3c46-08db4ba677b3 X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4842.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2023 07:17:34.9285 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tbQhf+bE+0pFuZZ4jx7DTygxt7G1dK69JiqkLvoCTbVtVp0G+/Bh7aqvm3AHSK79xRl2LesD2BnwsHPL30l5OaK0k3rcLCtSn6Y03RIvRJw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR13MB5972 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS, 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 Wed, May 03, 2023 at 08:32:49AM +0900, Dominique Martinet wrote: > Thanks for all the reviews! > > Simon Horman wrote on Tue, May 02, 2023 at 04:46:17PM +0200: > > On Thu, Apr 27, 2023 at 08:23:34PM +0900, Dominique Martinet wrote: > > > retval from filemap_fdatawrite was immediately overwritten by the > > > following p9_fid_put: preserve any error in fdatawrite if there > > > was any first. > > > > > > This fixes the following scan-build warning: > > > fs/9p/vfs_dir.c:220:4: warning: Value stored to 'retval' is never read [deadcode.DeadStores] > > > retval = filemap_fdatawrite(inode->i_mapping); > > > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > Perhaps: > > > > Fixes: 89c58cb395ec ("fs/9p: fix error reporting in v9fs_dir_release") > > Right, this one warrants a fix tag as it's the only real bug in this > series. Hi Dominique, Yes, I agree that this seems to be the only patch in this series that warrants a fixes tag.