From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com [209.85.219.46]) (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 DA88425742F for ; Mon, 20 Jul 2026 20:40:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784580009; cv=none; b=n6BAx5M4WmsewLSvZRFgIHh+37mQT0fxP0loig5i3IUs4rWVrYOacjZU1cYIbFgTkqaTdW5cV+O0J3HBkk7Sv576yFlqkdyrohNAWOXQPKiwj4iClcFgvGWfqys5zcZi0xlTKeaQHIo5Ux8f0AZPBUJf4vWNnFyqKj114jlSXyk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784580009; c=relaxed/simple; bh=nhU53OwnG/fAq56JGP21f3nMP7J14/UpgaOBWIQXEHA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CMcVZRK2V7FKIXKnLKKuzx7gB1qNFBgLIrsTM2JwKljPGbGqLrWF3IZWTdsJS6W0qYxtFXQrq0yKgQ7xaFIjpwmaJiTfDk/CahIRRxlAai/wA/sxRbpW1XbiZ/KXrrrWGejW6BDgEFZdvAj+pOqGIXofx+ddBmEWftppA+umRmc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=S/dXSDeo; arc=none smtp.client-ip=209.85.219.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="S/dXSDeo" Received: by mail-qv1-f46.google.com with SMTP id 6a1803df08f44-8eeadbc5e21so46853556d6.3 for ; Mon, 20 Jul 2026 13:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784580007; x=1785184807; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=OwjtLCWgTTEQSYC4lcp4VnyQbYT7DkETAh6o5X09RTA=; b=S/dXSDeo0x+f6wu4iES/rJtmzjHsvdiBouX+PEbiTG70blsSep33n3LFCqQe1Wh/Ox X92JCN2xRffrhjImOa4CAI2XvYr96Yu63Pw5Y2hkOEv32lUuopmp2GKQr/M1g0x6SDYZ enAXWJaKUtNu4qPqbsLL8bOYMstGDYs1a1d9JwdT9Dn9hHztAo4KSKHqar5epBiE5Jyi S2YQeIT/kHTWeU1790ZPVsJhiTWfYjm73vc3cP7o8Jr+iI9dO1flwMjaJM2zgoHafFVp xcEuG1jatFtESNrdAdMapCpV8p08MP/BtXa0Llfgvy/XfkFpNER3ky5AWCTVl7OteEd6 7Uig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784580007; x=1785184807; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=OwjtLCWgTTEQSYC4lcp4VnyQbYT7DkETAh6o5X09RTA=; b=G15JlQjcyz9h+V1Q2PyNAVLt5gS30VFSSxJy2c1RT6j2lUJNrWKpsgMvqOquBJb4zg /ofRDffP8OYG/+fKUWXwRY2PS2ka7u5kGfDm79740e5S5tYt2LKMPsRpmF63GHEbUbdx kyFy8L8TIthNh9ih3mt6no2hw8KXW98CuntLwzGRCHK4cYVrUlJIY1srQJI/XZWTRnxQ 7r3o7roB6CLHgXpOA+Jt4kKMS19hvEwhycdeg1GiDHTSxqyP91lsINXqlJzDnPcGHbQX nrMN4dWmRVXcjmuEOwoWR1XYaE2sLh5t+3+I12zS+1fgdi8h8sHAC/9lGVFc8paamv4d QQRA== X-Forwarded-Encrypted: i=1; AHgh+RqiIr50YOAZIch0ZB+SNmslNBvz2bjWPbQKtESfV3XUdxVO4UQZk3n08sx1HrZjkdveGXX2Z5lnQfJSxwg=@vger.kernel.org X-Gm-Message-State: AOJu0Yxa5mvDMWmRZrJrEIje/tN14/BTX6S6OunGAPNQ1ukIQ8y1b1na CJsFmHb/SBdaHOy6Gr2OCe3cP3yxi5ZDv2dvVtaf7+vIPr2q1RUTx6Gv X-Gm-Gg: AR+sD12dxzlW9plOiF03frCjHg0cm9dycd2iQUYgMEUyrxG/ht9pOr7j30pZxTDCDne pc9MY5Dykgy7OPlC4Wirns0SMX9iZyVh+TODEe/PmG4RXanmO8iGR/gA0dwHQD+lYqtIVuQfoCB mXwZwh5OeHfcYIgzoQt0TVLsiBpfJ0KzP+Ox77U8H8LXpzHk8uI0lo/tZ8/tlGTvqcMCZb45hUJ HdelqD8R3rWLR99IQWs7xyhoOxBga0PKxnKkmZE2OscXhAJi0gC0rsuxQXfxNzC/iuDJZdk3iSy g39//N72gUBU+T7wzTForDsRQPnt1KNymShAHe04nPNPkNyJ7Na7G750ot4e4RK+Qp//GgsZYef XKkHZnFq4m3CtBNG414i4e5FMaON0KOaEoFczii2InZhBd9CDthibFW3sEL4BJkhG6DHnQSVCZ9 wyc6pb/ZoYhO3PtskT5DVirgre6WHDd1u5k4EsZaqage/HEt5zWm0mbmc/3JpWbrUHhQWo+Lcie aj8ytL36YE= X-Received: by 2002:ad4:5ae9:0:b0:8f2:747d:3027 with SMTP id 6a1803df08f44-907783395demr165080626d6.20.1784580006790; Mon, 20 Jul 2026 13:40:06 -0700 (PDT) Received: from paul-white-HP-Pavilion-Laptop-15-cs1xxx.mynetworksettings.com ([2600:4040:ad6a:1e00:3cbf:aab0:f9ff:788b]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-907892782bdsm74021916d6.36.2026.07.20.13.40.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2026 13:40:06 -0700 (PDT) From: Paul White To: shuah@kernel.org Cc: akpm@linux-foundation.org, jouyeol8739@gmail.com, reddybalavignesh9979@gmail.com, richard.weiyang@gmail.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Paul White Subject: [PATCH] selftests: ipc: Change operation not supported error number Date: Mon, 20 Jul 2026 16:40:01 -0400 Message-ID: <20260720204001.1663473-1-paul.white.kernel@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The application doesn't know what ENOTSUPP means, as it is a kernelspace error code and the application doesn't have access to kernelspace error codes.I used EOPNOTSUPP in its place as that is an error number the application will recognize and know an operation is being attempted that it cannot support. Signed-off-by: Paul White --- tools/testing/selftests/ipc/msgque.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/ipc/msgque.c b/tools/testing/selftests/ipc/msgque.c index 82f73cdae120..4b4c1abfac0f 100644 --- a/tools/testing/selftests/ipc/msgque.c +++ b/tools/testing/selftests/ipc/msgque.c @@ -161,7 +161,7 @@ int dump_queue(struct msgque_data *msgque) ret = msgrcv(msgque->msq_id, &msgque->messages[i].mtype, MAX_MSG_SIZE, i, IPC_NOWAIT | MSG_COPY); if (ret < 0) { - if (errno == ENOSYS) + if (errno == EOPNOTSUPP) ksft_exit_skip("MSG_COPY not supported\n"); ksft_test_result_fail("Failed to copy IPC message: %m (%d)\n", errno); -- 2.53.0