Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2566897rdb; Wed, 21 Feb 2024 11:37:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX3aCOT+0kuLcgFj8rhfTeihC2aVZnpREshFCfzDWoDqC5LV+8yiOhhJnz6Um4VRVdkj9fFYMucZI8C44KjVtTrhGEUAUYXbvXo13eCxw== X-Google-Smtp-Source: AGHT+IFEyhauz4qZ1TF50Rakwe4b6KyIRWDbuZxlI0zlPm93XkEoVWhWjU3w2Ha9MxMrYhrck0on X-Received: by 2002:a05:6a21:1014:b0:1a0:c950:9eb6 with SMTP id nk20-20020a056a21101400b001a0c9509eb6mr1922318pzb.27.1708544250712; Wed, 21 Feb 2024 11:37:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708544250; cv=pass; d=google.com; s=arc-20160816; b=ANmK5aFMEF9gladaus4kG8hehDtNmcZsj+u/uPBRP58AZ9OiuQrpZr3CO7oyBdg7Dv iRhxPNI5WwPTktVv5gGVdLtMusiEf7ecy0n98TGTPukcF8He7CW5dCgnfZ19Hebge0CK sQ33j2NsCm8onmkKmJw3wYQq/Hx6NJ4/i5NUU5aol9d1beGbhuoiOQ7smrkeWSDUna0y 9nLDJ9v6ebmeqYtjCUV3Ku7aBkwls5iWMiTlV1Ie1Z6zhbjjF26Vvbj8GJyjIw9ccHbR FZqxaBEYBHvhlSg/yIbm8f39l70Rdy2oY9LbafrkIkaHaMJgzbqHho9+OxUCEH1fpIyT Henw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=2Djs9szs5Ofk1BJwv5+KNW44by/NjoWPT8KOFUi6a38=; fh=OJ09GXzbbxOlm56Aq3nkp4s2eeG+SFY4Xih4EExm6SI=; b=Fl2qS/bFzIDka4qcuevWorBapK9mBCz5ckto583uWywVobU701rwIoe10ASOprsXMh TDXERcPihR3jtqBWhe+0KTNPMb782CBhmvTi/n4khd+Vk9QYLcUE3NfxRReraLRsNq6J +rnr0o5ok/3SqJjnUdtQWJLf3+GxbyDP69prIY732uOVW+xdhq6e3Pr84FGVbZsmVB1R 6k/N7AZfP35QipUSzX5NU6VRWYtHBRHVUS5uwmbWHkx7/0PeJoIwapTKgn65cpei65hZ dSDc/MuJgvLU6qGLj9L4eACQiL9KdmJKPEY0VxKWubPHu0WXJSmkUoUX0Y9jVFVleCHA gqFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=mTQRUynX; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-75360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id np6-20020a17090b4c4600b0029a1aaefe30si1593546pjb.188.2024.02.21.11.37.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 11:37:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=mTQRUynX; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-75360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A25BFB27ECE for ; Wed, 21 Feb 2024 19:25:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70D6086134; Wed, 21 Feb 2024 19:25:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="mTQRUynX" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 105A885954 for ; Wed, 21 Feb 2024 19:25:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708543541; cv=none; b=dIrSv6gRrQhglhA7MucSS0rDAVmbog7fWZ4ZQ5BCKbkB/tgYsZ/nC5Bsu2WjPwUWn0XThFgvQR9u4HWCcpo1hi+Oa3jFGzdFaBqGRWemsnVLUbcqWs+CZXbuqTpxmDgyf00jHARCQsi/X0mV+NBl9OBLQPS2Heqp2iow3LmVexI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708543541; c=relaxed/simple; bh=2Djs9szs5Ofk1BJwv5+KNW44by/NjoWPT8KOFUi6a38=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=lnjyrPserbud48f0kgL3YiiCAhr6BIIfdSZEYh6jHZF2f9dOVaSXVD5D7UounkRMdNQgCe8Gk68z2jV0ACgFDEzGmh9Bqfaz8yK2sVa7tDODJ5pjOLa3VMkyzDsvcxibidkmRG/gzaLB30R4rSrTkhv61bYWZQMLbGDZ/BtmJwQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=mTQRUynX; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-561f0f116ecso1783a12.0 for ; Wed, 21 Feb 2024 11:25:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708543538; x=1709148338; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2Djs9szs5Ofk1BJwv5+KNW44by/NjoWPT8KOFUi6a38=; b=mTQRUynXywSy5DGwHMQ9cYVgWe1AnCp6+X7s/VI1il7jnHlUegQd2dICFU1txFAqtJ 9XOuvRIhh2b3ow8NJ6u7plRr0BeR6KqdGnHJeI69IfV2GQVX23X2Xc0xSENjn91lIyqY V+CTXqk7L/2ugqHYMf87iyYRLolXvG3IZ7drtY9zAwwc0ZvBS/IMT5sgW8lUn2mz7cXv smbW9GzqyPhtPYcTFdWX8ZtJdVJXW4g0oF9MXg7cXkCKFnVaolaR7E59kpgEfgtZFqeX BkeJXFjoN+tfh1S4zGu8GhyzpmlSi753izDmYdnUGetbGg5JT8nMJFsVlP0yd4+4RZuy H2fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708543538; x=1709148338; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2Djs9szs5Ofk1BJwv5+KNW44by/NjoWPT8KOFUi6a38=; b=NoxmNU0ReH3pCQantZq4zlpv45nf+WiBzlIFwiA7xYTWOga+QZNo0ts9yb/eoMU+HY e8sMJ7DGnWBOgF7gS8MkJcJg7YdzIBopeMu2jumzPSdSjQLMyxJsvNUL0QPbXKAzZyXR AZIgiv9OxyMOAB1X4Ww92//qG9KmVziFL36pr5TwEzBsLw25kqtD3M/NUuPtWp36PpwF SS5DcFtaTE4kbIZ70YizcSBrvpt3fW3J9Rhejx/J0/Y8Usr7qVgM3nbUR0Z38crXFCqb A/xn7JR8T8A1e18bVmy5RGcdSC12Gpk2pZZ9tiFy45TfMYRA+mpEdeLCHT1EHP7evHGz luKw== X-Forwarded-Encrypted: i=1; AJvYcCV+J35Z7Kpd9fusHeFrOs/Q1itlHcnGDCmZMaE5dsAIpVQWTSdULQXupH+iT1oDnalMK1ScIJOY1qS0Hl7aqC5IH96vJKyld1kyD7SH X-Gm-Message-State: AOJu0Yy0NF3X+J5fo+EnnRVoagwEH07zALWHlT/mi0e83+rylMV2hYRG c9sPUTwcKMpO+uXm/BBJsprsom28QnFSGSAHUNGfcKdONEm+gij03z7U1dUX3eOVKM972nmCBvc YEcECGnUPjxQpCsEB+we07elQr+md5RGd8uYR27lH4lqsl0ip2A== X-Received: by 2002:a50:a408:0:b0:565:123a:ccec with SMTP id u8-20020a50a408000000b00565123accecmr138037edb.3.1708543538101; Wed, 21 Feb 2024 11:25:38 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240220194244.2056384-1-jannh@google.com> <20240221112309.7d526047@kernel.org> In-Reply-To: <20240221112309.7d526047@kernel.org> From: Jann Horn Date: Wed, 21 Feb 2024 20:25:00 +0100 Message-ID: Subject: Re: [PATCH] net: ethtool: avoid rebuilds on UTS_RELEASE change To: Jakub Kicinski Cc: "David S. Miller" , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, John Garry Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 21, 2024 at 8:23=E2=80=AFPM Jakub Kicinski wr= ote: > > On Tue, 20 Feb 2024 20:42:44 +0100 Jann Horn wrote: > > Currently, when you switch between branches or something like that and > > rebuild, net/ethtool/ioctl.c has to be built again because it depends > > on UTS_RELEASE. > > > > By instead referencing a string variable stored in another object file, > > this can be avoided. > > > > Signed-off-by: Jann Horn > > --- > > (alternatively we could also use the utsname info from the current UTS > > namespace, but that'd be a bit of a behavior change, and I wanted to > > keep this change a no-op) > > Is this related to John's work from: > https://lore.kernel.org/all/20240131104851.2311358-1-john.g.garry@oracle.= com/ > ? Ah, I didn't see his patch, but that seems like he had the same idea (but implemented it less sloppily). You can drop this one then...