Received: by 10.213.65.68 with SMTP id h4csp1261553imn; Sun, 18 Mar 2018 22:08:12 -0700 (PDT) X-Google-Smtp-Source: AG47ELvqj2eRU4vZNFAnYYQGQZbEzjLSGfjN8Ewp1IW7HoiRr9KioJUYPoQbbsRDCs1StAAC+PDu X-Received: by 10.101.99.213 with SMTP id n21mr5167240pgv.202.1521436092121; Sun, 18 Mar 2018 22:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521436092; cv=none; d=google.com; s=arc-20160816; b=It7HXHZzuFMirAVQP5fr87wzWw6nnDtQREc7zCOhPhSH1531vUiD7HLtVnFYInSOaj HXWNtmoMRJejyczMd2hw2rtgAchGks70ff5fWmh7bGk8g4cIbizdMXYXftEiNlMUbDOe YtdA0qkem9pZDd4gBFmfMdDDlepOrPrE1xjZG5shQ4AbuhIzNVOyUZb7ANdXreaCMSyH 6pRdfaXcyneoL1fe59c/A7MFLS9nYpYuhHpNA11i3YNhKhVHQKMc+Tf7aM6bN1HwDb3Z UFLzYjbp2xBnFffFSfGvHZVaaSDaS5a2P5vbf8eNy2rUbCgIX9KNrTZ/DIUUScHrLbEr Hzfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=pK70IHVKEfc7QI2T9EAJY2jXqgJa8FrnERE7s6n6ctc=; b=KR7y1MmNvbfhgqPq576B8KSVkIIDdVuW43xZwYUx83XPY4bQfwolE9kx2sYrtQnxs6 z4d12JxtlrDdtWbE47xXsgGmR5Rp107r5881ugSXXPbj+fCCCmTXuG83DC7VB9F5Gj6C pY8c5byko3FSzjKMsp1e8mT0KoImj3orH+61+3W4f85vqoTrcdpPjSCEJ41miNOq7/K6 mzYbL930Xh8EZRPo4Bolw1T/e27miuanHpbguDr/MnATLgiypAKxPtQxxLpRrgWOSWHR HwcF3z1LHFfOU1Gq9BhOD7t50n8FGBshRf3K/TDvUpW4m4AfGKnDd1wSr4a00xqj7Vgw 5gXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=AvzcsDa1; 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 z7si8937905pgp.438.2018.03.18.22.07.57; Sun, 18 Mar 2018 22:08:12 -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=AvzcsDa1; 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 S1755068AbeCSFFb (ORCPT + 99 others); Mon, 19 Mar 2018 01:05:31 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:53510 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751084AbeCSFF3 (ORCPT ); Mon, 19 Mar 2018 01:05:29 -0400 Received: by mail-wm0-f66.google.com with SMTP id e194so12721365wmd.3 for ; Sun, 18 Mar 2018 22:05:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pK70IHVKEfc7QI2T9EAJY2jXqgJa8FrnERE7s6n6ctc=; b=AvzcsDa1fnh2yw95ModTVQ7EC/MxY/RGOBHJSwzhumw7qkRh8cP3XWtkmUjMz8EzY5 +rqNaM/JaRHvycGE9KdjCNp+nx/zenD6ePVBLrp01hgA0Ryy7DD7bHPlyjRDN/f48AQU CuuW5u+u+4fOhFjDsrYAnEmZlcxYLQtrVmEXCnI0xwbi98MK/haivwqrSGMPdOPssOBu QqSrv4ETdX53jM2K4YHNUrtAul5lDp5RLuGGVtaBMe/HLSqjecL9kxKNftZPNtEfh7Z8 hvhssOnUhqol6aipTByjVQwFvKEf/t3iG5iKQNlYHx4PIxZXCUt3Q/vbYhsmZZTocslM J6GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pK70IHVKEfc7QI2T9EAJY2jXqgJa8FrnERE7s6n6ctc=; b=KbpTcVJsT40T6Hb+YwJ/ewQzANC9thUqxrPwNIjERe585GOys/JkTlAZplhoXuvnLo RbGkGDARzuiB+eKmIRRcM5BtsQXviF6bGMzy8M+uGO0GTU4dqCGwpS32onfpA7jZOQXr x4QWO8rY/6OFeLJ8LzwS13yZDCLtluXrLXhZqZN1dLUd8Jnk54awkNoRajxBqQ9fEIKG PibDMDqqshiaQ1mJ3M44DMn2Lu+bpYJKu+KBuJ/JEQjtRGY27+f/jhDgdpIpyMkeRF21 xTmg5h4YuUUEPWa5kLSPGyIQ9ZzcpDg+VBLovw3Bgvt5/xBsVPKLCUK9bFqyBhllQvNl OMbg== X-Gm-Message-State: AElRT7F6VOgRdRhvtubw4XBClOi3+HSD8y9eUlIkdX/L5u3/W3JxH44X JNimTU0ifW2HKkR7AwnAr/sCEgtrG8eIWnMOBElS6A== X-Received: by 10.28.25.130 with SMTP id 124mr7715543wmz.92.1521435928004; Sun, 18 Mar 2018 22:05:28 -0700 (PDT) MIME-Version: 1.0 References: <20180317170953.111610-1-edumazet@google.com> <201803190119.XsZZ8VZX%fengguang.wu@intel.com> In-Reply-To: <201803190119.XsZZ8VZX%fengguang.wu@intel.com> From: Eric Dumazet Date: Mon, 19 Mar 2018 05:05:16 +0000 Message-ID: Subject: Re: [PATCH 1/2] x86, msr: add rdmsr_safe_on_cpu_resched() and use it in msr_read() To: kbuild test robot Cc: kbuild-all@01.org, "the arch/x86 maintainers" , LKML , Eric Dumazet , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Hugh Dickins 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 On Sun, Mar 18, 2018 at 10:14 AM kbuild test robot wrote: > Hi Eric, > Thank you for the patch! Yet something to improve: > [auto build test ERROR on linus/master] > [also build test ERROR on v4.16-rc5 next-20180316] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > url: https://github.com/0day-ci/linux/commits/Eric-Dumazet/x86-msr-add-rdmsr_safe_on_cpu_resched-and-use-it-in-msr_read/20180319-001007 > config: i386-randconfig-s1-201811 (attached as .config) > compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026 > reproduce: > # save the attached .config to linux build tree > make ARCH=i386 > All errors (new ones prefixed by >>): > arch/x86/kernel/msr.c: In function 'msr_read': > >> arch/x86/kernel/msr.c:63:9: error: implicit declaration of function 'rdmsr_safe_on_cpu_resched' [-Werror=implicit-function-declaration] > err = rdmsr_safe_on_cpu_resched(cpu, reg, &data[0], &data[1]); > ^~~~~~~~~~~~~~~~~~~~~~~~~ > cc1: some warnings being treated as errors I guess I will have to add in V2 this missing part : diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h index 117a286660c61cf9c10e68f0b48d27e2de17deab..15e220243a4d5e9da524fb7733e23e2766b6eb12 100644 --- a/arch/x86/include/asm/msr.h +++ b/arch/x86/include/asm/msr.h @@ -363,6 +363,11 @@ static inline int rdmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, { return rdmsr_safe(msr_no, l, h); } +static inline int rdmsr_safe_on_cpu_resched(unsigned int cpu, u32 msr_no, + u32 *l, u32 *h) +{ + return rdmsr_safe(msr_no, l, h); +} static inline int wrmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h) { return wrmsr_safe(msr_no, l, h);