Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp252255rdf; Tue, 21 Nov 2023 01:24:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFqZYMB5pS23pz2Uvlb39pKr4IUjMMc5f4raCU7n/Vudj1zj0v6OtlExBVXsuoRW7Glu9pZ X-Received: by 2002:a17:90b:388f:b0:280:3a0c:bf73 with SMTP id mu15-20020a17090b388f00b002803a0cbf73mr8509234pjb.26.1700558663744; Tue, 21 Nov 2023 01:24:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700558663; cv=none; d=google.com; s=arc-20160816; b=W/TkpJcONIPaCvB//MPeSUpW1SROoUHRZUu7c5U+0QwLTxzgOmF/irJe1HrXt18Ejd hoBIn661G5tRYe3Sp1JwZkKKk2ubOpKpXQ+Gn+q/ha/WjktGsP/MJKQ9baWyxETc3gGh dKhWRtolLf7QUfBXUwEjZMSyVPft3U6orTSPUt0WLf7Xly1tt7txIprnpheW2trpXh1g wu0RmSCXU2SOyXtatS819Qz8Vqb9gCnS4LFWjB9IcS+3ELfRiuJBmWhrkKptSnaw4Xmx jColOmHKU3bFWGwst8TcXkgcOdeuykFTgY7SjsB/euLlg7sgoDOgRW2hn3zvnOVxJTa1 FGuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8GglrBnRywlYTLYeshEINwqLslJSBADi59k1q0Md5yQ=; fh=TKrCbfTDZBaVA27B90A/UKUSYDSq15zkFbvAfPB0C8U=; b=pRxRf7OqWKTWKQw8TY9J5+nIgkcWI1wWk0hNHW5B/f99Ggo6awCwkPrcjzGF6keX77 lOjHca1n8V9jkBpst/gU7/9llVKj/KBec0AjV8JgSCndvkcPTPnTRjUpD7dZxPS97oUO zmF//xjpi+iHesEs01tE1yMR1CMyJshMfQCgruuh0i455zvwyn/DXe+VcY8EVjkL0bqc TqF7IIU0ABaaT04lKnQD9sgzirt+aLVsxpS9/M1LfigoJmOBuC9vqMTZPiCE9hdrXltC 5b3TZ466ok6BdYITYuclE/kXnVl9HVsjSgvFoa71Pl0wB02N9TCC2Fr5TRC2XeUlyiYr EuHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EdBxAV7T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id pc15-20020a17090b3b8f00b00280a4766eabsi10675542pjb.114.2023.11.21.01.24.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 01:24:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EdBxAV7T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 53C2D8035C58; Tue, 21 Nov 2023 01:24:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233517AbjKUJXw (ORCPT + 99 others); Tue, 21 Nov 2023 04:23:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233271AbjKUJXZ (ORCPT ); Tue, 21 Nov 2023 04:23:25 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 211D412C for ; Tue, 21 Nov 2023 01:23:20 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18901C433CA; Tue, 21 Nov 2023 09:23:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700558599; bh=9PpdhyBVsu45ZCI81VGErhQfiGGxB/f1DEh5vaZ3fm8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EdBxAV7TZbxSuBj60zoJAneC4IgZRVvo2sHh/6D4pz5ADsXfKZA5QMskKPFDr2B21 oCKJ9/YwuqeOpqa83og/tUyjhUgQ9RgHZr3yuB7eG9hMig0QjfE0URzhU8WtjVkiVe KZHyJz/eH3hNcqfJSyBj9Y8XnN6uvO1RpyhN9Eg4kRSbhA/pmUM4/sGe7KRGmtbogo PmVVy5nHHmDbXaJgmjishZYFwYdirQmhuX1FArM1mQeLSOLt11wJV9VYxUlluFLwOk JIZ+KunqutGepha4LK3HN10iz7yCPOb6IJqMDNheXVqW9IHM7Ei4CfHFetByJn0AOW c1eoOhGTjT2gQ== From: "Jiri Slaby (SUSE)" To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-usb@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 09/17] tty: hso: don't emit load/unload info to the log Date: Tue, 21 Nov 2023 10:22:50 +0100 Message-ID: <20231121092258.9334-10-jirislaby@kernel.org> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231121092258.9334-1-jirislaby@kernel.org> References: <20231121092258.9334-1-jirislaby@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 21 Nov 2023 01:24:17 -0800 (PST) It's preferred NOT to emit anything during the module load and unload (in case the un/load was successful). So drop these prints from hso along with global 'version'. It even contains no version after all. Signed-off-by: Jiri Slaby (SUSE) Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni Cc: linux-usb@vger.kernel.org Cc: netdev@vger.kernel.org --- drivers/net/usb/hso.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index 83b8452220ec..48450fe861ad 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c @@ -363,7 +363,6 @@ static int disable_net; /* driver info */ static const char driver_name[] = "hso"; static const char tty_filename[] = "ttyHS"; -static const char *version = __FILE__ ": " MOD_AUTHOR; /* the usb driver itself (registered in hso_init) */ static struct usb_driver hso_driver; /* serial structures */ @@ -3231,9 +3230,6 @@ static int __init hso_init(void) int i; int result; - /* put it in the log */ - pr_info("%s\n", version); - /* Initialise the serial table semaphore and table */ for (i = 0; i < HSO_SERIAL_TTY_MINORS; i++) serial_table[i] = NULL; @@ -3285,8 +3281,6 @@ static int __init hso_init(void) static void __exit hso_exit(void) { - pr_info("unloaded\n"); - tty_unregister_driver(tty_drv); /* deregister the usb driver */ usb_deregister(&hso_driver); -- 2.42.1