Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp711967pxy; Sat, 31 Jul 2021 23:29:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRV1mI8LWUbrlwHesbKoKDxOlpiQc7R4XZ5t/i47VRJ+TI3F+q4LslJ+KfOvKzKk1h2rYR X-Received: by 2002:a05:6402:1253:: with SMTP id l19mr12848492edw.19.1627799368474; Sat, 31 Jul 2021 23:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627799368; cv=none; d=google.com; s=arc-20160816; b=GN6MgyCBI7TFiEXPzEYKaAK6PW+lcGbovkFvShKfIWDWF/MAxmVm1A+g5+FzeFlEYJ zt9Mx+jJtJXp3l8hMgYJNqc19ergZIRFsMEqLqZbiXEAfxGem40qgJtyc2WgmuW8Idc/ akq9247Q641hzOKpELVDzZ0CCtUb6zHEAHBxOWoNEqmznoCggZjZ3LXUjo6hoFbG0ekm bWOdIxPb1XDRrL/Cg84LjwHM9TVC/9wKxKsaSVsfxLG5WWuBPEzAMXkVwa1lV1gxTzdB jD+V48/EaRFX4zwA0CX4k05U2YH703pm+mbAU66gHDL9uS/+/xNDs8fbVzVjkPAdCN0T iytw== 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=Z8n48F/m7v+Z/uS758JC71wgHXLBUpsybZKtgMwEUfk=; b=soPqhFdiYEWmjZcQft0vkQPLKY8e+bBxk9l4R4V0UaOEiShZlp3dvcKatGq6pa3cea rydIVuW7nD8QFI/p0zYVVM5BQpL3JQ/ARx2/Y6jeTLHETyJQaVv3/BbjlTrlc2KYzdty +jrL0QAJmDTGLUd7F6Urg+BwvGixsaePsLCQ8X7m8ySpJI+1nvi3+T2CsOSJ2tLL60hk ysNKsQ2TjkAaqgfm54Nfcalvr0jZmcj2TZ7w42DrMtg15+NViO7BqJPedtvLLw0K74wB Hpaep+xuVmWgZePtBdcY0TC6m5/GG1PT1G0lY8o3pfl0pwLiF6+G/4VYZrE8w5ZS5FP2 5p7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=d9uZmwsh; 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 x92si6717742edc.573.2021.07.31.23.29.05; Sat, 31 Jul 2021 23:29:28 -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=d9uZmwsh; 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 S229698AbhHAGZf (ORCPT + 99 others); Sun, 1 Aug 2021 02:25:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:45814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbhHAGZe (ORCPT ); Sun, 1 Aug 2021 02:25:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DB87A61057; Sun, 1 Aug 2021 06:25:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627799126; bh=Uur95jcj5xjC1fQ1fgKkATD2aJ8tRMWLGjQ2YoCRlpo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d9uZmwshEStcEHfd+SmaPCqMk6Pn6PcV8Bg9dxKs5AxUhqg/ctUb3BMxqByxxv+dQ trZhsGF1pETq9PYNDZQuRh+ILOf5iYfqPc4vV51EGgTeRPW9+1MHZQTUH3PPZc/AXs 1lNioAnKwjp44GmD6eBLmBD/6EmINIA8Y2wgBBYc= Date: Sun, 1 Aug 2021 08:25:23 +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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 01, 2021 at 08:24:04AM +0200, Greg Kroah-Hartman wrote: > 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? And sound/firewire/isight.c also could use this. Seems like there was some copy/paste in firewire drivers :) thanks, greg k-h