Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp529420rwl; Thu, 30 Mar 2023 21:14:06 -0700 (PDT) X-Google-Smtp-Source: AKy350b40CYEUqonslIWVzCrpoaUf85YD0eGJm2bur0tunzH205CC0qglmLTbq23sn2cL5QQ2xiT X-Received: by 2002:a05:6402:42c2:b0:502:ffd:74a1 with SMTP id i2-20020a05640242c200b005020ffd74a1mr26800727edc.2.1680236046220; Thu, 30 Mar 2023 21:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680236046; cv=none; d=google.com; s=arc-20160816; b=FVnvBgSsBO7vb1cYTwIY/uL6hZEs9SDMv1uhmNXnsdJ9u/O5rm+Pq+sp+Yc2aIVJGB J5c15V+nG/iJuPygGObY5L0MM50ETuiBzNHACR6ek44OHofbeIgPAZTm1GMkHaJB/ADF Sc1UpGg77eYwHKSXnZ7sdn38bKZaiee9JrKsSzE2APmUq2n6HkXLXLmxGpoHts5ooB4B vrN6a7ITtLSiDSzhRfHTv7IihaBqwBP0A2QNFIoYvv6Zc1zMOB+Di7G4CYlfJufGuFNF w4j8y5UKsClPK9cBktxpR8oqcl+tnDk4h0ZhENCF4dwc7umXNLBdoBZn8EEKtlHPEWdh VTWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CQi3ts4AtbQXr7O97Iyh1MT9Vc4OCSBMmMoqYVWvSdw=; b=uTazZWvtWtgdW9h54uPxznrM1yB1b3HRwskkBEVvvfQTHtWo6cje8NLHDaGTuN6w9w KzkVWrjbByVEGpQgKdZXIhxo6Z2naA9cGFHa2oKuhYjnlyBBtx42rGIoPucjqy+2JbKB YJO/+DtUDiTtBx+l60xfr5BhEVsP3vhP9Cc/zhA6gDgTQYpopoRycsObLBeJuPVeiwmD GF3jR9ihtce+5KPvfcj74BJzx8/thhcM959KbOg6FcDHR5MgYUW7BCvRqCo2FGeqSsD9 9h+85IeNRba0w7GUN9KZYmkaIYV7W2A91YHfPBoN6M7G+4w15UMfl130yv/r8cc1FZ24 cxeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BC5MKj5C; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y22-20020a50e616000000b004c007c7905asi1395013edm.484.2023.03.30.21.13.40; Thu, 30 Mar 2023 21:14:06 -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=@chromium.org header.s=google header.b=BC5MKj5C; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229885AbjCaEGI (ORCPT + 99 others); Fri, 31 Mar 2023 00:06:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjCaEGG (ORCPT ); Fri, 31 Mar 2023 00:06:06 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D096EEC76 for ; Thu, 30 Mar 2023 21:06:04 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id om3-20020a17090b3a8300b0023efab0e3bfso24125348pjb.3 for ; Thu, 30 Mar 2023 21:06:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1680235564; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=CQi3ts4AtbQXr7O97Iyh1MT9Vc4OCSBMmMoqYVWvSdw=; b=BC5MKj5C11A1fpqalr4OsdYX7pU2qkXaezZ8PICniK0xNX+Viu6u/Hhiu/51tJn7wC b571Am7PxDh7Ag7J0R+MUiJs/75F4xmqiDJAo/JToqrse6BivboLnAIeXlKlKrzXcWtR xivFyk/wm1hrQlKcNz3gBTOmVqf4h3GhFi40k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680235564; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CQi3ts4AtbQXr7O97Iyh1MT9Vc4OCSBMmMoqYVWvSdw=; b=BAYX4/WHYHBfVGj9ylyZsdpKbbxnozJd3CE5t3Hhu9mT01Onnb+OkV4qDqv5UHKzd+ K+4lpEc+koBk4Hl7Sz2l+b6FCq0EKaXvquR3VWIB1IBqWA/C7sWRdw4n+oqbqvTTuYlf dPGCkBmIzJpr/HBkhY17MCa5Sdy3m8X5kfJqrn0lU0RiN/PfwP0AJZR8PZ+yIjMNU7T6 RAnnH8JpUcMAKRyhiPtynZXsJI2uvjofVCbE/hVTPri4/X4/wwa7pGvrzpxJ4jKMpKpT BVU4KBog9FlOS086qKAuOsJ+0eXRdBX7x7Aik3ZWz1h5CxDXOS+yIFTToVeatEbZjvkT jdTg== X-Gm-Message-State: AO0yUKWEkhQumVl/L+ZFU8+ZN7tUSCosIhnZg8954id6uCMST6SvseHu K0pA6l2F+58uf2XApbkEzRvSLA== X-Received: by 2002:a05:6a20:1221:b0:d9:5a7c:b1c5 with SMTP id v33-20020a056a20122100b000d95a7cb1c5mr22606007pzf.11.1680235564283; Thu, 30 Mar 2023 21:06:04 -0700 (PDT) Received: from google.com (KD124209188001.ppp-bb.dion.ne.jp. [124.209.188.1]) by smtp.gmail.com with ESMTPSA id t17-20020a62ea11000000b005a9ea5d43ddsm636512pfh.174.2023.03.30.21.06.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 21:06:03 -0700 (PDT) Date: Fri, 31 Mar 2023 13:05:59 +0900 From: Sergey Senozhatsky To: Stanislav Kinsburskii Cc: Stanislav Kinsburskii , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , John Ogness , linux-kernel@vger.kernel.org Subject: Re: [PATCH] printk: Remove obsoleted check for non-existent "user" object Message-ID: <20230331040559.GB12892@google.com> References: <167929571877.2810.9926967619100618792.stgit@skinsburskii.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <167929571877.2810.9926967619100618792.stgit@skinsburskii.localdomain> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 (23/03/20 00:02), Stanislav Kinsburskii wrote: > From: Stanislav Kinsburskii > > The original check for non-null "user" object was introduced by commit > e11fea92e13f ("kmsg: export printk records to the /dev/kmsg interface") when > "user" could be NULL if /dev/ksmg was opened for writing. > > Subsequent change 750afe7babd1 ("printk: add kernel parameter to control > writes to /dev/kmsg") made "user" context required for files opened for write, > but didn't remove now redundant checks for it to be non-NULL. > > This patch removes the dead code while preserving the current logic. > > Signed-off-by: Stanislav Kinsburskii > CC: Petr Mladek > CC: Sergey Senozhatsky > CC: Steven Rostedt > CC: John Ogness > CC: linux-kernel@vger.kernel.org Looks like we should be fine Reviewed-by: Sergey Senozhatsky