From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) (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 B86D6194A40 for ; Fri, 11 Oct 2024 15:23:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728660240; cv=none; b=XWU85Y1oN/1X2YEqicWqJMa9wSrCFYIYFhd5JkZWr9ghqGWjAqEb19nfpKPxs3n9kmVQNWC7s8mhabhOv+gNfMCe/YNIUs1j0rHSFvxYRbhHi+WQOI3HZ9hBLvvTQEiDv6RtPtWB4E+1Wh5ioiJc5sCnyLRI1U5E453RENlHOxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728660240; c=relaxed/simple; bh=rSznrDKSY4WrxXDZ8t7gM3RFnJVuejTr6MEOcAB6fmg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Yy2HW4vF+hmK87aAh8C1ZFyiJ6zshFBhCPQVd30+BpSbUjHsA9lft2aKP8lgBEfTbpEV/8NBeV43hXpl6WTMn2i6zQVKexVhYATNMX0LiY7tz2dLfGuxyZzph0k3U0tjQnYhixgcKA6UIM4qsmVFA1tmI870scarfRJOSsyOeQ0= 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=0ZwkN+mh; arc=none smtp.client-ip=209.85.160.169 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="0ZwkN+mh" Received: by mail-qt1-f169.google.com with SMTP id d75a77b69052e-4603d3e0547so307621cf.0 for ; Fri, 11 Oct 2024 08:23:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1728660238; x=1729265038; 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=rJyLD+5sCaVL1I/s6JcwhAzF4bt83zRxkYYkYug2NjQ=; b=0ZwkN+mhKvCPoqKU7gQXN4FwHUul3KbBPwzynky9Mb71XGEHBPFgDEUT3Ffyh3ctHU djlWQHkPlbFjSVQjVf5LfAwyNhoEQmPGXdr0iQB63b4u2qPKH/J6BSuOycZXscLBKmFB s049UsZT9aLOA+T49P8IOen3FNgz3npnnt80UlENyu2KnpTEyS6h73hzCKVrAHYU2lak WasREDXUYcPf33yA4S903GqZWzlQFTuSDKOvHHtEPbkxX6UW7R7+mPv6YlE8b3nGeeSe ntT+iBDn5U9yEdYN1BZcZ3YGBUp1YAhhf1q1US3wY/2WkjW2BzYBE2TvCNsIuYTObWOR CBMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728660238; x=1729265038; 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=rJyLD+5sCaVL1I/s6JcwhAzF4bt83zRxkYYkYug2NjQ=; b=P7regnygRQS9m4L0Tg4haKr27qws8FtL+6oI80ykH+N3NUR2SvnA5CShpLfcrknxj8 xWFDiqSvx7vAFFoTPKtyzhP+VYw+FT1qnrEreIyx39jR9psvzn21qm1PcGPz+iCUZ8yt JGUoaK/uzLUaeqTkomyFBVcE4FtzyZ4nRcNzq596U2vii2xnC3Caz9l69IVj0VjI1wwu PBVsXhOy0VC8Ses+iX9E4oRJifDAyhN5nrTHidLZWzqAMKoy2Fc7NrY/EdwmNHZC1Ooo K6B5dU+mlZ2j58CQXDv8u7SkiZ6uhp7QMKN/8A4zY9HyA/XCKg3OBuw18Tx1Dici6An9 V/3A== X-Forwarded-Encrypted: i=1; AJvYcCXJErcuXENC8h+KHCogln6cDGnoXBUHwv7jnQ9t6BKuqb3dRGDnvWzsRIGA5yuzKi9pf79jzoUDmu4atyLC7Ad1o8Q=@vger.kernel.org X-Gm-Message-State: AOJu0YxsDGmTc44HdNPlcxFz/9T4lG4H3uuJNRbkenpUQEutqloSXLje FhCkSpN1RrPETlyTetxIDdek6B2aZ+oapcBRSyak0VnwxKWBtWOxYelxGERpHGWWGJTBROxGd++ NvuqlZ+lMsktvXapyYYtcxK9ZqZdY0fjHQ3I7 X-Google-Smtp-Source: AGHT+IHfcllIoreLPh5LQZRi63Z9gY+SjozCRNWADZolB8YwBJ2VdlJgtHx4ZWrWYxemGDRWFvy4vQZfgGpiBJs66xM= X-Received: by 2002:ac8:7e4c:0:b0:45f:68d:f0e2 with SMTP id d75a77b69052e-4604ac3181amr4086721cf.2.1728660237401; Fri, 11 Oct 2024 08:23:57 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20241011-tracepoint-v10-0-7fbde4d6b525@google.com> <20241011-tracepoint-v10-1-7fbde4d6b525@google.com> <20241011131316.5d6e5d10@eugeo> In-Reply-To: <20241011131316.5d6e5d10@eugeo> From: Sami Tolvanen Date: Fri, 11 Oct 2024 08:23:18 -0700 Message-ID: Subject: Re: [PATCH v10 1/5] rust: add static_branch_unlikely for static_key_false To: Gary Guo Cc: Alice Ryhl , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Peter Zijlstra , Josh Poimboeuf , Jason Baron , Ard Biesheuvel , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , linux-trace-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-arch@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Sean Christopherson , Uros Bizjak , Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , Mark Rutland , Ryan Roberts , Fuad Tabba , linux-arm-kernel@lists.infradead.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Andrew Jones , Alexandre Ghiti , Conor Dooley , Samuel Holland , linux-riscv@lists.infradead.org, Huacai Chen , WANG Xuerui , Bibo Mao , Tiezhu Yang , Andrew Morton , Tianrui Zhao , loongarch@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Oct 11, 2024 at 5:13=E2=80=AFAM Gary Guo wrote: > > On Fri, 11 Oct 2024 10:13:34 +0000 > Alice Ryhl wrote: > > > +#ifndef CONFIG_JUMP_LABEL > > +int rust_helper_static_key_count(struct static_key *key) > > +{ > > + return static_key_count(key); > > +} > > +EXPORT_SYMBOL_GPL(rust_helper_static_key_count); > > ^ Explicit export should be removed. This only works because we didn't > remove export.h from all helpers.c yet, but there's a patch to do > that and this will stop working. What's the benefit of removing explicit exports from the Rust helper C code? It requires special casing things like modversions for these files, so I assume there's a reason for this. I asked about it here, but never got a response: https://lore.kernel.org/rust-for-linux/CABCJKudqAEvLcdqTqyfE2+iW+jeqBpnTGgY= JvrZ0by6hGdfevQ@mail.gmail.com/ Sami