From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DEE023E25B for ; Wed, 12 Mar 2025 12:22:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.67.36.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741782132; cv=none; b=LxL+9Zjc1pGRTzNMqvZlfJCBr7oFpEIcwIA/lJIBTYJhyQVElm6VAoo2wBOIyiwnGH5v1Ps639eNz67qFJ1BNFCwQ38P+3NX9D74aFri2ZINTyuBcuEWAjKHbStW7dTNbjJVGEP+/jK3tMA/mBR+b57Z9JulPVT5gdVCLs8ltXQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741782132; c=relaxed/simple; bh=dQEshaF8/RAkmjZOcU+Ndz4W809g96rTGJPqMUi55/Y=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=ilgO2cPN1m+1JDyPzP+J5Sf0lK8XHoQ8am3KEHQW3RU5FVB3n9/hcAdMFlOPiBAh84wKQFpbNV+rigaUZ/iStSB12xCcz98EpHFQK1o9ZWRC9Jh2bhRrTOYf+6KTbz7Yj2MeeYPefoIMf7tOj+t0RhAYNIXkxE3rm1P8hpYC4QQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.net; spf=pass smtp.mailfrom=posteo.net; dkim=pass (2048-bit key) header.d=posteo.net header.i=@posteo.net header.b=BOY2Sma3; arc=none smtp.client-ip=185.67.36.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=posteo.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=posteo.net header.i=@posteo.net header.b="BOY2Sma3" Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8D38D24002B for ; Wed, 12 Mar 2025 13:22:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1741782129; bh=dQEshaF8/RAkmjZOcU+Ndz4W809g96rTGJPqMUi55/Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=BOY2Sma3SdrK9tloIynxvqBRNH7+t01cTHrkY4p0f4Y/X93sp82kS2hucoCtHL2d/ zaWoooaTW2Zt4k02KLC8K6lbsdgA0hLwpiWirkwqXJxTVYF8/IozmUE38KDG1miHLk /voNSFH+lrUondtnF3fU9sYGfFh8n230o2xRvE40eyy7kuGc6+oYeEBsjDFWGGga/9 QpCY7Tv6wz2M57bQ4MXXkGqx3lvARL9rXagjjJufc8AkRGkyaKcNnjYzh8RiXzuVFA Ym4prpjn1mr0Gq6G+ZXqSIjxzLtpqgTxt6AdFajMN8DiVgRlWm5ZizcC0vsnI0mS7r Fwovd8M6rvEmw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4ZCVB51Jc8z9rxB; Wed, 12 Mar 2025 13:22:05 +0100 (CET) From: Charalampos Mitrodimas To: Panagiotis Foliadis Cc: Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH v2] rust: task: mark Task methods inline In-Reply-To: <20250311-inline-c-wrappers-v2-1-72c99d35ff33@posteo.net> (Panagiotis Foliadis's message of "Tue, 11 Mar 2025 15:05:52 +0000") References: <20250311-inline-c-wrappers-v2-1-72c99d35ff33@posteo.net> Date: Wed, 12 Mar 2025 12:22:04 +0000 Message-ID: Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Panagiotis Foliadis writes: > When you build the kernel using the llvm-18.1.3-rust-1.85.0-x86_64 > toolchain provided by kernel.org, the following symbols are generated: > > $ nm vmlinux | grep ' _R'.*Task | rustfilt > ffffffff817b2d30 T ::get_pid_ns > ffffffff817b2d50 T ::tgid_nr_ns > ffffffff817b2c90 T ::current_pid_ns > ffffffff817b2d00 T ::signal_pending > ffffffff817b2cc0 T ::uid > ffffffff817b2ce0 T ::euid > ffffffff817b2c70 T ::current > ffffffff817b2d70 T ::wake_up > ffffffff817b2db0 T ::dec_ref > ffffffff817b2d90 T ::inc_ref > > These Rust symbols are trivial wrappers around the C functions > get_pid_ns, task_tgid_nr_ns, task_active_pid_ns, signal_pending, uid, > euid, get_current, wake_up, get_task_struct and put_task_struct.It > doesn't make sense to go through a trivial wrapper for these > functions, so mark them inline. > > After applying this patch, the above command will produce no output. > > Link: https://github.com/Rust-for-Linux/linux/issues/1145 > Signed-off-by: Panagiotis Foliadis Reviewed-by: Charalampos Mitrodimas