From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4B80154C0E for ; Fri, 13 Sep 2024 20:32:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726259564; cv=none; b=aVeGA303wMu1Y8tHTQVyOCahCky8/f6GEV+B91vsp+f36za7+eUqNJCCq5PGtMdR25LgAwjwxp+iqylvLhSDZ1/KzmHVloUo9kehRX6OLSWdg9ezDmc4yiq5t7oOxiuLLMD30H5QjxAO13FdPgfzWsQeZi4RBPsQy5TKeEF3hL8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726259564; c=relaxed/simple; bh=fwuOPU1DLvYBpaby1f7T+O4GaF9hmmAJNjwmPA2hiHE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LXIJuYMGXCFR7nmyXlc19sk1WWX9ZooV9ZcSVzmFSK86HdG+Xen66NtIqdwzwfiBOF02MkWs8+PVBGh7dykwycD/MMyJCkxKPxm8V2+gWJFB5YM6GZsSfuujPX9bM6O7MSY49Z2hXeu/nGUSPbW/DHxrp3a/gexu0kpE+WPxwrs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Are5rVGU; arc=none smtp.client-ip=209.85.166.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Are5rVGU" Received: by mail-il1-f174.google.com with SMTP id e9e14a558f8ab-3a07bd770e2so13027625ab.0 for ; Fri, 13 Sep 2024 13:32:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1726259561; x=1726864361; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=iokW+SbmABqUAeWyfw38lvxQNwNSLZyDxA4tR7mvc4w=; b=Are5rVGU6jbKaozH4Fy0JDbJ6EIbL19eomeWq01SQiJeeo1RU471PEdIngendshJJz j86iyqFmt6A8Y9VXKqXbfihWKjyPNiQgb+1SRV4kGVwMRk8+6XzjRxFi3vRWOztejjIR /PejwUb1uwp+swP3BJhyrSQEEx7yrGxH6k/iM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726259561; x=1726864361; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iokW+SbmABqUAeWyfw38lvxQNwNSLZyDxA4tR7mvc4w=; b=M3QvAeyiDnYRmGtYtt7ccb4/jB6liTkOuzFajjGieCxc5Vv9XsrNmjxoI2spMLathg qHy3ooPMrvNP3ouD/Zk/gvFPdTuu85yygz7I3R//Y3sTo2bexPz8PTRuMW2I44OpcwKh GpQ1b4+Jqqkl/KIEFknsejEIjHZqLYblqbY0/xAXR9N1C0BUcGk+CUWWnh/b+F9cvURD zP4J8Cyg0rUkstt9zJ1Wu3nOOtVyzwIJFKiASl1FDnWeNJ8WwIXQZCB1FoSkO4IJUu5u OpMKtx8+cArwPD1RKyuSnNyP4vBazEWFCXuMuqaXqMrqGD1weKyfgFAaeG25DqnAdx+2 6XVg== X-Forwarded-Encrypted: i=1; AJvYcCW7yGLA6Rw1cOpOC6KHPegurMRDvQdLI0kB8qJR265pY2xqTqSQEjd/P0mtlw7KzHDLXZzHlyMjamFG/IY=@vger.kernel.org X-Gm-Message-State: AOJu0YxZajNUmtKQLhH1ahaI4d4JJ4aR61Xfvck5dnyAYaBtQ8TpNSvl gviS8psfBVSrRZ4ibNROCJn6jiJXAGLpqZwyyDWcY6QiD2knL2Idw8Ona7dP9+U= X-Google-Smtp-Source: AGHT+IEdD6C7OvAW/CrmnwlypG0qUaUAvxQCvyhocKiO0g0gICf6CSj1xvAOzIHKdA7tUAT9JJBUTA== X-Received: by 2002:a05:6e02:1a8e:b0:3a0:4d1f:519c with SMTP id e9e14a558f8ab-3a0848b0589mr77975965ab.3.1726259560806; Fri, 13 Sep 2024 13:32:40 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4d37ec1f004sm41888173.61.2024.09.13.13.32.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Sep 2024 13:32:40 -0700 (PDT) Message-ID: <4e064b13-2473-4a65-a0a1-94f0edb36432@linuxfoundation.org> Date: Fri, 13 Sep 2024 14:32:39 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 for-next] pm: cpupower: rename raw_pylibcpupower.i To: Min-Hua Chen , Thomas Renninger , Shuah Khan , "John B. Wyatt IV" , John Kacur Cc: "John B . Wyatt IV" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20240913201705.7764-1-minhuadotchen@gmail.com> Content-Language: en-US From: Shuah Khan In-Reply-To: <20240913201705.7764-1-minhuadotchen@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/13/24 14:17, Min-Hua Chen wrote: > The raw_pylibcpupower.i is removed unexpectedly after 'make mrproper' > > We can reproduce the error by performing the following steps: > cd linux-next > make mrproper > cd tools/power/cpupower/bindings/python > make > > We will get an error message: > make: *** No rule to make target 'raw_pylibcpupower.i', needed by 'raw_pylibcpupower_wrap.c'. Stop. > > The root cause: > > The *.i files are already used for pre-processor output files and > the kernel removes all the *.i files by 'make mrproper'. > > That explains why the raw_pylibcpupower.i is removed by 'make mrproper'. > > To fix it, Follow John's suggestion to rename raw_pylibcpupower.i to > raw_pylibcpupower.swg. > > See: > https://www.swig.org/Doc4.2/SWIG.html > > Reviewed-by: John B. Wyatt IV > Reviewed-by: John B. Wyatt IV > Tested-by: John B. Wyatt IV > Tested-by: John B. Wyatt IV > Signed-off-by: Min-Hua Chen > > --- > > change since v1: > build a non-frc patch > change since v2: > follow the document to rename *.if to *.swg > Thank you Min for finding the problem and working with us to fix it. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux.git/log/?h=cpupower Please note that this will be sent to PM maintainer in my next pull request. This might be after the merge window. thanks, -- Shuah