From patchwork Thu Apr 25 15:55:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1927826 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=R3ffTZ4c; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=xPDFI91i; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=R3ffTZ4c; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=xPDFI91i; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VQL7P0DHCz1yP2 for ; Fri, 26 Apr 2024 01:56:17 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 938A03CFE6E for ; Thu, 25 Apr 2024 17:56:14 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [217.194.8.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 8FA4F3CE2B0 for ; Thu, 25 Apr 2024 17:55:39 +0200 (CEST) Authentication-Results: in-2.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.cz (client-ip=195.135.223.130; helo=smtp-out1.suse.de; envelope-from=pvorel@suse.cz; receiver=lists.linux.it) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-2.smtp.seeweb.it (Postfix) with ESMTPS id 162FE60012A for ; Thu, 25 Apr 2024 17:55:38 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1D7F621A45; Thu, 25 Apr 2024 15:55:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1714060538; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yo9Tf6SBN4YKow7PA8fXa3ApOwhivMt8em98/0ZGMCQ=; b=R3ffTZ4cDYyKJljc+QXprSr+u6fX06mGPj8wZX1dFjTRCACFhOSqs4SGHB3LVhvWhCRcwR 7qPJumtG4FR2z7EYRvIzEY2wnj/69TFQ5VCbywOpgvmZ6lMK1310BXuTyW4TI8cQkHgq75 lQA8IKoIDrovaTvFdQOx2/KHvcOTksQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1714060538; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yo9Tf6SBN4YKow7PA8fXa3ApOwhivMt8em98/0ZGMCQ=; b=xPDFI91iru+KegyTKfkho/SN9GRrqAqo3XZE01IDw2tYGIKs10q+4M4Lko/PoUb9PjqlS7 EIK4yb3mm11zQLDA== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1714060538; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yo9Tf6SBN4YKow7PA8fXa3ApOwhivMt8em98/0ZGMCQ=; b=R3ffTZ4cDYyKJljc+QXprSr+u6fX06mGPj8wZX1dFjTRCACFhOSqs4SGHB3LVhvWhCRcwR 7qPJumtG4FR2z7EYRvIzEY2wnj/69TFQ5VCbywOpgvmZ6lMK1310BXuTyW4TI8cQkHgq75 lQA8IKoIDrovaTvFdQOx2/KHvcOTksQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1714060538; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yo9Tf6SBN4YKow7PA8fXa3ApOwhivMt8em98/0ZGMCQ=; b=xPDFI91iru+KegyTKfkho/SN9GRrqAqo3XZE01IDw2tYGIKs10q+4M4Lko/PoUb9PjqlS7 EIK4yb3mm11zQLDA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id F039D139A9; Thu, 25 Apr 2024 15:55:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id YJnqOfl8KmZoGgAAD6G6ig (envelope-from ); Thu, 25 Apr 2024 15:55:37 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Thu, 25 Apr 2024 17:55:31 +0200 Message-ID: <20240425155533.295195-2-pvorel@suse.cz> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240425155533.295195-1-pvorel@suse.cz> References: <20240425155533.295195-1-pvorel@suse.cz> MIME-Version: 1.0 X-Spam-Score: -6.80 X-Spam-Level: X-Spamd-Result: default: False [-6.80 / 50.00]; REPLY(-4.00)[]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns,suse.cz:email]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-2.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-2.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v3 1/2] lapi/fs: Replace loff_t with long long X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" loff_t in tst_max_lfs_filesize() would require define _GNU_SOURCE. Replace with long long to avoid this. This fixes build error on musl (alpine): In file included from unlink09.c:18: ../../../../include/lapi/fs.h:58:15: error: unknown type name 'loff_t' 58 | static inline loff_t tst_max_lfs_filesize(void) Fixes: 2cf78f47a ("unlink: Add error tests for EPERM and EROFS") Suggested-by: Jan Stancek Signed-off-by: Petr Vorel --- changes v2->v3 * Use just long long instead of define _GNU_SOURCE (Jan) Later I move this out of LAPI header, but now let's fix the CI. Kind regards, Petr include/lapi/fs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/lapi/fs.h b/include/lapi/fs.h index c19ee821d..635979b02 100644 --- a/include/lapi/fs.h +++ b/include/lapi/fs.h @@ -55,13 +55,13 @@ * 64 bit: macro taken from kernel from include/linux/fs.h * 32 bit: own implementation */ -static inline loff_t tst_max_lfs_filesize(void) +static inline long long tst_max_lfs_filesize(void) { #ifdef TST_ABI64 - return (loff_t)LLONG_MAX; + return LLONG_MAX; #else long page_size = getpagesize(); - loff_t ret = ULONG_MAX; + long long ret = ULONG_MAX; while (page_size >>= 1) ret <<= 1; From patchwork Thu Apr 25 15:55:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1927825 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=vwLOkhFL; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=5cZa4s2x; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=vwLOkhFL; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=5cZa4s2x; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VQL753ZwMz1yP2 for ; Fri, 26 Apr 2024 01:56:01 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 1A38C3CFE78 for ; Thu, 25 Apr 2024 17:55:59 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 6B19D3CF9E7 for ; Thu, 25 Apr 2024 17:55:40 +0200 (CEST) Authentication-Results: in-7.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.cz (client-ip=2a07:de40:b251:101:10:150:64:2; helo=smtp-out2.suse.de; envelope-from=pvorel@suse.cz; receiver=lists.linux.it) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id C4B3C20075C for ; Thu, 25 Apr 2024 17:55:39 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 3DBFA5BF17; Thu, 25 Apr 2024 15:55:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1714060538; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xIjUPXyMHgjY3v8kk/tQIjgZu85m0RQnm8/Z6JvqCKY=; b=vwLOkhFLkj3b65zAcmqRjg5fV8IPcdhlasAwFEcmcKnwn//eRon+zm1k4N6i4eBDfDp1QT 9yTg0wbY/93+SAabrK9u3w/Im2+ZFvnGCd3nbfzBomcXhwMNne0/uoW+aaHZGWRNUeByME wwCj/GxdmMf0BAHSkzEIWNx+al9dORs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1714060538; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xIjUPXyMHgjY3v8kk/tQIjgZu85m0RQnm8/Z6JvqCKY=; b=5cZa4s2xpMoNojKqeF19BT79iM+2Rmb3VEbX0PG9fbXlUmb1AApSOCrQ00d+QndBniCREf vhdhwqcWCQF0nnCw== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1714060538; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xIjUPXyMHgjY3v8kk/tQIjgZu85m0RQnm8/Z6JvqCKY=; b=vwLOkhFLkj3b65zAcmqRjg5fV8IPcdhlasAwFEcmcKnwn//eRon+zm1k4N6i4eBDfDp1QT 9yTg0wbY/93+SAabrK9u3w/Im2+ZFvnGCd3nbfzBomcXhwMNne0/uoW+aaHZGWRNUeByME wwCj/GxdmMf0BAHSkzEIWNx+al9dORs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1714060538; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xIjUPXyMHgjY3v8kk/tQIjgZu85m0RQnm8/Z6JvqCKY=; b=5cZa4s2xpMoNojKqeF19BT79iM+2Rmb3VEbX0PG9fbXlUmb1AApSOCrQ00d+QndBniCREf vhdhwqcWCQF0nnCw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 1A24D139AA; Thu, 25 Apr 2024 15:55:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id wCx8Bfp8KmZoGgAAD6G6ig (envelope-from ); Thu, 25 Apr 2024 15:55:38 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Thu, 25 Apr 2024 17:55:32 +0200 Message-ID: <20240425155533.295195-3-pvorel@suse.cz> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240425155533.295195-1-pvorel@suse.cz> References: <20240425155533.295195-1-pvorel@suse.cz> MIME-Version: 1.0 X-Spam-Level: X-Spamd-Result: default: False [-6.80 / 50.00]; REPLY(-4.00)[]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns,suse.cz:email,configure.ac:url]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Spam-Score: -6.80 X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-7.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-7.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v3 2/2] lapi: getrandom05: Add getrandom() fallback X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Fix missing getrandom() support detection on glibc < 2.25 and musl < 1.1.20. Add m4 check and use lapi header in getrandom05 to fix error: getrandom05.c:16:24: fatal error: sys/random.h: No such file or directory #include on openSUSE Leap 42.2 (glibc 2.22, kernel 4.4). NOTE: getrandom() requires Linux >= 3.17, which is not supported. While it'd be quite easy to check (it would require e.g. AC_LINK_IFELSE() check), I skipped that, because we are going to drop kernel 3.10 support. Fixes: d9280782d ("getrandom: Add negative tests for getrandom") Signed-off-by: Petr Vorel --- The same as in v1 and v2. configure.ac | 1 + include/lapi/getrandom.h | 15 +++++++++++++-- testcases/kernel/syscalls/getrandom/getrandom05.c | 3 ++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 1d7e862d8..15a5847fa 100644 --- a/configure.ac +++ b/configure.ac @@ -76,6 +76,7 @@ AC_CHECK_HEADERS_ONCE([ \ sys/inotify.h \ sys/pidfd.h sys/prctl.h \ + sys/random.h \ sys/shm.h \ sys/timerfd.h \ sys/ustat.h \ diff --git a/include/lapi/getrandom.h b/include/lapi/getrandom.h index c654ca1ac..706ef9b8f 100644 --- a/include/lapi/getrandom.h +++ b/include/lapi/getrandom.h @@ -8,10 +8,14 @@ #include "config.h" -#if HAVE_LINUX_RANDOM_H -#include +#ifdef HAVE_SYS_RANDOM_H +# include +#elif HAVE_LINUX_RANDOM_H +# include #endif +#include "lapi/syscalls.h" + /* * Flags for getrandom(2) * @@ -27,4 +31,11 @@ # define GRND_RANDOM 0x0002 #endif +#ifndef HAVE_SYS_RANDOM_H +static inline int getrandom(void *buf, size_t buflen, unsigned int flags) +{ + return tst_syscall(SYS_getrandom, buf, buflen, flags); +} +#endif + #endif /* LAPI_GETRANDOM_H__ */ diff --git a/testcases/kernel/syscalls/getrandom/getrandom05.c b/testcases/kernel/syscalls/getrandom/getrandom05.c index 1a9614330..92098deb7 100644 --- a/testcases/kernel/syscalls/getrandom/getrandom05.c +++ b/testcases/kernel/syscalls/getrandom/getrandom05.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2024 FUJITSU LIMITED. All Rights Reserved. + * Copyright (c) Linux Test Project, 2024 * Author: Yang Xu */ @@ -13,8 +14,8 @@ * - EINVAL when flag is invalid */ -#include #include "tst_test.h" +#include "lapi/getrandom.h" static char buff_efault[64]; static char buff_einval[64];