Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2482459rwi; Fri, 28 Oct 2022 07:35:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7o9FCH//UCCA58nKz7wYK4YccyxMoVJU6fMoaWNEKlI+HNUGnBK7NrfjMzyW9q8mwrqbws X-Received: by 2002:a17:907:2cf0:b0:7aa:21b1:9b4f with SMTP id hz16-20020a1709072cf000b007aa21b19b4fmr22393599ejc.752.1666967725650; Fri, 28 Oct 2022 07:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666967725; cv=none; d=google.com; s=arc-20160816; b=bagZmtt8kFIxuLT6Fi30JHUueWevU2dLjqA0Fnls7TRHDnSVlzdJpGRF2jDEbMiIFB F4CkpI5qw+2D6miesTziU9KyKYaBTmHBXWJU0N6Y8DASifZwhCL4lA3xnJCWgJjrpEIy O1KOUMXCpfxtfMqR1h2b+/Ki7+J+E+9MoO9HAO9/jHo0HEvMXFSzRRTM3cw5HXNj3lce onnxv/gPyOm+QtUeNxbo3n/j9EcxG6pW5igL7kQqYC3PAmfPXnGV8IZNhe26pOjw+CDO sV7BwEs7gSPrFOB2VwloNMkJOS8lY9sIYb+vWyGo7iYY3vu0m5NMTKfuQJidYzoFl81L pfpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=zAImP6PWJ5WKUhDLfWykBuCXt66Oh0xkfiNtM65y4vc=; b=L9UmscuioM8aIO+pGQFh6QwR6YC9m75jHQFUZQOhAOuHVNqB+2fF+NaJZicKNhuaLZ FfV18No2gPuJxpXK+OxDhRvR9k2nAfUgZBBI2cKsFFdZAFo22dDS6fklLRFV5uNv08k5 9zuteTMSF9kxyFiYD84LwCSfkk4yPxngBfJ5cbR+ZHNHRxSsqxlW4NrCiAAFid6azcYj 1F+8fDBM5nnvq067f23Pg7s9iph713UcdsVEKTTa/iWWchNOj4ggeC5PIQD+NIEx8aLJ REp7GYepfHxasHXpdJYpth77hyJ5Gp6kYOC0LBa6ZQignesYXszc5zUcmjmqim2/laha CQZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=odgyqA70; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he39-20020a1709073da700b0078d1e08f1e5si4000443ejc.919.2022.10.28.07.34.58; Fri, 28 Oct 2022 07:35:25 -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=@gmail.com header.s=20210112 header.b=odgyqA70; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229940AbiJ1Nyx (ORCPT + 99 others); Fri, 28 Oct 2022 09:54:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbiJ1Nyv (ORCPT ); Fri, 28 Oct 2022 09:54:51 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05E0E201BB; Fri, 28 Oct 2022 06:54:49 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id l6so4786860pjj.0; Fri, 28 Oct 2022 06:54:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=zAImP6PWJ5WKUhDLfWykBuCXt66Oh0xkfiNtM65y4vc=; b=odgyqA70A3ESvmjUlqp5hpilRZmgvLyLT/NCtcrt8ymsLwCJENdZpKZFuSXCBG+AnY Q86vMciO80RAUc9b91LXgCHhLD3fLj9NKeBiIlI3CATTCHkZLfgLJZx2UwLTBFJk/GME Zk4GvwmIfod3CnXPtr+jRck8cjW2nWNElHM7wK/WyLdpdkH2Xee+QBW02diy9iVkGDVB Oy/a/G9W/aIytmcyDgVJ6d0FwtEwmOeyVnDwRQSfgEzx09p4bt6RxuJXvPo5zxfI/OdC S7YQ4OhwxQQBNs9ySlo2ARuVeNZQzElfeINCyLkgJ4DZAiHDzbL00ZP62fZyiStptrSv CWOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zAImP6PWJ5WKUhDLfWykBuCXt66Oh0xkfiNtM65y4vc=; b=hZv8B/BgHin4jnlxKdwVxWzXKHbwa9FkfWawFshAx+yuUFdo4JPiFKO2HeCD/4LChN YGVvTGtb2Zy5DHL3LyUvqRIleSVo4MI8xR/gG7BY2oLJoBx1AP+iwNe/CEpu9Ryk4INs ANu1MlUybiQXZT1VkRYJTkAiYBHVnIstHT3+868vxaNJWU5cuZ1i1MsNyAbE63VOxe8G mZ8QitK2RE1s0oIbW7uxhtOrZUvc+7XlrK08lSXt3JuMZucvzfYh3FJ0fGtMxMN7m/zJ Yz1q2nYy0ExuLDXB6HDe9JPgPL2KZjiXzw9gtB4MdpHcqeJ4aT8kjGa4/J3Q5W5T15Wh Kdug== X-Gm-Message-State: ACrzQf07Z1L5qoOhiZthBD620eQKMorUD1U0zk/o4/Jx5VXhkzE70Wv4 Eev7PRtB9APlnQpl9SV21lU= X-Received: by 2002:a17:902:e74e:b0:186:f3f4:f7fc with SMTP id p14-20020a170902e74e00b00186f3f4f7fcmr6116570plf.130.1666965288563; Fri, 28 Oct 2022 06:54:48 -0700 (PDT) Received: from [192.168.43.80] (subs03-180-214-233-72.three.co.id. [180.214.233.72]) by smtp.gmail.com with ESMTPSA id 73-20020a62194c000000b00561cf757749sm2869821pfz.183.2022.10.28.06.54.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Oct 2022 06:54:48 -0700 (PDT) Message-ID: <9386b19f-dd99-3601-9e87-3056100dfe53@gmail.com> Date: Fri, 28 Oct 2022 20:54:40 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH 11/15] hdlcdrv: remove HDLCDRV_MAGIC Content-Language: en-US To: =?UTF-8?B?0L3QsNCx?= Cc: Jonathan Corbet , Federico Vaga , Alex Shi , Yanteng Si , Hu Haowen , Thomas Sailer , "David S. Miller" , Eric Dumazet , =?UTF-8?Q?Jakub_Kici=c5=84ski?= , Paolo Abeni , Greg Kroah-Hartman , Jiri Slaby , "Jason A. Donenfeld" , Kees Cook , Marc Kleine-Budde , Wolfram Sang , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc-tw-discuss@lists.sourceforge.net, linux-hams@vger.kernel.org, netdev@vger.kernel.org References: <9a453437b5c3b4b1887c1bd84455b0cc3d1c40b2.1666822928.git.nabijaczleweli@nabijaczleweli.xyz> From: Bagas Sanjaya In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS autolearn=no 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 10/27/22 05:43, наб wrote: > We have largely moved away from this approach, > and we have better debugging instrumentation nowadays: kill it > Same reply as [1]. > Additionally, ~half HDLCDRV_MAGIC checks just early-exit instead > of noting the bug, so they're detrimental, if anything > "... instead of handling the magic number"? Thanks. [1]: https://lore.kernel.org/linux-doc/80c998ec-435f-158c-9b45-4e6844f7861b@gmail.com/ -- An old man doll... just what I always wanted! - Clara