Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp711117pxy; Sat, 31 Jul 2021 23:27:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzM8ixujyA4gFRU5fXV2An8KT+pQ4eCYyWWnbKggRxeiRXWRCEf8+iUOsHsa7b/H8sabQOW X-Received: by 2002:a17:906:2451:: with SMTP id a17mr10053217ejb.75.1627799241968; Sat, 31 Jul 2021 23:27:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627799241; cv=none; d=google.com; s=arc-20160816; b=V8Iu22umVUcQrStuC6taBpDLtGRMuH9rXv0CB/fGNADQ4QVZQ3Bu4nuVLoCS6+Uh/z fYsj/kmeMjTcZEN0NjymyZYgQZJKz7+04zXR8NAnbOmkMV8Q9of2i7gT0TluLT08HMZ+ b9AShx3AE9Nl3/YTsfIiOusd9abT0E4A7ayAnmhUv+AvyNVfrHdbl04RvMbA9gI2UfNl czgnRcIQva0FZ0uisqGcrLIZhxdGP/vhHvggUHLhHjCLvdgrzdOICBMlIvVChqd+YsMu 6FDPwCqBlrm9eLQlsXf/mSqnh/XQ+U8yFcrineJmgilAz5LhIyU5Iy1ZgGCYomefB6N8 ymvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ulXVWutu7xibR/Bgxk7WtTcK3pqs3fb1/I6YimQFasA=; b=vW62SJTO0rgpW9RP0QukwFDguHT/w24Q0R11XAKZS3QQ8QOTy5PQtaxFEGh+ID3Eh7 UGlMMZi3Wn5OIHnr8hNCJrKlqVm6xDGdWMhj6GkTELIS6aDqW9P6wplY5XScDyJHsjKY ykZcIAU4xlveal756Sc1gb2/JuqXD/qrWKQLPdFf6oPQvC9m2q7okql7Dwy0X5DXnJEf zdMzWE0hTEhyUMojfybmkG901vtsb1D055ViBvsOABSTxTyWwFThYQDoklJwbuRDsIWm 2N7GobmnSveLehG76EU3179AJM91MDdd+N2FhC/geob1gsE8S9p7mfdtWXM6+LSn6iLk HSUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LSUOMYxe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d11si6172083eja.687.2021.07.31.23.26.56; Sat, 31 Jul 2021 23:27:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LSUOMYxe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229598AbhHAGYO (ORCPT + 99 others); Sun, 1 Aug 2021 02:24:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:45506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbhHAGYO (ORCPT ); Sun, 1 Aug 2021 02:24:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6E5A561054; Sun, 1 Aug 2021 06:24:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627799046; bh=ks/ukZ06hvygJCLIa2PTX+w6AXhvqSLQrTu660ebCaI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LSUOMYxeAibn4TUQS9HCIGYvDQudTCNbPPC0LcVGiCetalbb+XVeMTMXGop70IzFR pvuceJDU5XtEgRuVH8/L4V07fOfMqREq+XwG3f24HY4AAK/yDBWWdRL3sFGikpgFG+ fAyN+32myMKyWuhI/sLFrRcYd+gYIbpX7v2yJ5HQ= Date: Sun, 1 Aug 2021 08:24:04 +0200 From: Greg Kroah-Hartman To: Jordy Zomer Cc: linux-kernel@vger.kernel.org, linux1394-devel@lists.sourceforge.net, Stefan Richter Subject: Re: [PATCH] firewire: ohci: make reg_(read|write) unsigned Message-ID: References: <20210731104112.512449-1-jordy@pwning.systems> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210731104112.512449-1-jordy@pwning.systems> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 31, 2021 at 12:41:12PM +0200, Jordy Zomer wrote: > The reg_(read|write) functions used to > take a signed integer as an offset parameter. > The callers of this function only pass an unsigned integer to it. > Therefore to make it obviously safe, let's just make this an unsgined > integer as this is used in pointer arithmetics. > > Signed-off-by: Jordy Zomer > --- > drivers/firewire/ohci.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Same thing should probably also be done in drivers/firewire/init_ohci1394_dma.c for the same inline functions, right? Anyway, nice cleanup: Reviewed-by: Greg Kroah-Hartman