From nobody Sat Jul 25 02:47:29 2026 Received: from canpmsgout08.his.huawei.com (canpmsgout08.his.huawei.com [113.46.200.223]) (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 31FA13D5237 for ; Mon, 20 Jul 2026 09:49:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.223 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784540953; cv=none; b=BPUhGmtG77Jzqyy+UpJU/C9Qjt51ntY6DT2bQCUtnyNKTNanPuDEF2yI8+gc7Wpg/I5j4qOzLO3gs9vMNa28/wHH6Xl8hLtSu8QZgvIyBoF325dQ1M0N068XGSpsqNZTmjyP8VQzbvjDk11uBQPWta5/qB8+uQ667pEfnZwgy8I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784540953; c=relaxed/simple; bh=7vP3g3F4zprei7EocxbsPg0+OevxumGn94t1phqlcNU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=dFjTtuDmIE4EK7gR/b7hizv63ZLgt8GRI0T1B64AqqN+M72GAM83dQUm1a4LPaUfncG5YkwJ8dI6zRq0ujLFeTzoRP/ZL47tDazeKESKk5ucvyZYZNRO0Z6CGTQPcxXDQcUR9OHKT04AmF4v2/9GLsVDAk5kIeYgAcUgTwrssrM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=02EAXvEB; arc=none smtp.client-ip=113.46.200.223 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="02EAXvEB" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=27mD+/v/sIGZL1GMnCLJecBtIK57WiaeEYKwz73Q89o=; b=02EAXvEB81obSr51vhiLSbawLfEJ/m8piAiJqy+pl4F4Z159LXFlxX1qn5q0MuyenozXdv3dP Z3Heb3uK7PIveSxRJ5mBBkfdMA0J5BqhNdkX9xyX/agRuhnw6xFyeEQP+d/urg2tZDHnz4nGyK1 KddH/grmOmVjIA1g3HwQIJE= Received: from mail.maildlp.com (unknown [172.19.163.15]) by canpmsgout08.his.huawei.com (SkyGuard) with ESMTPS id 4h3b8J1lyxzmVWY; Mon, 20 Jul 2026 17:39:44 +0800 (CST) Received: from dggpemf500011.china.huawei.com (unknown [7.185.36.131]) by mail.maildlp.com (Postfix) with ESMTPS id DBF314058E; Mon, 20 Jul 2026 17:49:05 +0800 (CST) Received: from huawei.com (10.90.53.73) by dggpemf500011.china.huawei.com (7.185.36.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 20 Jul 2026 17:49:05 +0800 From: Jinjie Ruan To: , , , CC: Subject: [PATCH] entry: Provide stub for syscall_enter_audit() when auditing is disabled Date: Mon, 20 Jul 2026 17:49:21 +0800 Message-ID: <20260720094921.537716-1-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: kwepems100002.china.huawei.com (7.221.188.206) To dggpemf500011.china.huawei.com (7.185.36.131) Content-Type: text/plain; charset="utf-8" When CONFIG_AUDITSYSCALL is not set, syscall_enter_audit() is not defined, causing following undefined reference warning. So add an empty inline stub to resolve the missing symbol. include/linux/entry-common.h:109:(.noinstr.text+0x2e6): undefined referenc= e to `syscall_enter_audit' Fixes: ff2b9a905930 ("entry: Rework syscall_audit_enter()") Signed-off-by: Jinjie Ruan Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202607181530.2nx8zb3J-lkp@int= el.com/ --- include/linux/entry-common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h index 6574b7183c01..016165cffc9f 100644 --- a/include/linux/entry-common.h +++ b/include/linux/entry-common.h @@ -60,7 +60,11 @@ static __always_inline bool arch_ptrace_report_syscall_p= ermit_entry(struct pt_re =20 void trace_syscall_enter(struct pt_regs *regs); void trace_syscall_exit(struct pt_regs *regs, long ret); +#ifdef CONFIG_AUDITSYSCALL void syscall_enter_audit(struct pt_regs *regs); +#else +static inline void syscall_enter_audit(struct pt_regs *regs) { } +#endif =20 static __always_inline long syscall_trace_enter(struct pt_regs *regs, unsi= gned long work, long syscall) --=20 2.34.1