Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp606584ybe; Wed, 4 Sep 2019 05:08:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwh994wdo6HRniSUk4qLz82DvAAHV38/xpTAySRwRLkPM3UBcxkX/ucKnNvukaFAZyPJbus X-Received: by 2002:aa7:96c1:: with SMTP id h1mr8220539pfq.111.1567598921301; Wed, 04 Sep 2019 05:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567598921; cv=none; d=google.com; s=arc-20160816; b=zptPtIqDMjoXg9yIkWTk73XFo8TP5BszEPQm64s+JBWKtHUDfJTokifOk2J07muiQs j4fsO5f64upDfxCs80fkSb4hpNpcuPLgwnYx0NxpJ1/4KkvUCXXFOZ3okB5ykIl7/d8D Hi4gi2Byxh0cvQ9D22ZtMlvhy1MlcknphptwHiDaOMHK5LeUycbcGEHw8Va6KYcxFngd /67aKbCwY/jbNysj/J94x3NLtpiNjgLY+SMMRkrZq5ka03SG0to3EW3qVQr5MxPtH+F6 WJ+IiZKDLeR56hEzBFeUfxygGjejHk2ehrZjINk2CyV16Q1O3soyUCHkCPclpYFSEKSt hByg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=ssIPEa9HlWaeEZ6iwSAaCisj5iY6CY50ktK7noVzakk=; b=XtYy/oFiKhX7WZ0hhGCiHeKM2roS6NVd/lCkSHJyi9br2SleFOfcN33I1JpCSlMqTX jnEw7tdMhz2vQWXyLLu7WVeqvESWU6EDpi7P2finZ5exszssrx8dFQUWMSRSUEIBj57o +esibTM9HhSZuplic/pS/nAGJqcQxkhs16Pv3mDEmqXVQ2zXHR2gcm5mXc4WqYwyqL22 TZVCgdtXHxmcy5/gXKfTMrJvkfXeTBIjb6Vcy/uVEmp3G1NJHi9mzQMJNyTvAezLwG6X r5RHJgej8oCehnl+aCFFOCTq+8PpGZZnc027Tiu9ksebvUKsM37Mpv3OFzNYOdxdCkMm PGLg== 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 o35si2143324pje.106.2019.09.04.05.08.25; Wed, 04 Sep 2019 05:08:41 -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 S1729921AbfIDMHW (ORCPT + 99 others); Wed, 4 Sep 2019 08:07:22 -0400 Received: from foss.arm.com ([217.140.110.172]:53176 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729316AbfIDMHV (ORCPT ); Wed, 4 Sep 2019 08:07:21 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2E0B8337; Wed, 4 Sep 2019 05:07:21 -0700 (PDT) Received: from [10.1.194.37] (e113632-lin.cambridge.arm.com [10.1.194.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0EB923F59C; Wed, 4 Sep 2019 05:07:19 -0700 (PDT) Subject: Re: [PATCH] sched: make struct task_struct::state 32-bit From: Valentin Schneider To: Alexey Dobriyan Cc: mingo@redhat.com, peterz@infradead.org, linux-kernel@vger.kernel.org, rcu@vger.kernel.org, linux-block@vger.kernel.org, dm-devel@redhat.com, axboe@kernel.dk, aarcange@redhat.com References: <20190902210558.GA23013@avx2> <20190903181920.GA22358@avx2> <92ead22e-0580-c720-1a29-7db79d76f7d7@arm.com> Message-ID: Date: Wed, 4 Sep 2019 13:07:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <92ead22e-0580-c720-1a29-7db79d76f7d7@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/09/2019 22:51, Valentin Schneider wrote: [...] > I tried something for function parameters, which seems to be feasible > according to [1], but couldn't get it to work (yet). Here's what I have > so far: > [...] So now I have this: --- @funcmatch@ identifier func; identifier p; identifier state_var; @@ func(..., struct task_struct *p, ... - , long state_var + , int state_var ,...) { ... } --- Which seems to be doing roughly what I want. I probably need another version to cover functions with reverse parameter order, and also need to make it match functions that assign state_var to p->state (or pass it down to another function that might do it). Baby steps...