From nobody Fri Apr 28 20:49:39 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q7Pqb2B8Kz47xbl; Fri, 28 Apr 2023 20:49:47 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Received: from mail2.ambrisko.com (mail2.ambrisko.com [70.91.206.91]) by mx1.freebsd.org (Postfix) with ESMTP id 4Q7PqZ4DDKz3NT1; Fri, 28 Apr 2023 20:49:46 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Authentication-Results: mx1.freebsd.org; none IronPort-SDR: tfkPz7himHtaAHfGmMN0X9Hl2iZdwpXDv3EZ/mezdeQ0eRn6jU7o4+GpSVqx/Az70tVNxZeoBv mpQryl8Di+Tg== X-Ambrisko-Me: Yes IronPort-Data: A9a23:ogu+T66Zxhlqg9Y9QQUWAQxRtKzFchMFZxGqfqrLsTDasY5as4F+v jEbUTiGb/eKMzGnL4t+bNjn80JU6p/dmNBrGwo9qyg2QiMRo6IpJzg5wmQcns+2BpeeJK5fA kl3huDodKjYdFeFzvuQGuOJQUdUhPjgqoXUWLas1hBZHWeIeQ954f5Rs7dRbr1A3bBVNziwV eba+KUzDrMFNwlcaQr444rbwP9mUW+bVDkw5jTSbtgT1LPSeuV84Dvy+MiMw3XErol8RoZWR s7Cyq205GXQ+1EkD9m/k634dQsBRbu60Qqm0ysMHfH80l4b4HZaPqUTbJLwbW9ejj+Tnstyz /1EsJaqSBwqOevHn+F1vxxwTXohYfAZkFPACT3l2SCJ9GXKeHvlzPRoJE8sMIAS4eoxBntBn dQRLToXbwuAgMq42r+2QPJgwMM5I6HDJ5kU/3pnyDTYEeorW4vrTb/H6NVD0HE3nM8mNfrTe Y8Sbj9qbQjbJgZVMRIeDJYWkv2li3Pkf3tfsl39jaY6/S3Yywl00aT2dcHPcZmPTMRTtkiCq 2/M5Gi/BQsVXOFzYxLtHmmEneLVgy7hAsQbEbei9+VphxuYwWl7NfHfbnPjydHRt6J0c4s3x +E8o0LCcYBaGJSXc+TA IronPort-HdrOrdr: A9a23:ijy16KxzScEWwepKONoyKrPwLL1zdoMgy1knxilNoNJuE/Bws/ re+8jztCWE7Ar5N0tNpTntAsa9qDbnhPhICOoqTNKftWvdyQiVxehZhOOIrgEIWReOlNK1vp 0BT0ERMrPN5WgRt6zH3DU= X-URL-LookUp-ScanningError: 1 Received: from server2.ambrisko.com (HELO internal.ambrisko.com) ([192.168.1.2]) by ironport2.ambrisko.com with ESMTP; 28 Apr 2023 12:25:30 -0700 Received: from ambrisko.com (localhost [127.0.0.1]) by internal.ambrisko.com (8.17.1/8.17.1) with ESMTPS id 33SKnd5c007198 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 28 Apr 2023 13:49:40 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) X-Authentication-Warning: internal.ambrisko.com: Host localhost [127.0.0.1] claimed to be ambrisko.com Received: (from ambrisko@localhost) by ambrisko.com (8.17.1/8.17.1/Submit) id 33SKnd9Q007197; Fri, 28 Apr 2023 13:49:39 -0700 (PDT) (envelope-from ambrisko) Date: Fri, 28 Apr 2023 13:49:39 -0700 From: Doug Ambrisko To: Dmitry Chagin Cc: Doug Ambrisko , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: e133103ab6b3 - main - mrsas(4) fix build on targets that don't define PTRIN. Message-ID: References: <202304282015.33SKFqEg041794@gitrepo.freebsd.org> List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4Q7PqZ4DDKz3NT1 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7922, ipnet:70.88.0.0/14, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Fri, Apr 28, 2023 at 11:38:46PM +0300, Dmitry Chagin wrote: | On Fri, Apr 28, 2023 at 08:15:52PM +0000, Doug Ambrisko wrote: | > The branch main has been updated by ambrisko: | > | > URL: https://cgit.FreeBSD.org/src/commit/?id=e133103ab6b35d96d06f24825cff6caa298f595a | > | > commit e133103ab6b35d96d06f24825cff6caa298f595a | > Author: Doug Ambrisko | > AuthorDate: 2023-04-28 20:12:32 +0000 | > Commit: Doug Ambrisko | > CommitDate: 2023-04-28 20:15:43 +0000 | > | > mrsas(4) fix build on targets that don't define PTRIN. | | just | #include I wasn't sure and wanted to get the builds fixed and didn't see that in sys/dev/mfi/* just the define ... but just defining it failed on amd64! Thanks for the tip. I'm testing a build of kernels with that now. Doug A. | > --- | > sys/dev/mrsas/mrsas_ioctl.c | 4 ++++ | > 1 file changed, 4 insertions(+) | > | > diff --git a/sys/dev/mrsas/mrsas_ioctl.c b/sys/dev/mrsas/mrsas_ioctl.c | > index b8d88c164e81..7f1d9a91ba0f 100644 | > --- a/sys/dev/mrsas/mrsas_ioctl.c | > +++ b/sys/dev/mrsas/mrsas_ioctl.c | > @@ -55,6 +55,10 @@ struct mrsas_passthru_cmd { | > int complete; | > }; | > | > +#ifndef PTRIN | > +#define PTRIN(p) ((void *)(uintptr_t)(p)) | > +#endif | > + | > /* | > * Function prototypes | > */