From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37909C3A5A8 for ; Wed, 4 Sep 2019 12:07:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1B8B322CF5 for ; Wed, 4 Sep 2019 12:07:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729951AbfIDMHW (ORCPT ); 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...