Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp1339212pxt; Sat, 7 Aug 2021 07:50:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQA3eyrOBeJDpiINjlcfnR/jv0r2ZdcgxsBXf6H5q52NdgvLTLOsz7YurFy5R/KP7LaNyt X-Received: by 2002:a17:907:3e05:: with SMTP id hp5mr675726ejc.527.1628347806990; Sat, 07 Aug 2021 07:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628347807; cv=none; d=google.com; s=arc-20160816; b=xrRPX+NmxRkFoHoFclGOhEiKfat6br9QHuJ+Qj5AzN5cdOosbxd+34S1ETgXW4d0/9 GQ1NeL5WIPih1V6sE4Vq4JIwV9idhwf1yRBG+JKjBz42sFFzKvSojRMkYxNmmUUpujm9 M1zP1WAnDhAO6zaBqgw3qhBRtV/fWsM2CIS7lArTsNjt95z05jVj3RXq7wO14oXG/S4+ 4yevMrqPi6hTWgvucDI+4/PVx/lyNNjDK7BudbOVG+WRMJhfy+moico5DLVhpxpaReDG 9+Oc6npAKAXZkypu1AM/VqlpG943BsJYMwB0284YwE4jUfyLlRf+fz56xXP6HMlbPkje K0ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=UjfthcoHMKBAKvAoWreU+sy8ke/gVuMPGt+fw1YE44E=; b=sWgPV8hrKAlonsvm2g05X/uXc4o4P5clahbZdwsxRahiGhnJJtAgnB2aPsaGWWNpyG jBKkhvpIqvsqu70EBvwBI1LINUm+FA6xeAb/Y52ZV90XIZrZby+sz6DSt3pFF6K2ykaE yWDlKggEN58udCjZo8Xkeg+2M11ZkKMj3DhpISl93+enJz3bRkUG4AyGqdX6l5QFrqMl kVOxhxo/TQLK6cFl4jC+X/1fi//w9fOuE1chQ8ZI9sZt5puC9gBMXkK5OLR8wV9h2Odt 8J3mdpC8p19zM4wZr0k6X5FTz5fMOOfpfn5+36a2wONeMoM1Obtj8GMNrytBxcP/CjN1 rkmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mu16si40313ejc.540.2021.08.07.07.49.43; Sat, 07 Aug 2021 07:50:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbhHGOsh (ORCPT + 99 others); Sat, 7 Aug 2021 10:48:37 -0400 Received: from vmicros1.altlinux.org ([194.107.17.57]:55424 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbhHGOsg (ORCPT ); Sat, 7 Aug 2021 10:48:36 -0400 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 9291B72C8F8; Sat, 7 Aug 2021 17:48:17 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 73BE57CF71A; Sat, 7 Aug 2021 17:48:17 +0300 (MSK) Date: Sat, 7 Aug 2021 17:48:17 +0300 From: "Dmitry V. Levin" To: Eugene Syromiatnikov Cc: "Peter Zijlstra (Intel)" , "Joel Fernandes (Google)" , Chris Hyser , Josh Don , Ingo Molnar , Vincent Guittot , Valentin Schneider , Mel Gorman , linux-kernel@vger.kernel.org, Thomas Gleixner , "Dmitry V. Levin" , linux-doc@vger.kernel.org, linux-api@vger.kernel.org, Jonathan Corbet Subject: Re: [PATCH v3] uapi: expose enum pid_type as enum __kernel_pidtype Message-ID: <20210807144817.GC11597@altlinux.org> References: <20210807120905.GA14706@asgard.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210807120905.GA14706@asgard.redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 07, 2021 at 02:09:05PM +0200, Eugene Syromiatnikov wrote: > Commit 7ac592aa35a684ff ("sched: prctl() core-scheduling interface") > made use of enum pid_type in prctl's arg4; however, this type > and the associated enumeration definitions are not exposed to userspace. > Try to fix that by providing enum __kernel_pidtype and tying in-kernel > enum pid_type definitions to it. Note that enum pid_type cannot be exposed > as is, since "enum pid_type" is already exists in various projects [1] Grammar: "enum pid_type" already exists. > (notably gcc and strace), and "enum __pid_type" is defined by glibc and uclibc > for fcntl(F_SETOWN_EX) owner ID type; there is also __kernel_pid_t, > that looks too similar to __kernel_pid_type. > > [1] https://codesearch.debian.net/search?q=enum+pid_type > > Complements: 7ac592aa35a684ff ("sched: prctl() core-scheduling interface") > Signed-off-by: Eugene Syromiatnikov Reviewed-by: Dmitry V. Levin -- ldv