Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1460746lqj; Tue, 4 Jun 2024 02:09:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmllfI8SM+nmh7HyCwpJRMrORZ2G4zwThBBKLTi14cznHrHn3uH7uO+/jeN9d3h2UgI9bedJl8SBKlNNpD6xWNBCW94l9T6TnUu7tnxA== X-Google-Smtp-Source: AGHT+IEkUW+LTFYNdGKqTsa9ELQRtm4bgJQyaLf97NIs4cx/RYXsVS32oPXzih85YVdqdnvrsdzd X-Received: by 2002:a05:6a00:1253:b0:702:5725:2e18 with SMTP id d2e1a72fcca58-70257252ff9mr10184507b3a.15.1717492170757; Tue, 04 Jun 2024 02:09:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717492170; cv=pass; d=google.com; s=arc-20160816; b=cZuUxoArikhwb4G6kd+X6Rx33+B+dVLsoWGIKMH+yOjRJDoXC36kmtyhDKhYGmFbCP pcjNv65JID+piTEaJlsU2ZWqKF40AIVm5dRE9vc/rmMKEuLDZRoi85BlRi3ffbidZVGz Nn9+JuLzZc0vKbgu0evPle2Xw2b5+ydPuPDLWN9pkwgnzswzmyEY+wi9pCj82H2beV73 6JxF28eLOGBXJ49NEU5NlKXuJ9M3+5TAHhLqPUgtwmGo0pnbRdG+TDd0p0v/7q3sXmdA bihKulvOOakiy6iGlyqOPMJLr2nRAXyUKLeHks2GBv4vmGoddzmBqSRW9neSGr9/GANX lT9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=TwZhGhfqKNwGAAazIH0NZHq5xaKIh/aom8Ka+wD6k0o=; fh=IIlda5V6Azs5bLWj4aXleUtf6HK36sSyl4cHwiQ/PJ8=; b=ffAvNjor9LhKNcr0UrjRxjkye0FQr1VbJkmLEMPHfTFS6z+FSJqsVhRZOTrmWmAxKX eou4HyhCzOv0ocwqeGkFrxdUlFbIJFNWlEOzWOcGKlgLdv4WxXQ+KhcM8Fe2o0fxtp6G JWYRYFSCuWoF7kQAk/vpYIOkF8BLzAw/KFtOBaMUW/mt00aLur3jcVB6GvMZywigckuQ tmvjliJEET56Y+9uGbI5z3zt5Tww+1I6njz/D4aAdb6u2LW8OeY0Cb0HWGMIaI9K4Dc/ 4XDXY3MzzSTMlBL7g/KAR9MKHDP/wQEIUBQSBAlbkYn9dxjqxlRWR+nD/3URXTC6y6yd uTlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=K8amYOfo; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-200313-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200313-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c359e09d93si792120a12.342.2024.06.04.02.09.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 02:09:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200313-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=K8amYOfo; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-200313-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200313-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4240028420B for ; Tue, 4 Jun 2024 09:09:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8A19143C47; Tue, 4 Jun 2024 09:09:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="K8amYOfo" Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 D6FF714372F for ; Tue, 4 Jun 2024 09:09:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717492152; cv=none; b=FuVy71c1F9wnUi+cb6XypfcCFdlKm5n/McAXls03q41lZuNtwXX6FaZBQjIEKknAg+/kL+r4llT25m5gnRNzb/ZBBbfypjK0y3zNfIt5t2DS5dSv/oJsb4Yvku9oLAdrteOtCV6C+606VARIOm7UeUxWPc7fSCPwcsuu2iyzdtY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717492152; c=relaxed/simple; bh=DWv4Ts4UPDewpPAZDKo61Q6cBJ8156Q/JPUenZNlwS8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=EYCk7aRLbDR6qo2KY7EnbQgGvPa5rtwcZYtgX4RYgWW/PSFOiL8CJd6nuMinFP5PG636vfaPjWxasclP4USUrd28ugoJ7IWi4YGpdpHN22zE/24CN8Dmf63KC7NKvZtrEPo2mUYFDl+1V1Ji9knUb/sqaiiBDaxkko5inAoeQ6s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com; spf=pass smtp.mailfrom=ionos.com; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b=K8amYOfo; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ionos.com Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-57a50ac2ca1so3261344a12.0 for ; Tue, 04 Jun 2024 02:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1717492149; x=1718096949; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TwZhGhfqKNwGAAazIH0NZHq5xaKIh/aom8Ka+wD6k0o=; b=K8amYOfowrokWNPT6gXG/PlWCasoziDhTFdXG4oNVQo9BuMRz2hYJdmxDFpi+5IvVG VBBe8Zy2FqHRStnxZQHW+R/bYoQxrpjMQ/w/+FZzJVBOIIZXNqMinqC9HISAGkkHJIkZ JTNQy8xvjWLpGdYvMSHczW5PO/T5nZY9AYT9NYg+bgrk5BLloheUbvi+clLD81SqvZAe hcsXE24eNMZJI+v1zN96ihqUdRKX6XMnucp9yUD3jGECZSc/Zz4cH3xmHu2W7BL2W2fP qkN+Y2hiAb5LHch1N/rLvMoUymHHAx9A7dl/Sot0bzDW19ecYWv/MLZvtqIXlPy0nZmy 9wng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717492149; x=1718096949; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TwZhGhfqKNwGAAazIH0NZHq5xaKIh/aom8Ka+wD6k0o=; b=nAcjh4unktlITGaqRmX6tW3EJo8m1d/MHuWd8fRlgaOQD7sNqWQ4ap3ecub+nToRUU T5J43VY7GKEqNBUrOyaA1Jnjw5RGzaLcX97vakGWFIi+AjSAJiLqqL3qxkdD2SmiT5IQ tp+f4alLTASa6VSZqeuNIAJ0lJzaU+b3TxbeMH6fAEAf8PvrzltWGqMVagv/d1+EOqN+ +cT22RD5wnmudYKjKORB9U7bUgDiqH29ii3LIoIj9cljgMt9hlcoHgoVIep19RaIk7od AtU0Io+kLuOo8gfB3+D0vtAQPA1uCRghvt/5iA4B06mEt75/s7M/r5k1iylj9iXc2k3w 8LXw== X-Forwarded-Encrypted: i=1; AJvYcCWfhuR08zetxjtTjds3BeNeeNRw+OGyqC1DHtnBbgdNDJ912oFY9K3VguhAhMsEZlPyHhGS2Ir8+4efYUacJikLUIKpHnqzbWs40E+o X-Gm-Message-State: AOJu0YwvYvf8/Z2HFt2JLaXjFS5a5dGwfLY4zS+3FvivdaymBsrbdw28 kklzHTzq9Br4frnWjnOpNm3eE43UNxHkZyxfHwD4zDyMw61pOm+9oUG/ClTAml8= X-Received: by 2002:a17:906:4bd3:b0:a65:ab25:24da with SMTP id a640c23a62f3a-a681ff4540amr819129466b.22.1717492149299; Tue, 04 Jun 2024 02:09:09 -0700 (PDT) Received: from raven.blarg.de (p200300dc6f4f9200023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f4f:9200:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a68fa49e66fsm328376766b.129.2024.06.04.02.09.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 02:09:08 -0700 (PDT) From: Max Kellermann To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: willy@infradead.org, sfr@canb.auug.org.au, david@redhat.com, Max Kellermann Subject: [PATCH v6 03/15] include/scsi/scsicam.h: forward-declare struct block_device Date: Tue, 4 Jun 2024 11:08:33 +0200 Message-Id: <20240604090845.2182265-4-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240604090845.2182265-1-max.kellermann@ionos.com> References: <20240604090845.2182265-1-max.kellermann@ionos.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit After eliminating includes of linux/mm.h, the following build failure occurred: In file included from drivers/scsi/fdomain.c:87: ./include/scsi/scsicam.h:16:31: error: 'struct block_device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 16 | int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip); | ^~~~~~~~~~~~ ./include/scsi/scsicam.h:17:27: error: 'struct block_device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 17 | bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]); | ^~~~~~~~~~~~ ./include/scsi/scsicam.h:18:40: error: 'struct block_device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 18 | unsigned char *scsi_bios_ptable(struct block_device *bdev); | ^~~~~~~~~~~~ drivers/scsi/fdomain.c: In function 'fdomain_biosparam': drivers/scsi/fdomain.c:475:45: error: passing argument 1 of 'scsi_bios_ptable' from incompatible pointer type [-Werror=incompatible-pointer-types] 475 | unsigned char *p = scsi_bios_ptable(bdev); | ^~~~ | | | struct block_device * ./include/scsi/scsicam.h:18:54: note: expected 'struct block_device *' but argument is of type 'struct block_device *' 18 | unsigned char *scsi_bios_ptable(struct block_device *bdev); | ~~~~~~~~~~~~~~~~~~~~~^~~~ Signed-off-by: Max Kellermann --- include/scsi/scsicam.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/scsi/scsicam.h b/include/scsi/scsicam.h index 6eb9fb7a57d0..c0de038b76b5 100644 --- a/include/scsi/scsicam.h +++ b/include/scsi/scsicam.h @@ -16,6 +16,8 @@ #include // for sector_t +struct block_device; + int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip); bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]); unsigned char *scsi_bios_ptable(struct block_device *bdev); -- 2.39.2