Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1llMFx-0005k4-4x for mharc-qemu-trivial@gnu.org; Mon, 24 May 2021 21:53:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llMFu-0005c5-VO for qemu-trivial@nongnu.org; Mon, 24 May 2021 21:53:14 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:51936) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llMFt-0003qY-BG for qemu-trivial@nongnu.org; Mon, 24 May 2021 21:53:14 -0400 Received: by mail-pj1-x1034.google.com with SMTP id k5so15919011pjj.1 for ; Mon, 24 May 2021 18:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Z//ZdmQPdvPSCHUDAaZ6ZgNYu/ZvQQN6wVUK8vFK3VI=; b=EVYr7fX8soRG1lDRacDt9suAzoCzehnkl2btZKfvFI8jN3WLimHnx2xK7NRRzbP4kB 83wGgb1gzzwD/6L70/3Cjbl56KxMttADh6TJuMjNXb9e+UIlIx/Ran5fJKynB/Q9Abeg XP676olnF5Go/+oik5dXgXRd3eT8FWmPaQ6s6tSc8dEcuECmT97ObCPCgl828kXjMS40 yt0WaJvuaifR3Q+O1XvppqmDZlQ74Sn7vsLDvjIdxxcWNnteYaTHSuEtahoQ8nXROOJN PjAqkUFR5YGVOTiR+dQsY2GEBmkmHZbKgNBXurdzpPG4u1m+jE23FqZ4AOV3QR37bJgw 1UCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Z//ZdmQPdvPSCHUDAaZ6ZgNYu/ZvQQN6wVUK8vFK3VI=; b=jv1sOUunrFYWt5AkKypGBH5TN/+oOiUgPb35SG5he7coj0Mcs4ANHVUWfWhxxMU07k d7zRX80yvegl+64lL6vHCLvJCvnv618b9yi8jEpH8hjslHvhfiNT+aCNmZKpK8K1AbU7 dCkp99T+bivmv6/fga6mROe6DKfhV6jdOngH9aQn5hXDLDx6u2M0RBKBs5R6aE6MNjWQ GIukdeeDNXPjqzXpRI+rGKVnNlrN5KQfnvRPeyt9ldBpDXi9Z4ynYRaCTlL/M/ebcQbX jdHf5B4akTiXbd+328fmDWfr98w4ZMrCfMOFli0uzagZk7x7q1/7Xe1NlR2a0FZ3wlJA 2a0w== X-Gm-Message-State: AOAM5309wZ43AO4127HugK9d/CbIS7jO5r9THRMWENDbNYWUF5BlXsB/ 8Ukc064CAaLST44dNyUL96gZ+g== X-Google-Smtp-Source: ABdhPJyH6e7zLumN4tLPYzNm9ir6e/vQicnjYUOZ0YIi61z/t2f/jnBWIbCsxxW1FYNuXCAqOLPlmQ== X-Received: by 2002:a17:902:d711:b029:f0:b127:8105 with SMTP id w17-20020a170902d711b02900f0b1278105mr28514824ply.20.1621907589622; Mon, 24 May 2021 18:53:09 -0700 (PDT) Received: from [192.168.1.11] (174-21-70-228.tukw.qwest.net. [174.21.70.228]) by smtp.gmail.com with ESMTPSA id g141sm10449701pfb.210.2021.05.24.18.53.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 May 2021 18:53:09 -0700 (PDT) Subject: Re: [PATCH] Adding ifdefs to call the respective routines only when their configs are enabled To: Swetha Joshi , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Swetha References: <20210524225608.3191809-1-swethajoshi139@gmail.com> From: Richard Henderson Message-ID: <8fbdab13-ed0e-047a-7a67-2e30471a46b1@linaro.org> Date: Mon, 24 May 2021 18:53:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210524225608.3191809-1-swethajoshi139@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2021 01:53:15 -0000 On 5/24/21 3:56 PM, Swetha Joshi wrote: > From: Swetha > > Signed-off-by: Swetha What are you trying to accomplish? That's what belongs in the commit message that you omitted. > + bool acpi_enabled = false; > +#ifdef CONFIG_ARM_VIRT > bool acpi_enabled = virt_is_acpi_enabled(vms); Of course this doesn't compile, having declared acpi_enabled twice. So you have clearly not tested this patch sufficiently. The cc to qemu-trivial is unwarranted. r~