Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3187952yba; Mon, 8 Apr 2019 13:04:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4uhcwT77U6xjWA+UrZvfLQDOOm73fkTq/5Adz9qyvvoBdeLh/TlIodDc/F0smOkLYSN9L X-Received: by 2002:a17:902:5a5:: with SMTP id f34mr32815115plf.35.1554753852829; Mon, 08 Apr 2019 13:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554753852; cv=none; d=google.com; s=arc-20160816; b=u513KhjtTz+kMCpngkxY3604ed8bGo3QIEW7uboOIg+/2hjTj1uM9fir3Z28zi0dwf NeFOOI5iu2l8HmvC2Levz54b+MTtlBWhm71FIaiAe8GtgPZuoxfPB1bpJWDvMFdVCauW NPMul7ioZCV/vva/rvpRqx2yaJ18EvupvdbTGR4oh8dZBOVsbL9SQwAJaW6q6vxR2cSB U5DPA5/+3mBwBY9R625oAEKCAbS7QZseRLuDrUHcoKR3qo3mT1cDeGKJlbhClaAzIN7U xuFTc+33Oe/klBWW/95tEj0tSlxwEfF2EF1oODPMrXpu9zb3ixuP3mZjnOJbky4aMOB5 hVZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=EwHfX4vzFuISzlHQJcEbfbxfFqFwrWHYcZKszNe3e10=; b=u7XEw4HciOPx7xKsJexvls6GV/77OPK/kcrBVu5cIb/n5FaWxz/XZULMVzqouS2IRW JUY1LelF3afviFvSPL+0r4O2xzukuB/JYt4e96wPkOovEaGRireU1zqnwsKrYSTaTyr6 c3XNLTXFGLr6dGvOzskx1VyiMPGOCtUSed7AeKk+5WkCzrCXXIQcNR1wcSzqFLr5LhPK sCMyHoxXkZN3gmrtqoUBQEoCtsV/aGsvf8Sd3ZoLN/D4M2RzoR0XRkD3BKAnlf+3Pk/M fHr100BEPRh9bAIoSuBhiu8Ph07P74fyGZo3g02nYUKbM1AGp6hPKiBU4y5OSmL/g9FS 60yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12si26705142pgl.264.2019.04.08.13.03.57; Mon, 08 Apr 2019 13:04:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727196AbfDHUBt (ORCPT + 99 others); Mon, 8 Apr 2019 16:01:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:60682 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726220AbfDHUBt (ORCPT ); Mon, 8 Apr 2019 16:01:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 29768B018; Mon, 8 Apr 2019 20:01:48 +0000 (UTC) Date: Mon, 8 Apr 2019 13:01:41 -0700 From: Davidlohr Bueso To: Kees Cook Cc: Shuah Khan , Stanislav Kinsbursky , Manfred Spraul , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] selftests/ipc: Fix msgque compiler warnings Message-ID: <20190408200141.uusxqlqly6tab6h7@linux-r8p5> References: <20190408171344.GA22803@beast> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190408171344.GA22803@beast> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 08 Apr 2019, Kees Cook wrote: >This fixes the various compiler warnings when building the msgque >selftest. The primary change is using sys/msg.h instead of linux/msg.h >directly to gain the API declarations. > >Fixes: 3a665531a3b7 ("selftests: IPC message queue copy feature test") >Signed-off-by: Kees Cook (Not really related to this patch) Given that the selftest/ipc/ only consists of this test, I wonder if the test should just be moved to ltp, where the ipc tests are a lot more complete and robust -- and which I've been using for years for basic testing code changes. Don't get me wrong, I'm all for having ipc tests in the kernel, but it seems rather impractical to have them in both places considering the relevance of ltp in the community and how long they have existed there. I'm also speaking on the basis that by ipc we are referring only to sysv and posix flavors. Thanks, Davidlohr