Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1515883imi; Sat, 23 Jul 2022 08:03:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v25GrDHZwGWKn0pFRrAuOyu7K29PjkTXoA/llkVtJJTsqh8NXsrJ7UNi29xCdB1cMOUne4 X-Received: by 2002:a17:903:11c3:b0:16d:1cf9:2b1c with SMTP id q3-20020a17090311c300b0016d1cf92b1cmr4628249plh.20.1658588636651; Sat, 23 Jul 2022 08:03:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658588636; cv=pass; d=google.com; s=arc-20160816; b=vfksbjyC6Gq+ueW8qPs1CsDRQDq8kNZY6jJHh49540cunY37pY15y/LcDVWNxlj086 6bOhOsaM0CGntU8qlRiAqSu4RSt4OLp7wnHQ3TFDqnyMoD51bQK+c6FNc6GTewnG9oTg YOJ/pXJwBaf9NaEaF0cLbtVZYvYx1k08VbQP9Wy6XxEuNxqcQG63ByndL41Y/31ST5l8 t6CC1htZurcB9PId+jnwGBrTJF85p+EvS6PG49dowT8t184ScHW7lmU46fZ2vHSBJJsk hY148hZ7EazKt6dhiPELWMwVflS0YK5ZuFmRJIM8tDfoiJsrxDdgLBODkYOT7gA5JF2I NcPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:importance:content-transfer-encoding :mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:dkim-signature; bh=a/9usRWIfKTQJmjOCrdt/xVzLad7G/lItwk6BnowcDE=; b=TO87eNisLbhHKCzv1u7SZEwnEUDlv3ew4Cczp52M2ApXXq7vtF+lYPjSuFVz9R2qBx XCOFy1j/bokelKjuXs+aBQ2uBMs8J2GWNcALBMyLRrPQ5khrIMECPrPX2uQ5roEDqZSM CWuuOPSVWeQ6AzXr8YFfeFugOFDLoWrpKmhyz03Ai1T4JAjypU6NpzsoDmVtygZwLcf8 y0CqwhdkJQgVW8o9MfovNNFtIbGR7P35Qml/xy2kI3Hu954dQM+hrWzrrIFZZrVYfF1b 6yIw9OUePfKjqdzO5VRDq6L72xIjJWJ+hHJG253C7OUeFQNa48mc1V/hpdsHDim0pQks ZZBw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=tDBA1sdg; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); 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=REJECT sp=REJECT dis=NONE) header.from=siddh.me Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020a170902ce0c00b0016d1a21bb88si8820299plg.559.2022.07.23.08.03.40; Sat, 23 Jul 2022 08:03:56 -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=@siddh.me header.s=zmail header.b=tDBA1sdg; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); 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=REJECT sp=REJECT dis=NONE) header.from=siddh.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238438AbiGWOae (ORCPT + 99 others); Sat, 23 Jul 2022 10:30:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238130AbiGWOaG (ORCPT ); Sat, 23 Jul 2022 10:30:06 -0400 Received: from sender-of-o53.zoho.in (sender-of-o53.zoho.in [103.117.158.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C83D1C138; Sat, 23 Jul 2022 07:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658586572; cv=none; d=zohomail.in; s=zohoarc; b=OYq163lvA2Bqz3Yn4jatz3mbts9pw8Mo0ri4o5+iknE4WgtpLwGFwRrk138GGR29SrCrRgPY29+sl6+YRWivTJUNquN/MoLZpPSQllxdqLyeX0QK2zNOY4v3iOrrI3CHD7q6+PIpiHHVhOagmanPWMq2DfOk33ZgmiG/0+WMPlw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1658586572; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=a/9usRWIfKTQJmjOCrdt/xVzLad7G/lItwk6BnowcDE=; b=bb/Kj22EZ5tXuuv0BNBthqeUKbZsM3AFivbJlFn7yUkiHvxVMqM7unOFZgPAEfHJTt3VD/t0nnj4/1AebnYEqteIaXMRmgBf3sMk98FJSldaWHRsl5aOckmNUUkCR1y9YMquLH+r7oul9T49mAghXodRj9UBojPMgabbRekEdhk= ARC-Authentication-Results: i=1; mx.zohomail.in; dkim=pass header.i=siddh.me; spf=pass smtp.mailfrom=code@siddh.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1658586572; s=zmail; d=siddh.me; i=code@siddh.me; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=a/9usRWIfKTQJmjOCrdt/xVzLad7G/lItwk6BnowcDE=; b=tDBA1sdg8MTEoxUTL9NLDKsUFJjHvaYYFZOKCPtKEMZ6jE4SDp5StnQnIPF6h5Cr qu4ZsClhibfg3Q+LpT0awGh8WffR6wu4WznGGvnmccX+oIM1XdAIL8ihFpVqTjHz/Zv XVfwg38ljifrVetqLVHN90zDhBri5l/VnqfuyHM8= Received: from mail.zoho.in by mx.zoho.in with SMTP id 1658586560433935.6815882019292; Sat, 23 Jul 2022 19:59:20 +0530 (IST) Date: Sat, 23 Jul 2022 19:59:20 +0530 From: Siddh Raman Pant To: "Greg KH" Cc: "David Howells" , "Christophe JAILLET" , "Eric Dumazet" , "Fabio M. De Francesco" , "linux-security-modules" , "linux-kernel-mentees" , "linux-kernel" , "syzbot+c70d87ac1d001f29a058" Message-ID: <1822b76775c.69c52873236056.4849193904753307696@siddh.me> In-Reply-To: References: <20220723135447.199557-1-code@siddh.me> Subject: Re: [PATCH] kernel/watch_queue: Make pipe NULL while clearing watch_queue MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_RED 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 Sat, 23 Jul 2022 19:33:33 +0530 Greg KH wrote: > You should not use #ifdef in .c files, it's unmaintainable over time. > > thanks, > > greg k-h > I used it because it is used in the same way in fs/pipe.c too (please check the stated line number). That, in turn, is because `watch_queue` member in the `pipe_inode_info` struct is defined that way (see line 80 of include/linux/pipe_fs_i.h), so I am forced to use the ifdef guard. Thanks, Siddh