From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A024C761A6 for ; Mon, 3 Apr 2023 10:42:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232417AbjDCKmB (ORCPT ); Mon, 3 Apr 2023 06:42:01 -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> 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