Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6339449rwn; Tue, 13 Sep 2022 02:46:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR45WXe4i5AsWl3mGYfY+UFpvQIhOoGsd9+XwJ8nGCSkxXNRtsA8nMa14BpyE0htj6c4nv2K X-Received: by 2002:a05:6402:1943:b0:443:5ffb:b04e with SMTP id f3-20020a056402194300b004435ffbb04emr25293284edz.230.1663062417789; Tue, 13 Sep 2022 02:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663062417; cv=none; d=google.com; s=arc-20160816; b=uxPmB4V1fSreNW94IjasuM0SCdLQyjPzEgxpJhwtdMkYmgiEll9Ow/zT1CJQ65fl74 tZgskuiybQ2VcSkiWpkLpRkyaZVIO8L0ZG8x+fYAd5o6s6ahtHnVPATXoUXfeTtMjLJZ x9IPNJvMKdpQPFxoSiIeFwlZY8qV8qHjoHmWMfS8Ry9KmMukYhITovlk1f0Dt/+P8XIo MjPzfr1Wn2XofFnR2YwLcsB9zB+SeqMEN9Cvo7I9lBU2Jy7C77DbGIiYWcH086ILlT6T 7AwdwwAyWau5Kuijbdp6hS6ay0LH40M6AMcpez5mDEN2iGm1toSLTNW5+8HLHp+FILNd knmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=gkftrsKuaWt3RGLWFemt9T6SqKmNkaaQ17OXylHjDYI=; b=GMRuBLDHaO+jS3WgNTVvpZt81bB6uuh0mHTQBN/mgNgDZspavgOxG48U5VfG+91NrC wHHAT84vwlA6QWpusKPH7diSTX+5W0Qn6RhuDV5saRl8jIZM//NUKSawCJzrzMtKYJk6 q0Qto81B32Vha3Igystp3AXDJaAHbryHt8vpbzAHU1SqGJLzWlPgYBUgUJXx+R3aZ20y emONnnChmCiqtQyOEHQdM0Z1HfE0O36U3MMFLcnmD5s2tGFI+Xs34WWVQsse/CycAwSc K7apM0YPkssWVLSdZg2SsnsG0Wlc3h4MRkAgNfHs9wyBpoKZ8QNX3Vz3S7wLTGxHlSBl EPVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xg11-20020a170907320b00b0077ef3eeca17si3264892ejb.155.2022.09.13.02.46.32; Tue, 13 Sep 2022 02:46:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231616AbiIMJgk (ORCPT + 99 others); Tue, 13 Sep 2022 05:36:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231264AbiIMJgg (ORCPT ); Tue, 13 Sep 2022 05:36:36 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB6787664; Tue, 13 Sep 2022 02:36:34 -0700 (PDT) Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MRdZS5Vs9znVHQ; Tue, 13 Sep 2022 17:33:52 +0800 (CST) Received: from dggpemm100009.china.huawei.com (7.185.36.113) by dggpemm500022.china.huawei.com (7.185.36.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 13 Sep 2022 17:36:33 +0800 Received: from huawei.com (10.175.113.32) by dggpemm100009.china.huawei.com (7.185.36.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 13 Sep 2022 17:36:32 +0800 From: Liu Shixin To: Thomas Bogendoerfer , John Crispin CC: , , Liu Shixin , Kefeng Wang Subject: [PATCH 0/3] mips: use DEFINE_SHOW_ATTRIBUTE to simplify code Date: Tue, 13 Sep 2022 18:10:35 +0800 Message-ID: <20220913101038.1902389-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm100009.china.huawei.com (7.185.36.113) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use DEFINE_SHOW_ATTRIBUTE to simplify code. Liu Shixin (3): mips: cavium: convert to DEFINE_SHOW_ATTRIBUTE mips: kernel: convert to DEFINE_SHOW_ATTRIBUTE mips: ralink: convert to DEFINE_SHOW_ATTRIBUTE arch/mips/cavium-octeon/oct_ilm.c | 17 +++-------------- arch/mips/kernel/segment.c | 15 ++------------- arch/mips/ralink/bootrom.c | 15 ++------------- 3 files changed, 7 insertions(+), 40 deletions(-) -- 2.25.1