Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2602945pxb; Sun, 15 Nov 2020 10:40:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5THO6cxa3RtvL15Drc7GjeyzZqx4f8Uoakb7Wd63Jpam4G7RuIWVe/QanQTsbinn2emWQ X-Received: by 2002:a17:907:374:: with SMTP id rs20mr11668000ejb.191.1605465624069; Sun, 15 Nov 2020 10:40:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605465624; cv=none; d=google.com; s=arc-20160816; b=qlp7s91khkzjs5aD7U2lONf1rg35OahnUvRmg5t66Ausce1CRYPAqyUoLB3V47ERr7 NURaAhmeIf0ktsR4AbZjO20zXXjOdSsh/EUC+qA2YkJ62JFTPLfL8RQWWoz34WO96Q7Y yxM+1TWtcFkxf3QtYkoO5/gailmyZBtKBVATPLsUyKgWPmvLC4SrWVw7FgTAYO36yKJA 45g4cW6N6qVwe2OM+ya1ZSyuaqJ9q0wQdxPyROR9V2Wz1rjrwumZ7m1C2TsaeaEBmPe6 qndpMnfrlbZcTugfkuadNghsijmGdC/1VQbgr3IAQu2xxy/EHP6G4h4rMOPjOXPBJOWC kFDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=diiTcQge6ZYWsdh6vNpMyaIE9NWIZ+IjrR35WDGgnso=; b=eTK3KMARakYecA0h0n6QxaHj9nXHK5v7FBXj7+p6mlQlQdAdh8+5w9Bsr+cYmSE5PF Gp5osauuYmJmTuTGH1t2Gi+CMhcUjQ/CefMbY9W0l4rDbBjumjxclQxCRxWqc9E8KPhg SBRv+PERUyeTyaq1y+DYMUaQbE3dmQafNBRldT1oq5Bv5p9zHImqVibfMpf3ijnk+BYr XcT3GwC9YLvHyTpWeRfoqTjMXUleOtvymLPELqDfBmBwnF7PZ6mjLsZ5HJvAVFLQ+fnB NfIp7wgqf1to4n0oOlea7SrdVwOCEX5aXIuno4CmRM6DCLokybzkcP7hubysxnv7Meyn w9zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=yY1oLsjE; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v28si11637478edl.257.2020.11.15.10.40.01; Sun, 15 Nov 2020 10:40:24 -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=@linutronix.de header.s=2020 header.b=yY1oLsjE; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727482AbgKOS2j (ORCPT + 99 others); Sun, 15 Nov 2020 13:28:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727476AbgKOS2j (ORCPT ); Sun, 15 Nov 2020 13:28:39 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECAD8C0613D1; Sun, 15 Nov 2020 10:28:38 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1605464916; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=diiTcQge6ZYWsdh6vNpMyaIE9NWIZ+IjrR35WDGgnso=; b=yY1oLsjEmGIVGlqhgClVlbPIJ12rFgqQeU6XRkQzPGYDoaU8m9G+cK6HzKPHhdO2oKj0h0 8v8PKWhjsQqNB8BmtWODAyxRNGXko8aBw96u9tr+GlOwvJPx5nIk9A1kbesaTr5doFGanx gcP5pJFUVXgb7IJ192PS1wI19XaN6twNTXcAQBLs7dMI6/mGPdpYb9t+fE9lDcIViES4FX E78Sc8OyMILu9QiiZmXbqCR150nGPkW/Re4+nJvuPXhoSA4m0AuKDPUm5FhggKEBst2wwo 3D1/M5t2S+knTc/HdXbyDQ47tlbBoEaWgMeWcHEuUHzy01WUNM5hFX3u/ftSaw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1605464916; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=diiTcQge6ZYWsdh6vNpMyaIE9NWIZ+IjrR35WDGgnso=; b=Ix5rQgsbgT78Mdo0xV/+PaTO5QuQDm8fmzmQpNn/dcDHbbQXx03aCiGSEI9jRKHF3z72eK i/V+o/iciSjqtWCg== To: Christoph Hellwig , Gabriel Krisman Bertazi Cc: 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 In-Reply-To: <20201114112249.GA20070@infradead.org> References: <20201114032917.1205658-1-krisman@collabora.com> <20201114032917.1205658-3-krisman@collabora.com> <20201114112249.GA20070@infradead.org> Date: Sun, 15 Nov 2020 19:28:36 +0100 Message-ID: <871rgua2zv.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 14 2020 at 11:22, Christoph Hellwig wrote: >> +#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. Making sure that &(unsigned long) results in a pointer to unsigned long is indeed silly. Thanks, tglx