Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp690125rdg; Thu, 12 Oct 2023 19:31:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGG5Zez6uJ43GnOVV+BmWjgijqufYmCP0EPCxVFZspUc4FE/aKBYsUOrHpIOHe5z/lfOTY6 X-Received: by 2002:a05:6358:63aa:b0:143:864e:f96f with SMTP id k42-20020a05635863aa00b00143864ef96fmr29489000rwh.1.1697164287013; Thu, 12 Oct 2023 19:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697164286; cv=none; d=google.com; s=arc-20160816; b=Sj0bQkBWGazt5dtzUDq14rhK4aJ4VM8mR1Mz7n9jfh5j6ui9QIdf03xjHZk7BEQ/KI c5tiHiEkgMCLtWh/iYpa+t1tt3y41EbZYejwdmVV91LJQ0PiIdvIQh0VlFfa/DVIHUDz 7AYuQTF4G8k/w2Wg8QuDEjZ9TWJBfU1QvTsuMf4XNwpQE+y+hKTrRDagzaN0XC8d9W2M iygCmF4UN3BCH+TqlGbUYrSDsvSYuwRWTjr30kkR1B+sJnuF626BRM953PW0YamVJzfK WbZ8T9Ff7lpGcOs6EaIbPjZZIzxdIW1be5u6cyrHvpgUgWQYFpWVK5rpXuasj8oYohbm mbAg== 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:subject:cc:to:from:date :dkim-signature; bh=9AlSt/UmPpPe6qrtiCDOOfX5E4Znn3Anpv8O+XesUkY=; fh=CmrZ5fn58GJFaK+ver+ho9yJrmgXUG6bFTBe9NTq3QA=; b=zKSW1BMLf5BzyLwlbzteYbzdvQRB1xCqrCTY3u198w/+EX8EwqFhDXC0n96uanWJFE 9QWdARNQt+jpjeFYmxhZGWVOVSnJcsZF1ocibUdKUVsc5AIdVhtUnQd0z3kCFQ2hzQmg vym6fr4PwDoUjL9mHTCLEULBuHaegs9woC1jNEdGn9tXDDz047iiSs0IcarcKnhpMEIu nMa0UqP7G/pjCRza032uGzu8gD8LbodHajKReK5atFsmwsO/aKJpSsLe8GISGUR6/T3k 5oAwC6BqzNqyy0MuQ8J/q1+aKLNr61HxhGkOfx7QKt/Ijk9cr7q3GjRVxIFtWuYbAJW/ cAxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20230601.gappssmtp.com header.s=20230601 header.b=t7l4wyBl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e13-20020a63ee0d000000b0058988340c60si3835142pgi.481.2023.10.12.19.31.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 19:31:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20230601.gappssmtp.com header.s=20230601 header.b=t7l4wyBl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D833480BE2F5; Thu, 12 Oct 2023 19:31:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229445AbjJMCbB (ORCPT + 99 others); Thu, 12 Oct 2023 22:31:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjJMCa7 (ORCPT ); Thu, 12 Oct 2023 22:30:59 -0400 Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04370CA for ; Thu, 12 Oct 2023 19:30:58 -0700 (PDT) Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-6bf58009a8dso1027241a34.1 for ; Thu, 12 Oct 2023 19:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1697164257; x=1697769057; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=9AlSt/UmPpPe6qrtiCDOOfX5E4Znn3Anpv8O+XesUkY=; b=t7l4wyBl74o1MWNd5EGt92ncI1qSBLh26uNgNz1jZidkCSMm/hslP9MwX5JtVy4mCm /VbLbnXh0Yer4xJCUYbOMIVWwgdIW+KO3NqgWnNo1+qkCDUL0QG9zCKlpIzbNP6M0aly arss5MFB3ibA7cXi5Vv7e0u6gIi7jpMrMcG6IaGRi9ZxjlRXN2uVpDnpMBg6ZOZmICHy qQYRPSDJCRlhREyEKFZ33jMeRyzhzW1F6NSPK+ZwSub7/6PRTXzkT8HnrW78J2sph/Ro XpqM+ike6rlOx6F82fkyCWo8N8wCH3i8K073kr8cD8WRI6PJApWIG9rQTJClIV7AqPPB MJYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697164257; x=1697769057; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9AlSt/UmPpPe6qrtiCDOOfX5E4Znn3Anpv8O+XesUkY=; b=iuNEJzjGk3xRZ88aAUEGnw6iddGEPs0h/oRDvb4ll7L2L49F9l52smWUvvMB2UQ+u+ rerDqgNo4UoItNr9z9B1vLTDvw4I8ozZeKJYKYFBZZOCcwHOsNEspCHLWEYoHrwPn2/1 JQvQtuot+E5cBuBZYk0diKpDw0ljlsfMERLHpiGPjJvoMbij26eQjiOjS04qTcVgkuii u83Y1pDEjkFDGp/U0z4nBNRPcE0zAiIMN8MG8QLd3mXUuCyHVJzqmsNse6TJt/FreKP8 g/n8tQj8soSdCHmQyTyx0l6ixPXxBMhXIBdlYcuUIxrsxAJe9X0O5SV++iPV30MT0NNe a5zA== X-Gm-Message-State: AOJu0YxJeZ4Irq6lKR3mN/0KwoA2vVlpq9fTMLb8sOIDdmiX0SsRx3eL 8mrv+FshBJ0U3aJu3q0Y/ril0Q== X-Received: by 2002:a05:6358:9691:b0:164:8742:525 with SMTP id o17-20020a056358969100b0016487420525mr21597307rwa.17.1697164257258; Thu, 12 Oct 2023 19:30:57 -0700 (PDT) Received: from hermes.local (204-195-126-68.wavecable.com. [204.195.126.68]) by smtp.gmail.com with ESMTPSA id u204-20020a6279d5000000b006b1e8f17b85sm379297pfc.201.2023.10.12.19.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 19:30:57 -0700 (PDT) Date: Thu, 12 Oct 2023 19:30:54 -0700 From: Stephen Hemminger To: Vladimir Oltean Cc: Florian Fainelli , netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Broadcom internal kernel review list , "open list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" Subject: Re: [PATCH net-next v2 2/2] net: dsa: Rename IFLA_DSA_MASTER to IFLA_DSA_CONDUIT Message-ID: <20231012193054.4c6759fe@hermes.local> In-Reply-To: <20231012231345.3thxxxhe7pxs5bib@skbuf> References: <20231011222026.4181654-1-florian.fainelli@broadcom.com> <20231011222026.4181654-3-florian.fainelli@broadcom.com> <20231011163003.32036b28@hermes.local> <20231012231345.3thxxxhe7pxs5bib@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 12 Oct 2023 19:31:05 -0700 (PDT) On Fri, 13 Oct 2023 02:13:45 +0300 Vladimir Oltean wrote: > > I don't know if it would be acceptable in the kernel UAPI but what > > we did in DPDK for similar situation to cause warning on use of deprecated value. > > > > /** > > * Macro to mark macros and defines scheduled for removal > > */ > > #if defined(RTE_CC_GCC) || defined(RTE_CC_CLANG) > > #define RTE_PRAGMA(x) _Pragma(#x) > > #define RTE_PRAGMA_WARNING(w) RTE_PRAGMA(GCC warning #w) > > #define RTE_DEPRECATED(x) RTE_PRAGMA_WARNING(#x is deprecated) > > #else > > #define RTE_DEPRECATED(x) > > #endif > > > > ... > > #define RTE_DEV_WHITELISTED \ > > RTE_DEPRECATED(RTE_DEV_WHITELISTED) RTE_DEV_ALLOWED > > #define RTE_DEV_BLACKLISTED \ > > RTE_DEPRECATED(RTE_DEV_BLACKLISTED) RTE_DEV_BLOCKED > > What precedent exists in terms of intentionally breaking kernel headers? > If none, would this create one? It would cause warning, and most applications builds don't fail because of warning. Kernel already has __diag_warn macro which is similar, but see no usages of it. My comment was more of a "what if", probably not practical since it would just fuel lots of angry user feedback.