Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp30118lqe; Wed, 3 Apr 2024 20:45:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDlGzTMOzOcZilcd1THCV9sJl3gyr9JC0xl58Q3wFLZWxw2p01ZSEmGyNDnTc1RgJSYAWnzJpO8KQ5+TJ6seOfZu17t8Ws49GmBMNCHw== X-Google-Smtp-Source: AGHT+IFh8yjSE0gmejHRz2qy0mtMGJTKjRaIeyNKmwOdfh2bQBkd3XWHWlOEfgEYkHFigGwtTAUX X-Received: by 2002:a05:6a21:6d94:b0:1a3:c51f:eda1 with SMTP id wl20-20020a056a216d9400b001a3c51feda1mr1539861pzb.39.1712202316408; Wed, 03 Apr 2024 20:45:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712202316; cv=pass; d=google.com; s=arc-20160816; b=YeKFX/ZVUkV1/W3+QseNxLM8yE0lueE8B1X9LwWlXhbQ8MVXInPtYTMuihkaP29WM9 iN+o4s43h+jMry2p0oMNwvHJQGBHSTMn+LRpTGDaiDRl6NJbyc2/6OGW6Ros74I56oMf mjsAsxXdISAfcjOUI5c1FpSvXy9XI3gEqh3s7iolOMEjEd3RNVskc4ISwifWT2WEmyeb HorKTDgg/JoQygjzheffv11M+PZiKy2M/zxcCvnJ4xx07INFcGRTNR33Wd3rQ9qzCtr4 4hlfdkSdy3ZggPw8ARx4goJnEEQsaAyBtPbujDe6EtxSQOpLQRrk4QvD6XILGntbrt7R 8XKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=aonjF+QJIlnZksmvS6AzHj88RRoH+auUFjBvt/PQFQw=; fh=BmE5FzlM+DS+w7l2/ueB3i/Jb1hYAvOlHE6sWmhBSnA=; b=hg8HPr2qWmPQvvP8hUd1AGbYnDqtq5eCrifEhcAoTwJ0WxdybQ3uqy9G2sZsJk6Rh6 HLMfBt3n0Yq39DBrMTrlbx2YLz7CFB0XEf+73ysIsDBNefx0gA5v/4pi12aJ9XnD4HTj FAj26M1lr22xz3IfMHv5ucHxB0PkE+swheQx67vHItiQwgmP7YRiWoXmBNaBXnkFa6cW qMceDGJ4ewYjTXNgNDwPn5pJMBJwLkBs37tRK7+SXqTviPiTiyf9wEaFP77d/zceXj3T uYfSIqWnES8jcxLsnDvj86MDKvH/fhSt2JDXsbobbuAIkpnk3dRzmrQFpnMPfHp4dzNP yYSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UmuW5q4R; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-130857-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130857-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n16-20020a17090ac69000b0029fc4a56910si797545pjt.46.2024.04.03.20.45.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 20:45:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130857-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UmuW5q4R; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-130857-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130857-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9BEDEB220FB for ; Thu, 4 Apr 2024 03:45:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C359D208A7; Thu, 4 Apr 2024 03:45:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UmuW5q4R" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E731418AF4; Thu, 4 Apr 2024 03:45:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712202306; cv=none; b=lRyf8FIx9OWDoOLNTV1I96nZKDODD5ob5+BxZCrxVedfAGs7fT6y2fDqfMNz8ck/Dj6VCQDjtryWwbnysPFqvoLDn6X1MRTtOovp/CGV+5Y8e2qUtW34IChvjele5ONwop8PY4Bbe9ro9A8q09IURTt7rQqmX19kEk49ZrzFY5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712202306; c=relaxed/simple; bh=Lspe0S+sq87Ovamj3k0UkWs5QefU1BVoJlT+JZlQSoI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NGOkS/7V6Y8N43yY7gr1iUv6Yxa/PN4B+77lSM0WJ5GssqhKmiNus7L9iO0zJtJudBA2RQat6+P3K6iIcAKlCp0IkQ7hn6Gm2FGwdN7yIU56tqu3Nqxj4hAbXHMONtsASWHpLIXK2UTfQ9qR1OZCVrCWuG1bxuqPElY1q5hVwe0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UmuW5q4R; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E531CC433F1; Thu, 4 Apr 2024 03:45:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712202305; bh=Lspe0S+sq87Ovamj3k0UkWs5QefU1BVoJlT+JZlQSoI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=UmuW5q4RA6owKENizAib+IWAOVsnRyR7L5LHQr0UqrC3O4xgBc5iF/oet2MxRV0NF bVymJta98oJ66NfIBBBFtl5d3Yel0glERwX72HbB9gJZoCHPzB52uygK/Cd8yFlLHy IoBEny0F6cNpDF3LXtjRzUVD6Ys5SuVLuxM+Cj2uh52IvEeZryCW60bAq61gczQke4 y+4ozAMp0JEl7FS8FI+nZ1BvmQyTJKwtrJoE+IWFgDJOAkFXETzyoqzeUR+UAKyO2n iJeVx6pVKY9GXCQy85xj4To+ig3cnZ5WnbQIUYe9NvXLjMyCOeNRCPH/3k9Azgd+Tj M5nfKSNkFGb2g== Message-ID: <3423b438-62eb-4bb7-ace5-ded592a8d89b@kernel.org> Date: Thu, 4 Apr 2024 12:45:02 +0900 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 30/34] sata: mv: drop unnecessary #ifdef checks To: Arnd Bergmann , Arnd Bergmann , linux-kernel@vger.kernel.org, Niklas Cassel , Saeed Bishara Cc: Ma Ke , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Sergey Shtylyov , Christophe JAILLET , Jeff Garzik , linux-ide@vger.kernel.org References: <20240403080702.3509288-1-arnd@kernel.org> <20240403080702.3509288-31-arnd@kernel.org> <78731619-58a3-406b-9112-5eb991bc6e7e@app.fastmail.com> From: Damien Le Moal Content-Language: en-US Organization: Western Digital Research In-Reply-To: <78731619-58a3-406b-9112-5eb991bc6e7e@app.fastmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/3/24 17:50, Arnd Bergmann wrote: > On Wed, Apr 3, 2024, at 10:32, Damien Le Moal wrote: >> On 4/3/24 17:06, Arnd Bergmann wrote: >>> From: Arnd Bergmann >>> >>> Building with W=1 shows a warning for an unused variable when CONFIG_PCI >>> is diabled: >>> >>> drivers/ata/sata_mv.c:790:35: error: unused variable 'mv_pci_tbl' [-Werror,-Wunused-const-variable] >>> static const struct pci_device_id mv_pci_tbl[] = { >>> >>> Move the table into the same block that containsn the pci_driver >>> definition. >>> >>> Fixes: 7bb3c5290ca0 ("sata_mv: Remove PCI dependency") >>> Signed-off-by: Arnd Bergmann >> >> The patch title is also not describing what the patch does. >> Are you OK with changing that to: >> >> ata: sata_mv: Fix PCI device ID table declaration warning >> >> ? > > Yes, please do, thanks! Applied to for-6.9-fixes with discussed tweaks and removal of extra blanklines pointed out by Andy. Thanks ! > > I had first tried to remove all the #ifdef checks and just > rely on dead-code-elimination doing the same when > pci_register_driver() is stubbed out and IS_ENABLED(CONFIG_OF) > checks turn off the rest. Unfortunately, the include/linux/pci.h > interfaces are not all stubbed out here and cause compile-time > failures without CONFIG_PCI, so that didn't work out. > > Arnd -- Damien Le Moal Western Digital Research