From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) (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 8DAF1185B63 for ; Thu, 12 Sep 2024 16:31:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726158684; cv=none; b=CxbhR1KGARuGKg7sySMx5cMAEM3HQKcA7JtQdWguyDqLkpZmGRngK+XlQBTsBfnNRCuLBUPYvMehd0QK2jdQ5g28GUqma86tTpe8hiXh43DdtVV0aYZvFPkPRgxhW74/z1Kk6bP2F20Bp1TLiNe9NUlqu1HWvcprtv1m3Jqvf8Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726158684; c=relaxed/simple; bh=W+J1FMH3tHI+6OFtsSQZ3Juup+l/59W1qlpH8qCoJNQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hFNemfVoMHxkFVdoxPgvynqgTjfH4yj6hnCtXDyroYoplA2DoGsV3ZJu9J1W74xjsy3IZgMv5wFoo2W6aChdxpLYjWW5pZtDlD7VAUIk3+W2Bi8EVtPmxIdCwUgHdyYPQ75U1I1wuy87oRJIhLHNXefxOAqxhgpOobkz0SwkvFc= 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=GROl4hub; arc=none smtp.client-ip=209.85.166.41 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="GROl4hub" Received: by mail-io1-f41.google.com with SMTP id ca18e2360f4ac-82aef2c1e5fso48345339f.1 for ; Thu, 12 Sep 2024 09:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1726158680; x=1726763480; 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=ige0hospoSC0I0mXPH/sPi2U7TWVYcFeY8Oc0s0Dk6E=; b=GROl4hubFy4Jum5Zpf2oKrD3+bY7J59mjSW+KZ2M99t35ziqEchP3iX0wZ2EHdpkic A3Fi/3Sq9u34SwCSmcCe8Y2ijuKx3N0dFCo8QRNqVTKXMfcwIYf5rWRvGFP3pCgIzL9o /kbdlsPpAp7bt9EjsZeV0wGYS0d2AqlcSOD+g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726158680; x=1726763480; 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=ige0hospoSC0I0mXPH/sPi2U7TWVYcFeY8Oc0s0Dk6E=; b=Mv2U23WAbaxxr3s/RzB/Yn/pesbrrPdeiRF8gMT3IZzpEGxPF8jce2D5s+5cFPpYgH Bh4uV0ILvMELHx4VCmwvQb0eWvhHxpguFFKrYWITcfARoQ3b+C9Hpsb/yb05v++WH5MJ sLQqiuAqP2GrPXwqL/sb1EC3qSGjKJyC6ANWT89zGPGDCYQH1PaEOHASLclTG/KhOckR QoNuvuXTfZ4kCu9q+O35mmUHxuIemiUttyQvwPifNjoFQffYBhoJ2bRurSRuXNfxPBxT N71HSuyIxSaAwSTIn2tcroD525A3mKV2NXAKngPhhxo4DPJcRnAdRj8I1G3AT0368THb buzQ== X-Gm-Message-State: AOJu0YwGTjnmpKc1yqN4iS7M7VocT/YFiX/KeAU6ji9bl0jtb24TpBDH y0sNBI0C0brzUnBs1ugSoaMHAFZNeaaA510IReVBnP9eJyadwixWzrbFAGtvqFc= X-Google-Smtp-Source: AGHT+IG1giQTOPVkzv0dnvg8e+wyJNeH79IfT3UNXNJqA2LVrGdANRo2yN/y8lncZQFAguOo8CmmMQ== X-Received: by 2002:a05:6602:3fd1:b0:82c:fdc2:e25a with SMTP id ca18e2360f4ac-82d3761cb5bmr5180739f.0.1726158680478; Thu, 12 Sep 2024 09:31:20 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4d35f8dac37sm674341173.133.2024.09.12.09.31.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Sep 2024 09:31:20 -0700 (PDT) Message-ID: <5785527a-b259-42ba-989e-978d2e72ff35@linuxfoundation.org> Date: Thu, 12 Sep 2024 10:31:19 -0600 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH for-next] pm: cpupower: rename raw_pylibcpupower.i To: Min-Hua Chen , Thomas Renninger , Shuah Khan , "John B. Wyatt IV" , John Kacur Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20240912125030.19809-1-minhuadotchen@gmail.com> Content-Language: en-US From: Shuah Khan In-Reply-To: <20240912125030.19809-1-minhuadotchen@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/12/24 06:50, Min-Hua Chen wrote: > This RFC patch is actually bug report. All *.i file will be > removed by 'make mrproper', including raw_pylibcpupower.i, added > by commit: 338f490e07bc ("pm:cpupower: Add SWIG bindings files for libcpupower") > > We can reproduce the error by performing the following command: > 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. > > Renaming the raw_pylibcpupower.i is just a workaround to fix the > issue above. I need a non-rfc patch for this. Please send a proper patch I can pull in once John has a chance to review this. > > Signed-off-by: Min-Hua Chen > --- > tools/power/cpupower/bindings/python/Makefile | 4 ++-- > .../python/{raw_pylibcpupower.i => raw_pylibcpupower.if} | 0 > 2 files changed, 2 insertions(+), 2 deletions(-) > rename tools/power/cpupower/bindings/python/{raw_pylibcpupower.i => raw_pylibcpupower.if} (100%) > > diff --git a/tools/power/cpupower/bindings/python/Makefile b/tools/power/cpupower/bindings/python/Makefile > index dc09c5b66ead..de872a1b80d3 100644 > --- a/tools/power/cpupower/bindings/python/Makefile > +++ b/tools/power/cpupower/bindings/python/Makefile > @@ -20,13 +20,13 @@ _raw_pylibcpupower.so: raw_pylibcpupower_wrap.o > raw_pylibcpupower_wrap.o: raw_pylibcpupower_wrap.c > $(CC) -fPIC -c raw_pylibcpupower_wrap.c $(PY_INCLUDE) > > -raw_pylibcpupower_wrap.c: raw_pylibcpupower.i > +raw_pylibcpupower_wrap.c: raw_pylibcpupower.if > ifeq ($(HAVE_SWIG),0) > $(error "swig was not found. Make sure you have it installed and in the PATH to generate the bindings.") > else ifeq ($(HAVE_PYCONFIG),0) > $(error "python-config was not found. Make sure you have it installed and in the PATH to generate the bindings.") > endif > - swig -python raw_pylibcpupower.i > + swig -python raw_pylibcpupower.if > > # Will only clean the bindings folder; will not clean the actual cpupower folder > clean: > diff --git a/tools/power/cpupower/bindings/python/raw_pylibcpupower.i b/tools/power/cpupower/bindings/python/raw_pylibcpupower.if > similarity index 100% > rename from tools/power/cpupower/bindings/python/raw_pylibcpupower.i > rename to tools/power/cpupower/bindings/python/raw_pylibcpupower.if thanks, -- Shuah