Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4343957rwl; Mon, 3 Apr 2023 03:43:18 -0700 (PDT) X-Google-Smtp-Source: AK7set/gaojAeglRw7TtcTUpelvhFovt76VWp8N8I01Kn8nCY/qKguljmwskqHRFc84IHTI1AZ7j X-Received: by 2002:a05:6a20:c509:b0:db:520c:430a with SMTP id gm9-20020a056a20c50900b000db520c430amr34057841pzb.38.1680518598162; Mon, 03 Apr 2023 03:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680518598; cv=none; d=google.com; s=arc-20160816; b=oXsK+ov77kxKbqpRvW38DBzS4SS7h8lHHkAYg5q1f/KOAoCuNJADSlb2LtiudvLWPH CLmE56ofM6AigD+xWeWyMj8wowvbaFAo2aDrHbXWL7vaiBi8AKjuqpN3s297RnmkDX4t jwh/F6DKCUVF4fVjgHBW8Q2I9pTkhWr5UnIqX5AyIHarxUfOONfKEIQCTw+xf+k6GDaB l5+yNdHMeNBhjzDO7si1X9vvXAaGhmaL39MnsTbwZN4fi/Pm55YcTAEM4HytyVyAfUhB ppOdl4s8tPZtjkk7WUiwv6XcLfogcu12ddBvbJaThyNzUJCcD/1xs06TjlaaebSzZhEy 4Nfg== 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=yrBY5MuAA3yQHdPOGAozgmGB0BYSnqc60Ve6FOvd8v8=; b=T5Op1hxSU8IOwy1HocZGmBpIoyWramLlc9c5eDwuaN4CQRpCpxu6D1coLadIigSldn KL2/4kPwfIBSHvgJOT06oIQjr1gbKZTXy5d+VUo1DctybDS3Ninq62GP1DF2zAvOOWb/ uLt8dZAPuLCzBUc8yjT4gi6AxSqOTMjgabSt1LuCy5+DRECOKlqjI03lPCkOlpelWJUO e3RgmbgA6MpdgCG8GLgBpCo9WxaLyHLX/hSSxz8fR8avBGkqoe7Ddnie/vv5TBAGyqxT 4U77kXbNJmwh4j4guVtoxeaR088aGvCIE4rmsogz3DT5kt3wcn41UiubLGIpCIxBT7Qe fkDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="gA/YjEVk"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 31-20020a63185f000000b0050c0a48480esi7254804pgy.353.2023.04.03.03.43.06; Mon, 03 Apr 2023 03:43:18 -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=@suse.com header.s=susede1 header.b="gA/YjEVk"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232284AbjDCKmA (ORCPT + 99 others); Mon, 3 Apr 2023 06:42:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231998AbjDCKl1 (ORCPT ); Mon, 3 Apr 2023 06:41:27 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 577C312CC4 for ; Mon, 3 Apr 2023 03:41:04 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 0C16B21B62; Mon, 3 Apr 2023 10:41:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1680518463; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yrBY5MuAA3yQHdPOGAozgmGB0BYSnqc60Ve6FOvd8v8=; b=gA/YjEVk4CRu9I0+ial4ug1tdoXBdUG8Cwf+aoUzMEaw1htyMIYwqXnaWDiXBybFgZL2l8 QYHgeRPZD6fQJ/q9mt9pF7ZHLHNXHUAdyYrxI1wmvKAWGJ/hW2fVtsMZFLpn2OJpSpVkes BDG+c5an64U7S6oI+GNrX16UXM73jPM= Received: from suse.cz (unknown [10.100.208.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id D8C3D2C195; Mon, 3 Apr 2023 10:41:02 +0000 (UTC) Date: Mon, 3 Apr 2023 12:41:02 +0200 From: Petr Mladek To: Stanislav Kinsburskii Cc: Stanislav Kinsburskii , 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: 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=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Mon 2023-03-20 00:02:01, 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 JFYI, the patch has been committed into, printk/linux.git, branch for-6.4. Best Regards, Petr