Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1816216pxb; Sat, 14 Nov 2020 03:26:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBNdh+2wOtxaUaky/9ZXG0fcyHN6VPw07q1zQn6W7jFX7Dhwb3/pKbwEu83HneH+SoWuFu X-Received: by 2002:a50:bc02:: with SMTP id j2mr7359596edh.317.1605353182114; Sat, 14 Nov 2020 03:26:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605353182; cv=none; d=google.com; s=arc-20160816; b=l/JGSwukgZIfvFFb4HUAlnnF9Bfzq2XQcS3hDz6TcIlFtagcay4lvay2PGu0r/mPFq 2CEj0SqELd45fQ6isPjuE892n7ENFsBRycGFWpOCaK5bWr9E6xxy9IF5hRcC2JV6PXyY Ss3l1oUr+oK6/aIPt65RTLZ39jjl0o+7k97y47hoYAPAeLKnl/yINgNC6Vxbt/fPHfjr iWf6kIEbRtyWEwZgdkrcLz66gXeoiGp9H07XbNT6jX8nTfrtgJ8B5zUp8v/gcWp8d1MF lUk36UH3TnVsQlXBEUqd0GnaHzvcRUjELcPglPFlvpSwnOjZBRzjszIXKDWHiGhuBpaP JE8w== 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:dkim-signature; bh=WSIzGRv01oFmCn2Ex1npbSfqnCGb2bhck8coHY7VFYQ=; b=yuwKObSVJmuz0RTLMX32S7jj8Q7x+exPu7+pkv350g6rYqd1M9KDZxJuNd7AAzcqVV T51CLylCdz0+qYGW79vKVoWqRrqqljrTwjfRrOFGhA3aZRBTuLmV8j2KWTnGMiijvCnU foYyoD9d284bApxLvieNaff/B9YnjnF/ZDbjODEKrQ/d2+8Q0ntf4rn6dXyW7DdS9xra xys2feeKZXd87LwnReX6GC6/1SZ1QT0nR9Wf8hbY+Q1MfwMa6jtSW9hcd1B8/mki3vb0 D0/SlC/Fr16YluILIFU7Y8axpaFsaVzO/8q9Sj9Sw3r29IcnIbxbPRQrHBOGRldcmxMC gP6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=IZ0XGYO5; 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 bi26si9496286edb.553.2020.11.14.03.25.59; Sat, 14 Nov 2020 03:26:22 -0800 (PST) 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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=IZ0XGYO5; 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 S1726588AbgKNLXI (ORCPT + 99 others); Sat, 14 Nov 2020 06:23:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbgKNLXH (ORCPT ); Sat, 14 Nov 2020 06:23:07 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E2DAC0613D1; Sat, 14 Nov 2020 03:23:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=WSIzGRv01oFmCn2Ex1npbSfqnCGb2bhck8coHY7VFYQ=; b=IZ0XGYO5/RVaiBZeh9lXJGJJJ/ MXN/rVowyUDTZrwvo3RHw7FlYuXZW4ugDR+GCwGwn3N6keFXx0knFTwSKfRUAqrgHrZgWUwjoKm9f OohLjSa89fm03mxrQ35bVtPQWBDhVbvs2A9SJ+pqUYKPfJzd02PZnNB6lGUUUoDJE75YZsA6WW+BH ed7uJUwfIy9BbzlIL+8yO0BvtFpxPvEzOlATZYOmtnnMF/8PY8bsgcoWMrAMlDITccz3dkMH7VLNk xeDo3+FCSWJjkl3EEaE1PAHCkTAk8ouO+0kdi03bpy8szLk1TBeN2MnN6MyFCjAoy931iGDUtprxo GKTk1Uhw==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdtdp-0005IP-TZ; Sat, 14 Nov 2020 11:22:49 +0000 Date: Sat, 14 Nov 2020 11:22:49 +0000 From: Christoph Hellwig To: Gabriel Krisman Bertazi Cc: tglx@linutronix.de, mingo@redhat.com, keescook@chromium.org, arnd@arndb.de, luto@amacapital.net, wad@chromium.org, rostedt@goodmis.org, paul@paul-moore.com, eparis@redhat.com, oleg@redhat.com, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, kernel@collabora.com Subject: Re: [PATCH 02/10] kernel: entry: Expose helpers to migrate TIF to SYSCALL_WORK flags Message-ID: <20201114112249.GA20070@infradead.org> References: <20201114032917.1205658-1-krisman@collabora.com> <20201114032917.1205658-3-krisman@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201114032917.1205658-3-krisman@collabora.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +#ifdef CONFIG_GENERIC_ENTRY > +static inline void __set_task_syscall_work(struct thread_info *ti, int flag) > +{ > + set_bit(flag, (unsigned long *)&ti->syscall_work); > +} > +static inline int __test_task_syscall_work(struct thread_info *ti, int flag) > +{ > + return test_bit(flag, (unsigned long *)&ti->syscall_work); > +} > +static inline void __clear_task_syscall_work(struct thread_info *ti, int flag) > +{ > + return clear_bit(flag, (unsigned long *)&ti->syscall_work); The casts here look bogus.