Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1470855pxb; Tue, 17 Aug 2021 12:32:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWKjOgwBO6KXP6n+QA8xmbkSu0CKIzfs1//TuFx2pwJLINpJrFtBxJgyLshd6MxUIUTO/2 X-Received: by 2002:a17:907:920e:: with SMTP id ka14mr5814385ejb.167.1629228733364; Tue, 17 Aug 2021 12:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629228733; cv=none; d=google.com; s=arc-20160816; b=S8vOlMOvgIsTIW1Yeb77ic3BPGz/6Zf/VJZdzVt0EH3s5Qd4Z3G8z+IBIryYcKshDz gEe+akGOd0yW4DwRT4oiLBRLBmFLCI9v6iZuBwR3CU+uc4xvpn2G7hg0R8NBQ4LJa5xe Om8MyD5u2jjDK+Tr6/JxZw2a9yEq9gImRfjr5qGvkp2K5dVMLODDxyCpPwn6BXQRneyw 7+H09yopkSb7NuZeHdLVUCogSfCJFzkSExSIAYhOliN0W7AbmsGXzYjMuYuNDVLCIgtc rphODABIJJ1aZUvXSJf8K9SI2PFcCZqzcDnsiz4rJB+LsrezSOEUMiqAXOd3RAjF7bpD o39w== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=d9FE22rxp6AYKElT4XtdoX7zLTcx3lonKYmaIy1Dz4c=; b=tFQuyhWYZiKGG6DU0aX+2k8mN5HVgHlxPqEtR8Yq322PWMy4D/tunVboNg1kIRWxh8 Q5DYCJAbzWHBe2hQBmvc6Q4xqeb7I/sXt//Z+c17M9A9dA2ZxABB23Zn/yXA1UyHHacs KUpPv9it4GxuSLb6Ijnh8ybckfy5PVCDbQZHZMT0icBfxnES+zGB11G/8eyzQFXtSMkN FLu0KjUsy6qryOVr5N1+jslldhg4NK6qJBC0Dd0/wH6O06foZKDUeUl9wMrkbycYovPR KlW41Lko0EzZv5tq1AuOuSYy/AIjYTn3Ae5HmH1piJMPHsmDgYpbDnexSlXcWo0vv43+ Jpfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=G37IKFDC; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n25si3506166edd.157.2021.08.17.12.31.49; Tue, 17 Aug 2021 12:32:13 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=G37IKFDC; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233385AbhHQTbB (ORCPT + 99 others); Tue, 17 Aug 2021 15:31:01 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:47821 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229640AbhHQTbA (ORCPT ); Tue, 17 Aug 2021 15:31:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629228626; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=d9FE22rxp6AYKElT4XtdoX7zLTcx3lonKYmaIy1Dz4c=; b=G37IKFDCscNp6Y05fllAdtQYuKNqcDbuBmSBrbXP0xql5swk0Lr4jpgFJR5QLwo0W+fs4a v7kIs5UwIalXNNN8Azs3LLbtRzuw/m985eikTROPHxsopkix90OnjY6nMXyMK4FvPML6aB WeEdkTQ/WaS7rGmF2+wHjH0EJ8BKT38= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-600-4vvYO79JPfeSXV7wb0FHTg-1; Tue, 17 Aug 2021 15:30:23 -0400 X-MC-Unique: 4vvYO79JPfeSXV7wb0FHTg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C148F1008060; Tue, 17 Aug 2021 19:30:19 +0000 (UTC) Received: from lorien.usersys.redhat.com (unknown [10.22.10.126]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4CC301036D28; Tue, 17 Aug 2021 19:30:12 +0000 (UTC) Date: Tue, 17 Aug 2021 15:30:10 -0400 From: Phil Auld To: Sebastian Andrzej Siewior Cc: Valentin Schneider , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rcu@vger.kernel.org, linux-rt-users@vger.kernel.org, Catalin Marinas , Will Deacon , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Steven Rostedt , Daniel Bristot de Oliveira , "Paul E. McKenney" , Frederic Weisbecker , Josh Triplett , Mathieu Desnoyers , Davidlohr Bueso , Lai Jiangshan , Joel Fernandes , Anshuman Khandual , Vincenzo Frascino , Steven Price , Ard Biesheuvel , Boqun Feng , Mike Galbraith Subject: Re: [PATCH v3 2/4] sched: Introduce migratable() Message-ID: References: <20210811201354.1976839-1-valentin.schneider@arm.com> <20210811201354.1976839-3-valentin.schneider@arm.com> <20210817170925.2jwqvgvmqab2glwu@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210817170925.2jwqvgvmqab2glwu@linutronix.de> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 17, 2021 at 07:09:25PM +0200 Sebastian Andrzej Siewior wrote: > On 2021-08-11 21:13:52 [+0100], Valentin Schneider wrote: > > diff --git a/include/linux/sched.h b/include/linux/sched.h > > index debc960f41e3..8ba7b4a7ee69 100644 > > --- a/include/linux/sched.h > > +++ b/include/linux/sched.h > > @@ -1715,6 +1715,16 @@ static inline bool is_percpu_thread(void) > > #endif > > } > > > > +/* Is the current task guaranteed to stay on its current CPU? */ > > +static inline bool migratable(void) > > I'm going to rename this in my tree to `is_migratable' because of It's better anyway. See is_percpu_thread() 5 lines above :) > |security/keys/trusted-keys/trusted_core.c:45:22: error: ‘migratable’ redeclared as different kind of symbol > | 45 | static unsigned char migratable; > | | ^~~~~~~~~~ > |In file included from arch/arm64/include/asm/compat.h:16, > | from arch/arm64/include/asm/stat.h:13, > | from include/linux/stat.h:6, > | from include/linux/sysfs.h:22, > | from include/linux/kobject.h:20, > | from include/linux/of.h:17, > | from include/linux/irqdomain.h:35, > | from include/linux/acpi.h:13, > | from include/linux/tpm.h:21, > | from include/keys/trusted-type.h:12, > | from security/keys/trusted-keys/trusted_core.c:10: > |include/linux/sched.h:1719:20: note: previous definition of ‘migratable’ was here > | 1719 | static inline bool migratable(void) > | | ^~~~~~~~~~ > > Sebastian > --