Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2514785ybp; Sat, 12 Oct 2019 11:40:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqy46fLZwk0afWgoCPMwQ+BVbQ/opAoxLRvOTChII8t685B38rq+joV3TNm6fiUCBNnyiU6L X-Received: by 2002:aa7:d8c7:: with SMTP id k7mr20026747eds.138.1570905629886; Sat, 12 Oct 2019 11:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570905629; cv=none; d=google.com; s=arc-20160816; b=tmji09tfm8bBXyJ98GUYLYTnqYcx/+ge/iNXpYJ12IT2VJAVqXXYqEB2A8MO3LEW4Q kKLDe+swDuX/o4tRvyzYCRec09SDCcGYeNpYqmwhpDPnWBoSa89b++maCuI9OF6iNUrp CZ1+z3A2ScdpqKTeRJ0EIrw+AvP4yFGgkUCLJqybBi0D+CntPDSCtUygD/iswu7V8DBz GcyNqw+fsjrswQpvDCvb401TcfD9luXnjd3Ei4vTjflJRLQLeb6+9CVaNy8CAQWu87an 3cHXzTo5ONcKaRVHO/fG7ILPzR1W5mMdbN5+4K0ri0BvMuQcU7Dotxg2dk1spA+dAu8a mtyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=TP0YR/oZNZhg7JWnj8chdOqj3uN8DkhQ+NsPCM3Qp8M=; b=h1QhdApZcIhzN+9av6QX5r1Zyqqkbp+gqK2FDasL8ukyR2qEt4DxYDWydpyHMLhBlT YbIacH1INU/AVtK0Lu3WfL3CVfG8+x0nBiV2d60Stpslt6XhEpYM0KurmK7rY01eLVLI T/uYa7KKOyPG7blK2nUhnhA9f5IOwNu9SXJqcU8qUYVso5V5P9sgSns+P/IBkYMPAmNF yTl5P/5knBR+zHVPCl2t019NKbgSVUWC05L3XJIflIMcs/CmwO2sX5Dw96eqo/O7zgS9 cRuq1KXhyV3mE67YvcrFg6c/iTAcMR/q+A/oTE+wzUtyvF9+6yMX1PjsZ/aFWWI5PnDD pxBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e21si9723692edb.164.2019.10.12.11.40.06; Sat, 12 Oct 2019 11:40:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729516AbfJLShV (ORCPT + 99 others); Sat, 12 Oct 2019 14:37:21 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:8523 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727423AbfJLShV (ORCPT ); Sat, 12 Oct 2019 14:37:21 -0400 X-IronPort-AV: E=Sophos;i="5.67,288,1566856800"; d="scan'208";a="322499662" Received: from 81-65-53-202.rev.numericable.fr (HELO hadrien) ([81.65.53.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Oct 2019 20:37:19 +0200 Date: Sat, 12 Oct 2019 20:37:18 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Wambui Karuga cc: outreachy-kernel@googlegroups.com, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [Outreachy kernel] [PATCH v2 3/5] staging: octeon: remove typedef declaration for cvmx_fau_reg_32 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 12 Oct 2019, Wambui Karuga wrote: > Remove typedef declaration for enum cvmx_fau_reg_32. > Also replace its previous uses with new declaration format. > Issue found by checkpatch.pl > > Signed-off-by: Wambui Karuga > --- > drivers/staging/octeon/octeon-stubs.h | 14 ++++++++------ > 1 file changed, 8 insertions(+), 6 deletions(-) > > diff --git a/drivers/staging/octeon/octeon-stubs.h b/drivers/staging/octeon/octeon-stubs.h > index 0991be329139..40f0cfee0dff 100644 > --- a/drivers/staging/octeon/octeon-stubs.h > +++ b/drivers/staging/octeon/octeon-stubs.h > @@ -201,9 +201,9 @@ union cvmx_helper_link_info { > } s; > }; > > -typedef enum { > +enum cvmx_fau_reg_32 { > CVMX_FAU_REG_32_START = 0, > -} cvmx_fau_reg_32_t; > +}; > > typedef enum { > CVMX_FAU_OP_SIZE_8 = 0, > @@ -1178,16 +1178,18 @@ union cvmx_gmxx_rxx_rx_inbnd { > } s; > }; > > -static inline int32_t cvmx_fau_fetch_and_add32(cvmx_fau_reg_32_t reg, > +static inline int32_t cvmx_fau_fetch_and_add32(enum cvmx_fau_reg_32 reg, > int32_t value) These int32_t's don't look very desirable either. If there is only one possible definition, you can just replace it by what it is defined to be. julia > { > return value; > } > > -static inline void cvmx_fau_atomic_add32(cvmx_fau_reg_32_t reg, int32_t value) > +static inline void cvmx_fau_atomic_add32(enum cvmx_fau_reg_32 reg, > + int32_t value) > { } > > -static inline void cvmx_fau_atomic_write32(cvmx_fau_reg_32_t reg, int32_t value) > +static inline void cvmx_fau_atomic_write32(enum cvmx_fau_reg_32 reg, > + int32_t value) > { } > > static inline uint64_t cvmx_scratch_read64(uint64_t address) > @@ -1364,7 +1366,7 @@ static inline int cvmx_spi_restart_interface(int interface, > } > > static inline void cvmx_fau_async_fetch_and_add32(uint64_t scraddr, > - cvmx_fau_reg_32_t reg, > + enum cvmx_fau_reg_32 reg, > int32_t value) > { } > > -- > 2.23.0 > > -- > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/b7216f423d8e06b2ed7ac2df643a9215cd95be32.1570821661.git.wambui.karugax%40gmail.com. >