Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1867475pxv; Sat, 26 Jun 2021 02:46:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWBFCBHMCLzyqIKaPu6C+EwCivzp/LkYNUv7tyAwBAsG6YagObMS9C4S4qRyHgc6SqolOp X-Received: by 2002:a17:906:234e:: with SMTP id m14mr15470172eja.217.1624700807083; Sat, 26 Jun 2021 02:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624700807; cv=none; d=google.com; s=arc-20160816; b=Ls70Cg53rdTDAaX+etE1rz7ZndKd46LHRD5aMRUXFWImgtBcd7Gu5J7Co5HJ9I8PXN CzbC45WVCpI8Wy8cUJah0Z04Z/nvxbCxns0Cvbssj3d9a7gnuXRRKWKo/7SgZL2BzTnU aWiFsZxYQv4EBuwBby1kvYXSrO9Fy8hcIqzn6diHy7l2FYOU3TOvazFx9R7YXwQn17sK M4XDap62KULA7/R+pjA8pryRKavrSlCwnXYxJr8JlebCFTrzftsmNxti6dAO3HY8BS+N JZ1Oygqo3aEH6dlqL9AaiIgtHs5W87tI/hCsVm1Qzb2I8wShB5VIzQA/jTZNpTlITRuz SCRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5tE7gWvpvwFlyaG2zRUYzBcE9B7dXwCRVgZyQuAA+1k=; b=hqPH7ODc3zxUFhfl6Mb8vBbI9RUyRzuOHsBY15cT0GUTJsP0vixxjS+i7VHArMSf6D v8k+0+e2hZGLKW+IIda2w3Wp6hzrr/I2Hc3cFxfDMnLYQicwt02V4M4GxzAO+NKul/Ua I0SxIeEitAY31rIDSxpsUWQQ8rpidHcB7zKnGU+jL4eedqPdQVAfsQnYeAieH8TrVD7p pfZkKmjPNaxSWcziHqlFAG89FiMnx0D/2Z5Nn8TR7bDm52yHaCe55TgsvfPLyGQ3nome Xd45i7Pw9ZmiiidnVaswAyCIA7aSaKdzWn92cbeVZms0gb2WCgcoR1FlfofrP6Nk8aql IM7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=SyBMxvB2; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o18si1387575edc.14.2021.06.26.02.45.58; Sat, 26 Jun 2021 02:46:47 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=SyBMxvB2; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229671AbhFZJXo (ORCPT + 99 others); Sat, 26 Jun 2021 05:23:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbhFZJXo (ORCPT ); Sat, 26 Jun 2021 05:23:44 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94C20C061574 for ; Sat, 26 Jun 2021 02:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5tE7gWvpvwFlyaG2zRUYzBcE9B7dXwCRVgZyQuAA+1k=; b=SyBMxvB2RafWxopZbDER7nZv2 rWwf/m9jrVM9tPSxLy0FYvUr4vtjcrLfs0qsFb69yN2H32RQpMs+7mO6SK0lSIvPQq580fefQ/uG1 uGOK3pkHNAOQWFI5S/qlAJHGtyWnRDbgxF6fsn2bESb5QeU38DX33BIPQO/lHY5ls6GiwmWW3+i3d CH3DHjtheUWiLXhnfAJizpzvGuN1Qo6HKArk+7ioUzpPL5FVmbC1xavbo9U9KpxWMVA0o/FW6aTFM v3L2muixt+zFNcHMnqdk9TfhLmT5RCMf0FzFX7lHnsMGtTRku2pNAY/h0k28ceDdH3Tf+zdy2vwrH RxFK8CvPA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:45374) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lx4V1-0001d4-Fq; Sat, 26 Jun 2021 10:21:15 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lx4Uz-0007X1-HF; Sat, 26 Jun 2021 10:21:13 +0100 Date: Sat, 26 Jun 2021 10:21:13 +0100 From: "Russell King (Oracle)" To: Jinchao Wang Cc: guillaume.tucker@collabora.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm: mm: Prefer unsigned int to bare use of unsigned Message-ID: <20210626092113.GZ22278@shell.armlinux.org.uk> References: <20210626065833.6653-1-wjc@cdjrlc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210626065833.6653-1-wjc@cdjrlc.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 26, 2021 at 02:58:33PM +0800, Jinchao Wang wrote: > * By default, we write directly to secure registers. Platforms must > * override this if they are running non-secure. > */ > -static void l2c_write_sec(unsigned long val, void __iomem *base, unsigned reg) > +static void l2c_write_sec(unsigned long val, void __iomem *base, unsigned int reg) ... and then I'll get another patch because this now goes over 80 characters. No thanks. There is nothing inherently wrong with "unsigned" - it's always been legal C, and I'd prefer to keep the code as-is under arch/arm in regard of this. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!