From patchwork Fri May 11 15:05:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Martin X-Patchwork-Id: 135545 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp987659lji; Fri, 11 May 2018 08:06:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp8H4CIaK6Itp8iPv7ukC/5lamQp33O7O6cIwy4Pz5mThSiDFxgqRbODgl2W9xoxREPHGnm X-Received: by 2002:a63:7d43:: with SMTP id m3-v6mr4832136pgn.117.1526051170086; Fri, 11 May 2018 08:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526051170; cv=none; d=google.com; s=arc-20160816; b=pWwbWIqRRF3cZj00VHkelx7DDEcr0jvTlXF3kliXw0+5OZo6TGk2xUuDay1QmBDpvH TIKuKNCaYh6kcrkoPb4dQio31Lln8sOroiIYMMKAaCi+r4jk0IfXF4WHL/VSiWvbP93p hvaWXpLQQlJkmrKtl1ukTwFm4r9OaN91dJ2cXh06Cy1epoe54hkR/iv9FvebPfc1cYTY E8HH8DD82m78J/Wg/LVbkn/Jy1U6aLLhZtjjSstr5TjH1OnzWiDNd8xRSELWKkwqRU6G HLyCH5spfUhCzeZ33JqMxIIBmEwDI2PXWC5aNTiOerNgHpx42551cL0RPzwZjcQGjXrP PkZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=4kCJBo5ewAK0NimWdBT8srbQ3afKURBI5lb0MZuPf+o=; b=vOaKvVBvKlpsU3qzC4DRba41VQ3tHlY61WHIliuJwdYpe8ZwQVimfQjdTxL/Z2CkuH s4Byf2Icn+BRqydRhGS5sxdorJkXCW4dOsy5bhF8owo5iKGFULmZNtajx1UW/1tvUPPX q1FYgrk00zlWhnHKpTdmXWBKubXXIm92bnmq9E/qE00btq9KDLs6aKKXseleuXynnc7O zkEYOWiX46COxXI6eMCqP1Mni2D20TCJc+GKlfRX6VfEFW9znUqBaxQLtL162a0sN4WJ bvhiwlCvxG8KkxWyk3PQ2ArU23jGlINhnkW8j/C0IHFzzl2cZa+JoJyMeOOxpSZONkWj Xo/w== 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 b61-v6si3335661plc.500.2018.05.11.08.06.09; Fri, 11 May 2018 08:06:10 -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 S1753463AbeEKPGG (ORCPT + 29 others); Fri, 11 May 2018 11:06:06 -0400 Received: from foss.arm.com ([217.140.101.70]:43238 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753421AbeEKPGE (ORCPT ); Fri, 11 May 2018 11:06:04 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 02DFA16BA; Fri, 11 May 2018 08:06:04 -0700 (PDT) Received: from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E5EC33F23C; Fri, 11 May 2018 08:06:01 -0700 (PDT) From: Dave Martin To: linux-kernel@vger.kernel.org Cc: Ralf Baechle , James Hogan , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , "David S. Miller" , Ingo Molnar , Peter Zijlstra , Steven Rostedt , Oleg Nesterov , linux-arch@vger.kernel.org Subject: [PATCH REPOST 5/5] sparc: Use update_thread_flag() Date: Fri, 11 May 2018 16:05:04 +0100 Message-Id: <1526051104-15995-6-git-send-email-Dave.Martin@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1526051104-15995-1-git-send-email-Dave.Martin@arm.com> References: <1526051104-15995-1-git-send-email-Dave.Martin@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch uses the new update_thread_flag() helper to simplify an if () set; else clear; construct. No functional change. Signed-off-by: Dave Martin Cc: "David S. Miller" --- arch/sparc/include/asm/elf_64.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.1.4 Acked-by: David S. Miller diff --git a/arch/sparc/include/asm/elf_64.h b/arch/sparc/include/asm/elf_64.h index 7e078bc..f1ef89c 100644 --- a/arch/sparc/include/asm/elf_64.h +++ b/arch/sparc/include/asm/elf_64.h @@ -202,10 +202,7 @@ extern unsigned long sparc64_elf_hwcap; #define ELF_PLATFORM (NULL) #define SET_PERSONALITY(ex) \ -do { if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \ - set_thread_flag(TIF_32BIT); \ - else \ - clear_thread_flag(TIF_32BIT); \ +do { update_thread_flag(TIF_32BIT, (ex).e_ident[EI_CLASS] == ELFCLASS32); \ /* flush_thread will update pgd cache */ \ if (personality(current->personality) != PER_LINUX32) \ set_personality(PER_LINUX | \