From patchwork Mon Aug 12 21:50:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171127 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp76553ily; Mon, 12 Aug 2019 14:52:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7o3Y5eDS++w21Mcy2NaSdmDVMMjRkpuE4Avo6lJllOU/X2hzh/AGlw8+vZFeEEdn4QteM X-Received: by 2002:a17:90a:1c1:: with SMTP id 1mr1274240pjd.72.1565646740538; Mon, 12 Aug 2019 14:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646740; cv=none; d=google.com; s=arc-20160816; b=elqHNMbA9EftraJUbvPP4ws+dLLtgH1XoJk439LHvTrSLRv5JBfDM0kFjyvp1791Dh wNwZOUt92JPpBTZPSL5MgtxqV1Iy6cjHcNRmLbXzwwAxb7oWc9GrGuRWYE2KuCUy4zEq 2EXw/dHMzcakSRnHH+D0uJKdvudaAbkvTF6u09qDjanVgW4MrYAYy1RR+w7l7bYYq+Zb CcS3BE0X2CJUx5ZcqurERg/lXoauk2pTbgL1+0YacR9dQSdP4dn1wG1mkzzeDvnV2ANW jQkFuBZGr6Erv3EVsVMCGXA/vF3oZei4aJkP1GZKrz6tsyo7tLu6t5pRaFO5NaFPqjpI Nx4g== 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=rYrFjj2t0BaEFhmpFBweIrj5NBvqPjOxDIOnxfiCiTJBxp9nRPRZI1ChCOsyRaxEf/ j/zt6A+z/t7FJajRSMFfN4XB4fH19+nxmAJ1rBRnIOvudbC2bCAaXPFQhD4oeppg6fSQ 3iw+9JIb0kFr3k4bfTu07XVN5FZ6tu+ymNGJDYQ2ICFrVj/h+3rqmTnEB1/ziNZzSYQv NQLrIWqsrxGXgzJ5iiCf4zeFUn7YVEjwTbr/FuOYYwoojFq4UklocvTYYj/G5yFwHTQb Y5qPaMTktDGR/bpeE7uTsglOIyBU2+OiVcC70s7rBCSg6G8YZzbvsXUjJA+3JiWR2k3s YbJA== 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 netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 g13si31874723pgj.498.2019.08.12.14.52.20; Mon, 12 Aug 2019 14:52:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-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 netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 S1727480AbfHLVwT (ORCPT + 8 others); Mon, 12 Aug 2019 17:52:19 -0400 Received: from mail-qk1-f201.google.com ([209.85.222.201]:39441 "EHLO mail-qk1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727590AbfHLVwS (ORCPT ); Mon, 12 Aug 2019 17:52:18 -0400 Received: by mail-qk1-f201.google.com with SMTP id x1so94452227qkn.6 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=Pa21tIMSaSI5e/SYiwOJiJsWe0Gb6iFwV0K4YCXwqq3Wwk0Y98uSzckuH7AxNHyx4n AgdB+kT7KSQGDWDuhxLNCH3Jhy0zxIJPPYG/xsohG9M2Bhn1v9BFsJ3UOBZVawXkVpil trON4vloaKQ9OEwXkH2zggsYps9eV/NEyP4ysKSF8gb4Yf0moTqaYVE4bOqZ4xoBU7nZ uVvo60G5F9VFWs7Gj2jLWGmo1yLErhdpjThZNR7K7NxD5ETR571QvN2pW1QwqPV3ggUF 1y4Gj3Z2DWEk53VK5OiODfLieBXn9iFOzZ6sRfjYJTWN3hJI9yR9Q+J729EFBA+L9W9I Dhiw== X-Gm-Message-State: APjAAAUG3Fuq0yrtbRxF2y9oXH91yPM471sVskdK1Sa2MLh20eOliJSM TJFwP1Z6zQVFhmlFMh9Oi3EiwSn+QeMHZWYu7J4= 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 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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(-) -- 2.23.0.rc1.153.gdeed80330f-goog 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;