Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp213322ybl; Mon, 12 Aug 2019 14:53:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZZgKN2YNNZBtsoaNh8kIxGM+Hdz4sKKx3elQrfMB/1ml1CwOx9+o0C6VbcP7fWzUWE9eJ X-Received: by 2002:a62:8f91:: with SMTP id n139mr35808748pfd.48.1565646813060; Mon, 12 Aug 2019 14:53:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646813; cv=none; d=google.com; s=arc-20160816; b=rgjSQ09dynjlBmSZD1OcKPpZvbsjdNjhvEOoDKqLyWGXd2DMtaFpeX+PIPHwH9SEoV SKTgiH33SRGCltXY5D2WeDcJWxMNY2Crdjjo22w4l/zNYqy1E7kT6j9VleKidOD85dyS v9ejX1WucmvAE/0oTBgUPZ5wi+0sQ5fc9qdpDSqMirovuL7vTkSBqFu69MriXbZazGCw uHU1jeN7TGqgVTb1KG8K0r3KxCVgsuBXP5JEUefG+cRab/JSyuZVtMfxtYKR15IvcnJM /Z3W1MA82HIRTzkJObTcR3jgTzAT5pqrvmBAKtxq/eUyHp3sJxzctJvIyInAYbATaOM3 80uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=CMqgCUm+GxLehEdw4ZyFc9UqjqXT2SeM4A16UJsbPIg=; b=D9kSSSBrn+MMYkRcI6mRoKKa1lnH+l2cNHsq+HgzuZmLKk/wXe60fTavL1i4xy5I9d gS3ue5Rui1IBNh0WNE18GP+ahIwdRjsyzr0W/1j6bg2qO/DBZ9BVg9IOgrkX3SErSKTt Z/7U4LY6yG2b/08rQbPmFqGDGvuGQQO6rEmQ6fir/V72cdD0jNhbnfpoqCm3qORhmP0S v0U2xpb7QqoGYl/TmxYl1SfMAUKV0Kiassel4+CTn79j3AVlkmQeBjmWNoz5utMOOPO8 ORojLyJKTe9q99VMLVmweSTd5u/W7l/WuMP1t4TOO3P1plNQQ8tObGsbpo4UzgGNwxc2 FmTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cEJcf9Y0; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si261441pfo.151.2019.08.12.14.53.18; Mon, 12 Aug 2019 14:53:33 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=cEJcf9Y0; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727883AbfHLVwW (ORCPT + 99 others); Mon, 12 Aug 2019 17:52:22 -0400 Received: from mail-qk1-f201.google.com ([209.85.222.201]:35058 "EHLO mail-qk1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727594AbfHLVwS (ORCPT ); Mon, 12 Aug 2019 17:52:18 -0400 Received: by mail-qk1-f201.google.com with SMTP id z2so13792471qkf.2 for ; Mon, 12 Aug 2019 14:52:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=CMqgCUm+GxLehEdw4ZyFc9UqjqXT2SeM4A16UJsbPIg=; b=cEJcf9Y0TRBDvUfh7MDfEoOyZM+EmdiGeHKpU+4TT2H8QHtoDwx47a0Bdkd4grgnck AgKdxC7cLoC0YgryFCmAsQacbbELc3GMXpyG5foU2D3IorLvYpb3u4LbP+EWBLb+ONZn xu7IiQg3HetB6nQuaBGNlxs7Sr7tIqxEFdlxTcoFSx9y/5H5DOJeHMZBNvraJK4HPofL RJsn+4usFleoPDE+Pi/F8rWyKd8I+I1beDSXDkW8gGxrBPE7i61Bujv42XuPx6GAgaek 494TPvcDlGC6P/e5+FY8HYPsHRt/m6cIUbWe9gHGpZyW8mZYgRY00Km4Z+SYLP5VskTG 2U7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=CMqgCUm+GxLehEdw4ZyFc9UqjqXT2SeM4A16UJsbPIg=; b=EqpQOsA7a1BwM1aQo6nXWM0m8jWHxDkP60+OnJC6hdNJvunV1eEEP7/Zq2XKsYM6Lx OMiO2akCY69CcDYMkSyRxDtVKOaU/pZrnNUEEkPtF4MtZ3thcbUe1hJFftxG1m8XCiRk r1rkctZFWPug8HH9P6GqVpvvHqHTSwTItVb0KtzrMnJEPbsANevoRPPocuvbTxVLDpRC 0GkJNS2dNMDRqhltwVU80Y6NArlb/mASJgD2Rosvf3VYTfa8sFZNt/iBxhfXjfB0FHq/ aQs7+pvWrzxGYnGWq7hvqly0usAHd4ytj5xHS8BlroZYZxHu45dtTklk+S8fhpdZ6yZz Owbw== X-Gm-Message-State: APjAAAXGszIZJGzjcUyF74BQIkWqyv8BIV3s3WaDusChp6X/L4aAF8u/ KxV4quAzOmbjeJDX2aEdgYHJNm+X0TmVzx4dUxo= X-Received: by 2002:ad4:54a1:: with SMTP id r1mr7354704qvy.213.1565646737123; Mon, 12 Aug 2019 14:52:17 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:42 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-9-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190812215052.71840-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 09/16] sparc: prefer __section from compiler_attributes.h From: Nick Desaulniers To: akpm@linux-foundation.org Cc: sedat.dilek@gmail.com, jpoimboe@redhat.com, yhs@fb.com, miguel.ojeda.sandonis@gmail.com, clang-built-linux@googlegroups.com, Nick Desaulniers , "David S. Miller" , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reported-by: Sedat Dilek Suggested-by: Josh Poimboeuf Signed-off-by: Nick Desaulniers --- arch/sparc/include/asm/cache.h | 2 +- arch/sparc/kernel/btext.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sparc/include/asm/cache.h b/arch/sparc/include/asm/cache.h index dcfd58118c11..9a9effdd01e2 100644 --- a/arch/sparc/include/asm/cache.h +++ b/arch/sparc/include/asm/cache.h @@ -21,6 +21,6 @@ #define SMP_CACHE_BYTES (1 << SMP_CACHE_BYTES_SHIFT) -#define __read_mostly __attribute__((__section__(".data..read_mostly"))) +#define __read_mostly __section(.data..read_mostly) #endif /* !(_SPARC_CACHE_H) */ diff --git a/arch/sparc/kernel/btext.c b/arch/sparc/kernel/btext.c index 5869773f3dc4..b2eff8f8f27b 100644 --- a/arch/sparc/kernel/btext.c +++ b/arch/sparc/kernel/btext.c @@ -24,7 +24,7 @@ static void draw_byte_32(unsigned char *bits, unsigned int *base, int rb); static void draw_byte_16(unsigned char *bits, unsigned int *base, int rb); static void draw_byte_8(unsigned char *bits, unsigned int *base, int rb); -#define __force_data __attribute__((__section__(".data"))) +#define __force_data __section(.data) static int g_loc_X __force_data; static int g_loc_Y __force_data; -- 2.23.0.rc1.153.gdeed80330f-goog